:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#202124;background:#f4f1ea;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}button.photo-card{padding:0;text-align:left;border:0}button:disabled{cursor:not-allowed;opacity:.58}h1,h2,h3,p{margin:0}.page-shell{width:min(1440px,100%);margin:0 auto;padding:24px}.login-shell{display:grid;place-items:center;min-height:100vh;padding:18px}.login-panel{display:flex;flex-direction:column;gap:18px;width:min(420px,100%);padding:24px;background:#fffefa;border:1px solid #ded5c5;border-radius:8px;box-shadow:0 18px 50px #2021241f}.login-panel h1{font-size:36px;line-height:1}.app-header,.brand,.hero-band,.toolbar,.archive-tools,.section-title,.drawer header,.drawer-persona-chip,.notice,.toggle-row,.pagination,.back-link{display:flex;align-items:center}.app-header{justify-content:space-between;margin-bottom:22px}.brand{gap:12px}.brand-mark,.thumb,.icon-button{display:grid;place-items:center}.brand-mark{width:38px;height:38px;color:#fff;background:#1f5b57;border-radius:8px}.brand strong,.brand small,.persona-card small,.photo-card small,.toggle-row small,.drawer-persona-chip small{display:block}.brand small,.eyebrow,.archive-tools span,.persona-card p,.persona-card small,.profile-copy dt,.profile-copy dd,.prompt-block p,.photo-card small,.toggle-row small,.drawer-persona-chip small,.empty-state p{color:#6e6a62}.hero-band{justify-content:space-between;gap:20px;margin-bottom:18px}.detail-hero{align-items:flex-end}.eyebrow{margin-bottom:5px;font-size:12px;font-weight:900;letter-spacing:0;text-transform:uppercase}.hero-band h1{font-size:clamp(34px,5vw,56px);line-height:.98}.back-link{gap:7px;width:fit-content;margin-bottom:14px;color:#1f5b57;font-weight:900}.toolbar{flex-wrap:wrap;justify-content:flex-end;gap:9px}.primary-button,.secondary-button,.accent-button,.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border-radius:8px;border:1px solid transparent;padding:0 14px;font-weight:850}.accent-button{color:#fff;background:#b24834}.primary-button{color:#fff;background:#1f5b57}.secondary-button{color:#202124;background:#fffefa;border-color:#d7ceb9}.danger-button{color:#fff;background:#8f2e25;border-color:#8f2e25}.wide{width:100%}.compact-button{min-height:34px;padding:0 10px;font-size:13px}.icon-button{width:42px;height:42px;color:#202124;background:#fffefa;border:1px solid #d7ceb9;border-radius:8px}.archive-tools{justify-content:space-between;gap:16px;margin-bottom:18px}.search-box{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px;width:min(520px,100%);min-height:44px;padding:0 12px;background:#fffefa;border:1px solid #d7ceb9;border-radius:8px}.search-box input{min-width:0;border:0;outline:0;background:transparent}.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.persona-card{display:grid;grid-template-rows:auto 1fr;overflow:hidden;min-height:420px;background:#fffefa;border:1px solid #ded5c5;border-radius:8px;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.persona-card:hover{transform:translateY(-2px);border-color:#1f5b57;box-shadow:0 12px 30px #2021241f}.card-media{display:grid;place-items:center;aspect-ratio:4 / 5;color:#fff;background:#202124}.card-media img,.profile-cover img,.photo-card img,.thumb img{width:100%;height:100%;object-fit:cover;display:block}.card-copy{display:flex;flex-direction:column;gap:8px;min-width:0;padding:14px}.card-copy h2{overflow:hidden;font-size:22px;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.card-copy p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-pill{display:inline-flex;width:fit-content;padding:5px 9px;color:#1f5b57;background:#e7f2ef;border:1px solid #b9d8d1;border-radius:999px;font-size:12px;font-weight:900;text-transform:uppercase}.notice{gap:8px;min-height:42px;margin-bottom:16px;padding:10px 12px;border-radius:8px;font-weight:850}.notice.error{color:#8a2d20;background:#fff0ec;border:1px solid #d88474}.notice.busy{color:#1f5b57;background:#e8f2ef;border:1px solid #b8d7cf}.detail-grid{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:18px;min-height:0}.profile-panel,.gallery-panel,.empty-state,.photo-empty{background:#fffefa;border:1px solid #ded5c5;border-radius:8px}.profile-panel{overflow:hidden}.profile-cover{display:grid;place-items:center;aspect-ratio:4 / 5;color:#fff;background:#202124}.profile-copy,.prompt-block{padding:16px;border-top:1px solid #eee5d7}.profile-copy h2{margin-top:10px;font-size:26px;line-height:1.1}.profile-copy dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 0}.profile-copy dt{font-size:12px;font-weight:900;text-transform:uppercase}.profile-copy dd{margin:3px 0 0;overflow-wrap:anywhere}.prompt-block h3{margin-bottom:8px;font-size:13px;text-transform:uppercase}.prompt-block p{line-height:1.55}.danger-zone{display:grid;gap:12px;margin:16px;padding:14px;color:#4b1f1b;background:#fff1ed;border:1px solid #e1b8af;border-radius:8px}.danger-zone strong,.danger-zone span{display:block}.danger-zone strong{margin-bottom:5px}.danger-zone span{font-size:13px;line-height:1.45}.gallery-panel{min-width:0;padding:18px}.section-title{justify-content:space-between;gap:16px;margin-bottom:16px}.section-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.section-title h2{font-size:26px}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:12px}.photo-card{position:relative;min-height:220px;margin:0;overflow:hidden;background:#202124;border-radius:8px;aspect-ratio:4 / 5}.photo-caption{position:absolute;left:10px;right:10px;bottom:10px;display:block;padding:9px;color:#fff;background:#1c1d1fd1;border:1px solid rgba(255,255,255,.18);border-radius:8px}.open-photo-icon{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:34px;height:34px;color:#fff;background:#1c1d1fb8;border:1px solid rgba(255,255,255,.22);border-radius:8px}.photo-card strong,.photo-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-card small{color:#ffffffc2}.pagination{justify-content:center;gap:12px;margin-top:16px}.pagination span{min-width:64px;text-align:center;font-weight:900}.photo-empty,.empty-state{display:grid;place-items:center;gap:10px;min-height:300px;padding:28px;color:#6e6a62;text-align:center}.drawer-layer{position:fixed;inset:0;z-index:20;display:grid;grid-template-columns:1fr minmax(360px,540px)}.modal-layer{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:22px}.modal-scrim{position:absolute;inset:0;border:0;background:#141517b8}.photo-modal{position:relative;z-index:1;display:flex;flex-direction:column;width:min(1180px,100%);max-height:min(900px,calc(100vh - 44px));overflow:hidden;background:#fffaf1;border:1px solid #d8cdbd;border-radius:8px;box-shadow:0 24px 70px #00000061}.photo-modal header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid #e5dccf}.modal-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.confirm-modal{position:relative;z-index:1;display:grid;gap:16px;width:min(520px,100%);max-height:calc(100vh - 44px);overflow:auto;padding:18px;background:#fffaf1;border:1px solid #d8cdbd;border-radius:8px;box-shadow:0 24px 70px #00000061}.confirm-modal header,.confirm-actions,.confirm-copy{display:flex;align-items:center;gap:12px}.confirm-modal header{justify-content:space-between}.confirm-copy{align-items:flex-start;padding:14px;color:#4b1f1b;background:#fff1ed;border:1px solid #e1b8af;border-radius:8px}.confirm-copy p{margin-top:5px;line-height:1.45}.confirm-actions{justify-content:flex-end;flex-wrap:wrap}.photo-modal header h2{font-size:24px;line-height:1.1}.modal-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,420px);min-height:0;overflow:hidden}.modal-image-frame{display:grid;place-items:center;min-height:0;padding:14px;background:#202124}.modal-image-frame img{display:block;max-width:100%;max-height:calc(100vh - 170px);object-fit:contain;border-radius:6px}.modal-info{min-width:0;padding:16px;overflow:auto;background:#fffaf1;border-left:1px solid #e5dccf}.modal-info dl{display:grid;grid-template-columns:1fr;gap:10px;margin:0 0 14px}.modal-info .prompt-block{padding:14px 0}.modal-info .prompt-block p{white-space:pre-wrap;overflow-wrap:anywhere;color:#33302b}.drawer-scrim{width:100%;border:0;background:#20212457}.drawer{display:flex;flex-direction:column;gap:18px;min-width:0;max-height:100vh;padding:22px;overflow:auto;background:#fffaf1;border-left:1px solid #d8cdbd;box-shadow:-18px 0 50px #2021242e}.drawer header{justify-content:space-between;gap:12px}.drawer header h2{font-size:26px}.drawer-form{display:flex;flex-direction:column;gap:14px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:6px}.prompt-field-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.prompt-field-head>span{font-size:12px;font-weight:900;color:#3f3d38;text-transform:uppercase}.field span{font-size:12px;font-weight:900;color:#3f3d38;text-transform:uppercase}.field input,.field textarea,.field select{width:100%;border:1px solid #d7ceb9;border-radius:8px;padding:10px 11px;color:#202124;background:#fffefa;outline:none}.field input[type=file]{padding:8px}.field textarea{min-height:92px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:#1f5b57;box-shadow:0 0 0 3px #1f5b5724}.toggle-row{gap:10px;padding:12px;background:#eee5d7;border:1px solid #dacdb8;border-radius:8px}.toggle-row input{width:18px;height:18px}.drawer-persona-chip{gap:10px;padding:10px;background:#fffefa;border:1px solid #ded5c5;border-radius:8px}.reference-note{display:flex;flex-direction:column;gap:4px;padding:11px;color:#3f3d38;background:#eef6f4;border:1px solid #b9d8d1;border-radius:8px}.reference-note strong{font-size:12px;text-transform:uppercase}.reference-note span{color:#5c655f;line-height:1.45}.preset-panel{display:flex;flex-direction:column;gap:8px}.preset-panel>span{font-size:12px;font-weight:900;color:#3f3d38;text-transform:uppercase}.preset-grid,.effect-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.preset-grid button,.effect-grid button{min-height:38px;padding:7px 9px;color:#202124;background:#fffefa;border:1px solid #d7ceb9;border-radius:8px;font-weight:800;overflow-wrap:anywhere}.effect-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.effect-grid button{display:flex;min-height:54px;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;text-align:left}.effect-grid small{color:#6e6a62;font-size:11px}.thumb{width:48px;height:48px;overflow:hidden;color:#fff;background:#305f77;border-radius:8px}.skeleton{min-height:420px;background:linear-gradient(110deg,#fff0 22%,#ffffff9e,#fff0 50%),#e4dccf;background-size:220% 100%;animation:shimmer 1.4s ease-in-out infinite}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{to{background-position-x:-220%}}@media(max-width:980px){.detail-grid{grid-template-columns:1fr}.modal-body{display:block;overflow:visible}.modal-info{overflow:visible;background:#fffaf1;border-top:1px solid #e5dccf;border-left:0}.modal-info .prompt-block{border-left:0}.profile-panel{display:grid;grid-template-columns:minmax(240px,340px) 1fr}.prompt-block{border-left:1px solid #eee5d7}}@media(max-width:720px){.page-shell{padding:16px}.hero-band,.archive-tools,.section-title{align-items:flex-start;flex-direction:column}.toolbar,.section-actions,.archive-tools .search-box,.secondary-button,.accent-button,.primary-button,.danger-button{width:100%}.section-actions{align-items:stretch;flex-direction:column}.cards-grid{grid-template-columns:1fr}.profile-panel,.form-row,.drawer-layer{display:block}.drawer-scrim{position:fixed;inset:0}.drawer{position:fixed;inset:0 0 0 auto;width:min(100vw,540px)}.photo-card{min-height:320px}.pagination{align-items:stretch;flex-direction:column}.modal-layer{padding:10px}.photo-modal{max-height:calc(100vh - 20px);overflow:auto}.modal-image-frame{padding:10px;min-height:auto}.modal-image-frame img{width:auto;max-height:44vh}.photo-modal header{align-items:flex-start}.modal-actions .secondary-button{width:auto;min-width:96px}.photo-card{min-height:210px}.effect-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
