/* Charcoal surfaces keep the posters and review text in the foreground. */
:root{
  color-scheme:dark;
  --paper:#141514; --panel:#1d1f1d; --raised:#292c28; --ink:#f3f3ee;
  --muted:#b1b5ac; --accent:#cdf576; --line:#3b3e38; --wash:#282c26;
  --dark:#cdf576; --error:#ff989a;
  color:var(--ink); background:var(--paper);
  font:16px/1.5 "Pretendard","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
*{box-sizing:border-box}body{margin:0;min-height:100vh;display:flex;flex-direction:column;word-break:keep-all}button,input,textarea,select{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,a{color:inherit}a{text-decoration:none}button{cursor:pointer}button{border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}svg{flex:none;vertical-align:middle}.wrap{max-width:1296px;width:calc(100% - clamp(40px,9vw,144px));margin:auto}.site-head{border-bottom:1px solid var(--line);background:var(--paper)}.head-inner{height:77px;display:flex;align-items:center;gap:64px}.brand{display:inline-flex;align-items:center;gap:10px;font-size:28px;font-weight:900;letter-spacing:-2.1px;white-space:nowrap}.brand img{height:34px;width:34px}nav{display:flex;align-items:center;gap:9px}nav a{display:block;border-radius:8px;padding:8px 15px;font-size:15px;color:var(--muted);font-weight:600;white-space:nowrap}nav a[aria-current=page]{background:var(--raised);color:var(--accent)}nav a:hover,.text-link:hover,.back:hover,.sub-link:hover{color:var(--accent)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 17px;border:1px solid var(--line);border-radius:9px;background:var(--panel);font-size:14px;line-height:1.45;font-weight:680;letter-spacing:-.35px;white-space:nowrap;transition:background .15s,transform .15s}.btn:hover{background:var(--raised)}.btn:active,.chip:active{transform:translateY(1px)}.btn.primary{color:white;background:var(--dark);border-color:var(--dark)}.btn.primary:hover{background:#e0ffaa}.btn.account{margin-left:auto;gap:7px;border-radius:99px;font-size:14px;padding:8px 15px;min-height:37px;background:transparent}.btn.white{border-color:var(--line);background:var(--panel)}.btn.smallbtn{min-height:33px;padding:5px 11px;font-size:14px}.btn.full{width:100%;margin-top:4px}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}main.wrap{margin:32px auto 76px;flex:1}main:focus{outline:none}.hero{background:var(--panel);position:relative;isolation:isolate;display:flex;align-items:center;min-height:342px;border-radius:22px;overflow:hidden}.hero-label,.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--accent);font-size:12px;letter-spacing:1.65px;font-weight:800}h1,h2,h3,p{overflow-wrap:anywhere}h2,h3{margin:0}h2{font-size:clamp(23px,2.1vw,31px);letter-spacing:-1.6px;line-height:1.3;font-weight:800}h3{font-size:19px;letter-spacing:-.8px}.feed{margin-top:36px}.section-head,.heading-line,.title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.heading-line{justify-content:start;gap:10px}.section-head p{font-size:15px;color:var(--muted);margin:6px 0 0;letter-spacing:-.2px}.text-link,.back,.sub-link{display:inline-flex;align-items:center;gap:5px;font-size:14px;font-weight:650}.text-link{align-self:center;white-space:nowrap}.sample-pill,.role{background:var(--raised);color:var(--accent);border-radius:6px;font-size:12px;padding:3px 8px;font-weight:750;white-space:nowrap}.filters{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;padding:6px 12px;min-height:32px;background:var(--panel);border:1px solid var(--line);border-radius:999px;font-size:14px;color:var(--muted);white-space:nowrap}.chip.on{background:var(--raised);border-color:var(--raised);color:var(--panel)}.chip:not(.on):hover{background:var(--raised)}.entry-grid,.room-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.entry-card{border:1px solid var(--line);border-radius:15px;background:var(--panel);overflow:hidden;transition:box-shadow .2s,transform .2s}.entry-card:hover{box-shadow:0 8px 22px #3d314010;transform:translateY(-2px)}.card-button{display:flex;flex-direction:column;text-align:left;width:100%;height:100%;padding:0}.card-button:focus-visible{outline-offset:-4px}.cover{position:relative;width:100%;height:auto;aspect-ratio:1.9;background:var(--raised);overflow:hidden}.cover img{display:block;width:100%;height:100%;object-fit:cover}.cover-tag{position:absolute;top:13px;left:13px;display:inline-flex;align-items:center;gap:5px;background:var(--panel);color:var(--ink);padding:4px 8px;font-size:12px;font-weight:700;border-radius:5px}.card-body{padding:16px 18px 13px;width:100%;flex:1;display:flex;flex-direction:column}.title-row{gap:5px;align-items:flex-start}.title-row h3{line-height:1.3;font-size:21px;overflow-wrap:anywhere}.rating{display:inline-flex;align-items:center;gap:4px;color:var(--accent);font-size:15px;font-weight:750;white-space:nowrap}.rating.dropped{font-size:12px}.card-body>p{font-size:14px;line-height:1.6;color:var(--muted);margin:6px 0 15px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-meta{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;border-top:1px dashed var(--line);margin-top:auto;padding-top:10px}.card-meta span,.small{display:inline-flex;align-items:center;gap:5px}.paper-cover{height:100%;padding:45px 24px 14px;position:relative;isolation:isolate;display:flex;align-items:flex-end;background:#3c4940;color:#ced9ca}.paper-cover.indigo{background:#353c49;color:#dbe2ef}.paper-cover.green{background:#394337;color:#d7e2d0}.paper-cover.blue{background:#354246;color:#cddde1}.paper-cover.pink{background:#483c40;color:#ead6d8}.paper-cover strong{font-family:"Georgia","Malgun Gothic",serif;font-size:clamp(23px,2.5vw,43px);letter-spacing:-2px;line-height:1.2;max-width:82%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.paper-stub{position:absolute;inset:0 0 0 90%;border-left:2px dashed #0003;background:repeating-linear-gradient(90deg,transparent 0 4px,#0002 4px 6px);opacity:.5}.paper-grid{position:absolute;width:65%;height:150%;right:-12%;top:-48%;border-radius:50%;background:repeating-radial-gradient(circle at 45% 50%,transparent 0 5px,#0002 5px 6px);z-index:-1}.page-head,.room-head{padding:34px 38px;border-radius:18px;background:var(--panel);margin-bottom:24px}.page-head h1,.room-head h1{font-size:clamp(31px,3vw,46px);letter-spacing:-2px;margin:6px 0}.page-head p,.room-head p{color:var(--muted);margin:5px 0 18px}.eyebrow{font-size:14px;letter-spacing:0}.room-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.room-head p{margin-bottom:0}.back{margin-bottom:15px;color:var(--muted)}.search-bar{display:flex;align-items:center;gap:9px;max-width:520px;background:var(--panel);border:1px solid var(--line);padding:5px 7px 5px 13px;border-radius:10px;margin:16px 0 22px}.search-bar input{border:0;margin:0;background:none;width:100%;padding:7px 0;min-width:0}.room-card{border:1px solid var(--line);border-radius:14px;padding:20px;background:var(--panel);display:flex;flex-direction:column;align-items:start;gap:12px}.room-emblem{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:var(--wash);color:var(--accent)}.room-body p{margin:4px 0 12px;font-size:15px;color:var(--muted)}.room-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;width:100%;border-top:1px dashed var(--line);padding-top:12px}.empty{border:1px dashed var(--line);border-radius:15px;padding:40px 20px;text-align:center;background:var(--panel);color:var(--muted)}.empty>svg{color:var(--accent)}.empty h3{margin:10px 0 3px;color:var(--ink)}.empty p{margin:5px 0 16px;font-size:15px}.more{text-align:center;margin-top:18px}.muted,.hint,.intro{color:var(--muted)}.small,.hint{font-size:14px}.loading{margin:36px 0;color:var(--muted)}footer{border-top:1px solid var(--line);color:var(--muted)}footer .wrap{display:flex;align-items:center;gap:11px;min-height:72px;font-size:13px}.footer-brand{font-size:17px;font-weight:800;color:var(--ink);letter-spacing:-.8px}dialog{padding:25px;width:min(460px,calc(100% - 32px));max-height:88dvh;overflow:auto;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 100px #0006}dialog::backdrop{background:#070807bd;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.dialog-head h2{font-size:24px}.icon-btn{border:1px solid var(--line);background:var(--raised);border-radius:50%;width:32px;height:32px;display:grid;place-items:center;flex:none}label{display:block;font-size:14px;font-weight:650;line-height:1.5;margin-bottom:14px}input:not([type=checkbox]),textarea,select{display:block;width:100%;border:1px solid var(--line);background:var(--panel);border-radius:8px;color:var(--ink);padding:10px 12px;margin-top:5px;min-width:0;font-size:16px}textarea{resize:vertical}select{appearance:none;background:var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23c6cdc3' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;padding-right:30px}.search-bar input:not([type=checkbox]){border:0;background:none;margin-top:0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check{display:flex;gap:10px;align-items:flex-start;padding:12px;background:var(--raised);border-radius:8px}.check input{accent-color:var(--accent);width:16px;height:16px;margin:3px 0}.check small{display:block;font-size:13px;font-weight:400;margin-top:3px}.intro{margin:0 0 20px;font-size:15px}.form-error{color:var(--error);font-size:14px;margin:12px 0 0}.form-error:empty{display:none}.sub-link{margin-top:14px;color:var(--accent)}.detail-facts,.applicant,.code-box{display:flex;align-items:center;gap:10px}.detail-quote{background:var(--raised);border-radius:10px;padding:17px;font-size:18px;white-space:pre-wrap}.entry-detail dl{display:grid;grid-template-columns:auto 1fr;gap:7px 15px;font-size:14px}.entry-detail dt{color:var(--muted)}.entry-detail dd{margin:0;overflow-wrap:anywhere}.entry-detail .actions{margin-top:18px}.code-box,.applicant{justify-content:space-between;flex-wrap:wrap;padding:12px;background:var(--raised);border-radius:8px}.code-box strong{font:700 20px/1.4 ui-monospace,monospace;letter-spacing:1.5px}.applicant{margin-top:9px;background:var(--panel);border:1px solid var(--line)}hr{border:0;border-top:1px solid var(--line);margin:22px 0}.hint{margin:7px 0 12px}#notice{position:fixed;bottom:23px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--raised);color:white;padding:10px 17px;border-radius:12px;box-shadow:0 3px 18px #0002;font-size:14px;text-align:center;max-width:90%;transition:opacity .2s,transform .2s;z-index:5}#notice.show{opacity:1;transform:translate(-50%,0)}.skip{position:fixed;left:8px;top:-100px;padding:10px;background:var(--panel);z-index:10}.skip:focus{top:8px}
@media(min-width:1450px){.hero{min-height:365px}.entry-grid{gap:26px}}
@media(max-width:950px){.head-inner{gap:30px}.wrap{width:calc(100% - 54px)}.hero{min-height:310px}.entry-grid,.room-grid{gap:14px}.card-body{padding:14px}.card-body h3{font-size:18px}}
@media(max-width:700px){.wrap{width:calc(100% - 32px)}.head-inner{height:auto;min-height:94px;display:grid;grid-template-columns:1fr auto;gap:5px 8px;padding:10px 0 5px}.brand{font-size:23px;gap:7px}.brand img{width:29px;height:29px}.btn.account{grid-column:2;grid-row:1;padding:6px 11px;min-height:31px;font-size:13px}nav{grid-column:1/-1;grid-row:2;gap:3px}nav a{padding:5px 13px;font-size:14px}.hero{min-height:265px;border-radius:15px}.entry-grid,.room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-head .text-link{font-size:13px}.page-head,.room-head{padding:22px}.room-head{align-items:flex-start;flex-direction:column}.feed{margin-top:26px}main.wrap{margin-top:18px;margin-bottom:46px}.filters{flex-wrap:nowrap;overflow-x:auto;padding:3px 1px 5px;margin:12px 0}.section-head p{font-size:14px}.cover{aspect-ratio:1.5}.cover-tag{left:9px;top:9px}.heading-line{gap:7px}}
@media(max-width:480px){.hero{display:block;min-height:0}.entry-grid,.room-grid{grid-template-columns:1fr;gap:15px}.cover{aspect-ratio:2}.card-body h3{font-size:21px}.card-body>p{margin-bottom:10px}.section-head{gap:7px}.section-head p{font-size:13px}.section-head h2{font-size:23px}.text-link{gap:1px}.filters{gap:5px}.chip{font-size:13px;padding:6px 10px}.page-head h1,.room-head h1{font-size:32px}.page-head p{font-size:15px}dialog{padding:20px}.sample-pill{font-size:11px}.card-body{padding:14px 16px}.skip:focus{top:1px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}


.auth-switch{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line);color:var(--muted);font-size:14px}.auth-switch button{flex-shrink:0}#modal-form .hint{margin:0 0 6px}
.work-card{display:flex;flex-direction:column}.work-card .card-button{flex:1}.work-cover{background:var(--panel)}.work-cover .work-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--panel)}.work-cover img[hidden]{display:none}.work-card .card-meta{align-items:center;gap:8px}.work-card .card-meta strong{color:var(--accent);white-space:nowrap}.work-card .card-body p{margin:5px 0 12px}.source-link{align-self:flex-start;margin:0 16px 12px;font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.recent-feed{margin-top:44px}.recent-list{margin-top:14px;border-top:1px solid var(--line)}.recent-row{display:flex;align-items:center;gap:16px;width:100%;padding:15px 4px;text-align:left;border-bottom:1px solid var(--line)}.recent-row:hover{background:var(--wash)}.recent-icon{display:grid;place-items:center;flex:none;width:40px;height:44px;background:var(--wash);color:var(--accent);border-radius:8px}.recent-copy{display:grid;gap:3px;min-width:0}.recent-copy span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.recent-copy small,.recent-side small{color:var(--muted);font-size:12px}.recent-side{margin-left:auto;display:grid;gap:4px;white-space:nowrap;text-align:right}.recent-side b{color:var(--accent);font-size:14px}
dialog .btn.danger{color:var(--error);border:1px solid #9d6060;background:#312326}
dialog .btn.danger:hover{background:#462a2c;border-color:#9d6060}
.member-row{align-items:center;gap:12px}
.member-row b,.intro strong{overflow-wrap:anywhere}
.member-row .btn,.member-row .sample-pill{flex-shrink:0}
.sheet-notes{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.sheet-notes summary{cursor:pointer;font-weight:650}
.sheet-notes dt{font-weight:650;color:var(--muted);margin-top:10px;font-size:13px}
.sheet-notes dd{margin:2px 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}
.entry-card .card-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--panel)}
.recent-row .recent-icon{position:relative;overflow:hidden}
.mini-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.detail-art{display:grid;justify-items:center;gap:5px;margin:0 0 16px;text-align:center}
.detail-poster{height:145px;max-width:100%;object-fit:contain;border-radius:6px}
.cover-picker{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:10px;padding:12px;margin:0 0 15px;background:var(--paper)}
.cover-picker img{width:56px;height:78px;object-fit:contain;border-radius:4px;background:var(--line)}
.cover-options{display:grid;gap:4px;min-width:0;flex:1;font-size:13px}
.cover-options a,.cover-options span,.cover-options small{overflow-wrap:anywhere}
.cover-options a{color:var(--accent);text-decoration:underline}
.cover-options select{width:100%;max-width:100%;min-width:0;margin-top:3px}
.cover-options .cover-retry{width:max-content;margin:0;padding:2px 0;font-size:12px}

.member-select{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;max-width:100%;min-height:38px}
.member-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.member-choice{display:flex;align-items:center;justify-content:space-between;min-width:0;text-align:left;padding:11px 13px;border-radius:10px;border:1px solid var(--line)}
.member-choice span{overflow-wrap:anywhere}.member-choice small{white-space:nowrap;margin-left:6px;color:var(--muted)}
.member-choice[aria-pressed=true]{color:white;background:var(--raised);border-color:var(--raised)}.member-choice[aria-pressed=true] small{color:var(--ink)}
.social-bar{display:flex;align-items:center;gap:3px;border-top:1px solid var(--line);padding:5px 10px}
.social-bar button{display:inline-flex;align-items:center;justify-content:center;gap:5px;border-radius:7px;padding:8px 6px;min-height:36px;font-size:13px;white-space:nowrap}
.social-bar button:last-child{margin-left:auto}.social-bar button:hover,.member-choice:hover{background:var(--raised);color:var(--ink)}
.social-bar button[aria-pressed=true]{color:var(--accent)}.social-bar button[aria-pressed=true] svg{fill:var(--accent)}.social-bar button[data-do=like][aria-pressed=true]{color:var(--error)}.social-bar button[data-do=like][aria-pressed=true] svg{fill:var(--error)}
.entry-detail .social-bar{margin-top:14px;padding:6px 0}.thread{margin-top:14px}.thread h3{font-size:17px;margin:0 0 10px}
#comment-form{display:grid;justify-items:end;gap:6px;margin-bottom:17px}#comment-form textarea{width:100%;max-width:100%;min-height:60px;padding:10px;border:1px solid var(--line);border-radius:9px;resize:vertical}
.comments-list{font-size:14px;color:var(--muted)}.comment{padding:10px 0;border-top:1px solid var(--line)}.comment>div{display:flex;align-items:center;gap:8px}.comment strong{color:var(--ink)}.comment time{font-size:11px}.comment button{margin-left:auto}.comment p{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);margin:7px 0}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.thread-more[hidden]{display:none}
@media(max-width:420px){.social-bar{padding:4px}.social-bar button{font-size:12px;padding:7px 4px}.feed .section-head:has(.member-select){align-items:center;gap:6px}.member-select{padding:6px 9px;font-size:13px}nav a{padding-inline:9px}}


/* App shell and navigation */
.wrap{max-width:1200px}
.site-head{background:var(--paper)}
.head-inner{height:68px;gap:44px}
.brand{font-size:23px;letter-spacing:-1.4px;gap:9px}
.brand img{width:31px;height:31px}
nav a{display:flex;align-items:center;gap:7px;border-radius:9px;padding:9px 12px;font-size:14px}
nav a[aria-current=page]{color:var(--ink);background:var(--raised)}
nav a[aria-current=page] svg{color:var(--accent)}
.btn,.chip{font-weight:600}
.btn.primary,.btn.primary:hover{color:#1b2014}
.btn.account{border-color:var(--line)}
.btn:disabled{opacity:.6;cursor:wait}
.btn.white,.btn:not(.primary):not(.danger):hover{background:var(--raised)}
main.wrap{margin-top:30px}
h2,.section-head h2{font-size:clamp(21px,2vw,26px);letter-spacing:-.055em;font-weight:750}
h3{letter-spacing:-.035em}
.hero,.page-head,.room-head{
  border:0;border-bottom:1px solid var(--line);border-radius:0;
  padding:12px 0 26px;background:transparent;margin:0;
}
.hero{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;min-height:0}
.hero h1,.page-head h1,.room-head h1{
  color:var(--ink);font-size:clamp(32px,4vw,48px);font-weight:780;line-height:1.13;
  letter-spacing:-.065em;margin:4px 0 8px;width:auto
}
.hero p,.page-head p,.room-head p{font-size:15px;color:var(--muted);margin:0}
.page-head .actions,.room-head .actions{margin-top:16px}
.page-head{margin-bottom:22px}
.feed{margin-top:30px}
.section-head p{font-size:14px}
.filters{gap:7px;margin:14px 0 18px}
.chip{color:var(--muted);background:transparent;border-color:var(--line);border-radius:10px}
.chip.on{color:#20241c;background:#eceee7;border-color:#eceee7}
.entry-card{display:flex;flex-direction:column;min-width:0;border-radius:14px;background:var(--panel);box-shadow:none}
.entry-card:hover{box-shadow:none;transform:none;border-color:#656b5e}
.card-button{flex:1;height:auto}
.entry-grid,.room-grid{gap:16px}
.work-card{border:0;border-radius:0;background:transparent}
.feed .entry-grid:has(.work-card){grid-template-columns:repeat(6,minmax(0,1fr));gap:22px 16px}
.work-cover{aspect-ratio:3/4.2;border-radius:12px;background:var(--panel)}
.work-cover .work-poster{background:var(--panel);object-fit:cover}
.cover-tag{left:8px;top:8px;border-radius:6px;background:#151715e6;color:#f3f3ee;font-size:11px;padding:3px 6px}
.work-card .card-body{padding:10px 1px 0}
.work-card .card-body h3{font-size:16px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.work-card .card-body p{font-size:12px;margin:4px 0 7px}
.work-card .card-meta{border:0;padding:0;font-size:11px;flex-wrap:wrap;gap:3px 8px}
.work-card .source-link{margin:5px 0 0;font-size:11px}
.entry-card:not(.work-card) .card-button{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:stretch;gap:13px;padding:14px}
.entry-card:not(.work-card) .cover{border-radius:9px;aspect-ratio:auto;min-height:118px}
.entry-card:not(.work-card) .cover-tag{top:auto;bottom:4px;left:4px;font-size:10px;max-width:calc(100% - 8px)}
.entry-card:not(.work-card) .cover-tag svg{display:none}
.entry-card:not(.work-card) .card-body{padding:0}
.entry-card:not(.work-card) .title-row{flex-wrap:wrap;align-content:flex-start}
.entry-card:not(.work-card) .card-body h3{font-size:18px;line-height:1.35}
.card-body>p{margin:6px 0 10px}
.card-meta,.room-bottom{border-top-style:solid}
.entry-card:not(.work-card) .card-meta{border:0;padding:0;flex-wrap:wrap;gap:3px 8px}
.entry-card .card-poster{background:#191b19}
.entry-card:not(.work-card) .paper-cover{padding:12px 8px 26px;align-items:center}
.entry-card:not(.work-card) .paper-cover strong{font-size:16px;letter-spacing:-.06em}
.paper-cover strong{font-family:inherit}
.paper-grid,.paper-stub{opacity:.25}
.social-bar button[aria-pressed=true] svg{fill:currentColor}
.member-choice[aria-pressed=true]{border-color:var(--accent);background:var(--wash);color:var(--accent)}
.room-card,.empty{background:var(--panel);border-style:solid}
#notice{border:1px solid var(--line);color:var(--ink);background:var(--raised)}
/* Native dialogs retain focus, escape and keyboard handling. */
dialog{background:var(--panel);border-color:var(--line);padding:24px;border-radius:20px;box-shadow:0 16px 64px #0006}
.dialog-head h2{font-size:21px;letter-spacing:-.05em}
.icon-btn{width:36px;height:36px;border:0}
dialog label{font-size:14px;margin-bottom:15px}
input:not([type=checkbox]),textarea,select{background-color:var(--paper);border-color:var(--line);border-radius:10px}
input::placeholder,textarea::placeholder{color:#989e93}
input[aria-invalid=true]{border-color:var(--error)}
label:has(+.field-hint),label:has(+.field-error:not(:empty)){margin-bottom:4px}
.field-hint,.field-error{margin:4px 0 14px;font-size:13px;line-height:1.5}
.field-hint{color:var(--muted)}
.field-hint:has(+.field-error:not(:empty)){display:none}
.field-error,.form-error{color:var(--error)}
.field-error:empty{display:none}
.account-security .btn{width:100%;margin-top:10px}
.auth-switch{flex-wrap:wrap}
@media(min-width:701px) and (max-width:1050px){
 .feed .entry-grid:has(.work-card){grid-template-columns:repeat(4,minmax(0,1fr))}
 .entry-grid:has(.social-bar){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 .wrap{width:calc(100% - 36px)}
 .head-inner{height:58px;min-height:0;display:flex;padding:0;gap:12px}
 .brand{font-size:21px}
 .brand img{width:28px;height:28px}
 nav{position:fixed;z-index:4;inset:auto 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
   border-top:1px solid var(--line);padding:4px 5px calc(4px + env(safe-area-inset-bottom));background:#191b19}
 nav a,nav a[aria-current=page]{flex-direction:column;gap:2px;justify-content:center;padding:5px 0;
   min-height:48px;font-size:11px;background:transparent;line-height:1.35}
 nav a[aria-current=page]{color:var(--accent)}
 .btn.account{font-size:13px;min-height:36px}
 main.wrap{margin-top:20px;margin-bottom:42px}
 footer{padding-bottom:calc(58px + env(safe-area-inset-bottom))}
 .hero,.page-head,.room-head{padding:2px 0 20px}
 .hero{display:flex;align-items:flex-start;flex-direction:column;gap:14px}
 .hero h1,.page-head h1,.room-head h1{font-size:32px}
 .hero .btn,.actions .btn{min-height:40px;font-size:13px}
 .hero p,.intro{font-size:14px}
 .hero .actions{gap:8px}
 .feed{margin-top:24px}
 .feed .entry-grid:has(.work-card){grid-template-columns:repeat(3,minmax(0,1fr));gap:19px 12px}
 .filters{scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding-bottom:5px}
 .entry-grid:has(.social-bar){grid-template-columns:1fr}
 dialog{width:100%;max-width:100%;margin:auto 0 0;padding:10px 20px calc(22px + env(safe-area-inset-bottom));
   border-radius:20px 20px 0 0;max-height:90dvh;overscroll-behavior:contain}
 dialog::before{content:"";display:block;width:32px;height:4px;border-radius:4px;background:#62665d;margin:0 auto 14px}
 #notice{bottom:calc(70px + env(safe-area-inset-bottom))}
}
@media(max-width:480px){
 .feed .entry-grid:has(.work-card){grid-template-columns:repeat(2,minmax(0,1fr))}
 .section-head h2{font-size:21px}
 .work-card .card-body h3{font-size:15px}
 .filters{margin:12px 0 14px}
}

.work-cover .paper-cover{align-items:flex-end;padding:36px 14px 22px}
.work-cover .paper-cover strong{max-width:100%;font-size:clamp(20px,2.1vw,30px);line-height:1.18;letter-spacing:-.065em;-webkit-line-clamp:4}
.paper-cover.plum{background:#41383f;color:#f4e7ee}
.paper-cover.inkblue{background:#303c45;color:#e6eef4}
.paper-cover.olive{background:#404332;color:#eff1d8}
.work-cover .paper-grid{opacity:.6}
.work-cover .age-mark{position:absolute;right:9px;top:9px;display:grid;place-items:center;
 width:24px;height:24px;border-radius:50%;border:1px solid #ffffff85;color:#f2f2ee;font:600 11px/1 system-ui,sans-serif}
input[aria-invalid=true]:focus-visible{outline:2px solid var(--error);outline-offset:1px}
@media(max-width:480px){.work-cover .paper-cover strong{font-size:22px}}

.room-identity{display:flex;align-items:center;gap:18px;min-width:0}
.room-photo,.photo-preview{object-fit:cover;aspect-ratio:1;background:var(--raised);border:1px solid var(--line);border-radius:15px}
.room-identity .room-photo{width:82px;height:82px;flex:none}
.room-card .room-photo{width:64px;height:64px}
.room-identity h1{overflow-wrap:anywhere}
.room-notice{margin-top:18px;padding:16px 18px;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:10px;background:var(--panel)}
.notice-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.notice-heading h2{font-size:16px;letter-spacing:-.03em}
.room-notice p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;margin:8px 0 0}
.photo-preview{display:block;width:144px;height:144px;margin:0 auto 18px}
.photo-message{color:var(--muted);font-size:13px}
.photo-message:empty{margin:0 0 12px}
input[type=file]{font-size:14px}
input[type=file]::file-selector-button{padding:5px 9px;margin-right:8px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--raised);cursor:pointer}
@media(max-width:700px){.room-identity{gap:12px}.room-identity .room-photo{width:62px;height:62px}.room-notice{padding:13px 14px}}

.room-bottom{flex-wrap:wrap}.room-actions{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}.room-actions:empty{display:none}

/* Room management */
dialog.room-manager{width:min(520px,calc(100% - 24px));max-height:min(90dvh,820px);padding:0;overflow:hidden}
dialog.room-manager[open]{display:flex;flex-direction:column}
.room-manager .dialog-head{margin:0;padding:18px 22px 10px;flex:none}
.room-manager .dialog-head h2{font-size:20px}
.manage-tabs{display:flex;flex:none;gap:22px;padding:0 22px;border-bottom:1px solid var(--line)}
.manage-tabs button{margin:0 0 -1px;padding:10px 1px;color:var(--muted);background:none;border:0;border-bottom:2px solid transparent;font:inherit;font-weight:650;cursor:pointer}
.manage-tabs button[aria-selected=true]{color:var(--ink);border-bottom-color:var(--accent)}
.manage-tabs button:focus-visible,.photo-upload:focus-within,.photo-reset:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.room-manager [role=tabpanel]{min-height:0;padding:18px 22px;overflow-y:auto;overscroll-behavior:contain}
.room-manager [hidden]{display:none}
.room-manager .form-error{flex:none;margin:0;padding:0 22px}
.room-manager .form-error:not(:empty){padding:8px 22px 14px}
.room-manager label{margin-bottom:13px}
.room-manager textarea[name=about]{min-height:56px;height:56px}
.room-manager textarea[name=notice]{min-height:72px;height:72px}
.room-manager .field-hint{font-size:12px}
.manage-photo{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.manage-photo .photo-preview{width:68px;height:68px;flex:none;margin:0;border-radius:12px}
.manage-photo h3,.member-section h3{font-size:15px;margin:0 0 8px}
.manage-photo small,.member-empty{color:var(--muted);font-size:12px}
.photo-tools,.member-controls,.settings-footer{display:flex;align-items:center;gap:8px}
.photo-tools{margin-bottom:3px;flex-wrap:wrap}
.room-manager .photo-upload{position:relative;overflow:hidden;display:inline-flex;margin:0;cursor:pointer}
.photo-upload input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;padding:0;margin:0;cursor:pointer}
.photo-reset,.settings-footer .settings-delete{border:0;padding:4px 0;background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
.settings-footer .settings-delete{color:#ff9696}
.photo-reset:hover,.settings-footer .settings-delete:hover{text-decoration:underline}
.room-manager .photo-message:empty{display:none}
.settings-footer{justify-content:space-between;padding-top:12px;border-top:1px solid var(--line)}
.member-section+.member-section{margin-top:22px}
.member-section h3 span{color:var(--muted);font-variant-numeric:tabular-nums;margin-left:3px}
.member-invite{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px;padding:9px 10px;border-radius:9px;background:var(--raised)}
.member-invite code{white-space:nowrap;font:600 clamp(.75rem,3vw,1rem)/1.4 ui-monospace,monospace;letter-spacing:.02em}
.member-invite .btn{white-space:nowrap}
.member-list{margin:0;padding:0;list-style:none}
.member-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.member-list li strong{overflow-wrap:anywhere;font-size:14px}
.member-list li:last-child{border-bottom:0}
.member-controls,.member-list .btn{flex-shrink:0}
.member-empty{margin:0;padding:10px 0}
.member-confirmation,.manage-delete-confirm{margin:8px 0;padding:12px;background:var(--raised);border-radius:8px}
.member-confirmation p,.manage-delete-confirm p{font-size:13px;margin:0 0 8px}
.member-confirmation .member-controls,.manage-delete-confirm .member-controls{justify-content:flex-end}
@media(max-width:400px){
 .room-manager .dialog-head{padding:14px 14px 6px}
 .manage-tabs{padding:0 14px}
 .room-manager [role=tabpanel]{padding:14px}
 .member-invite{gap:4px;padding:8px}
 .member-invite .btn{padding:5px 7px;font-size:12px}
}

.member-list li.member-confirmation{display:block;padding:12px;border:0}

.room-member-link{display:inline-flex;align-items:center;gap:2px;background:none;border:0;padding:4px 1px;color:var(--ink);font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line)}
.room-member-link:hover,.room-member-link:focus-visible{color:var(--accent)}
.member-help{font-size:13px;color:var(--muted);margin:0 0 14px}
.member-profiles{display:grid;gap:7px}
.member-profiles .member-choice{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:5px 12px;width:100%;padding:12px 14px}
.member-profiles strong{overflow-wrap:anywhere}
.member-profiles small{font-size:12px;font-variant-numeric:tabular-nums}
.member-profile .member-bio{grid-column:1/-1;white-space:pre-wrap;color:var(--ink);font-size:13px;font-weight:400;line-height:1.55}
.member-profile .missing{color:var(--muted)}
.account-photo .photo-upload{position:relative;overflow:hidden;display:inline-flex;margin:0;cursor:pointer}
.account-photo{margin:0 0 16px}
.account-photo .photo-preview,.roster-avatar,.account-avatar{object-fit:cover;border-radius:50%}
.account-avatar{width:22px;height:22px}
.roster-avatar{width:42px;height:42px;flex:none}
.profile-name{display:flex;align-items:center;gap:10px;min-width:0}
.member-profile .profile-line{grid-column:1/-1;display:grid;grid-template-columns:3.4em minmax(0,1fr);gap:8px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.profile-line b{color:var(--muted);font-size:.85rem}
.account-photo+.photo-message:empty{display:none}
.selected-profile{display:flex;gap:16px;align-items:flex-start;background:var(--raised);border:1px solid var(--line);border-radius:14px;padding:16px;margin:12px 0}
.selected-profile>img{width:clamp(56px,13vw,96px);aspect-ratio:1;object-fit:cover;border-radius:12px}
.selected-profile>div{min-width:0}
.selected-profile h3,.selected-profile dl{margin:0}
.selected-profile dl>div{display:grid;grid-template-columns:3.4em minmax(0,1fr);gap:6px;margin-top:7px}
.selected-profile dt{font-size:.85rem;color:var(--muted)}
.selected-profile dd,.selected-profile p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.selected-profile p,.selected-profile .btn{margin-top:8px}

.work-cover .work-poster:not(.poster-ready){opacity:0}
.work-cover .work-poster[hidden]{display:none}
.recovery-links,.account-security{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}
.recovery-code{font-size:1.1rem;line-height:1.65;padding:16px;background:var(--panel);border:1px solid currentColor;border-radius:10px;overflow-wrap:anywhere;user-select:all;font-family:monospace}
.field-hint a,.policy-page a:not(.brand):not(.btn),footer a,.account-security a{text-decoration:underline;text-underline-offset:3px}
.policy-page{max-width:44rem;padding:32px 22px 64px;margin:auto;line-height:1.8;overflow-wrap:anywhere}
.policy-page .brand{display:inline-flex;align-items:center;gap:9px}
.policy-page h1{font-size:clamp(1.8rem,6vw,2.8rem);margin:42px 0 20px}
.policy-page h2{font-size:1.3rem;margin:32px 0 8px}
.policy-page p,.policy-page li{margin:0 0 12px}
.policy-page ul{padding-left:1.4em}
footer .wrap{flex-wrap:wrap;padding-block:14px}
.room-enter{color:inherit}
.my-room-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,22rem),1fr))}
.my-room-grid .room-card{
  display:grid;grid-template-columns:minmax(0,1fr) min(39%,10rem);grid-template-rows:1fr auto;
  grid-template-areas:"info photo" "actions actions";align-items:center;
  gap:14px clamp(12px,2vw,20px);padding:clamp(14px,2vw,20px)
}
.my-room-grid .room-body{grid-area:info;min-width:0}
.my-room-grid .room-photo{grid-area:photo;width:100%;height:auto;aspect-ratio:1;justify-self:end}
.my-room-grid .room-bottom{grid-area:actions}
 .record-heading,.record-check,#modal-form .record-check{display:flex;align-items:center;gap:.5rem}
.record-heading{flex-wrap:wrap;gap:.8rem}
.record-check,#modal-form .record-check{width:fit-content;font-size:.875rem;cursor:pointer}
.record-check input[type=checkbox]{width:1rem;height:1rem;min-height:0;margin:0;padding:0;accent-color:var(--accent)}
.profile-name{flex-wrap:wrap}
.member-rank{display:inline-block;font-size:.78rem;color:var(--accent);background:var(--raised);border-radius:1rem;padding:.15rem .5rem}
.form-row [data-rating][hidden]{display:none}
.form-row:has([data-rating][hidden]){grid-template-columns:1fr}
@media (hover:hover){.room-enter:hover{border-color:var(--accent)}}

@media (max-width:700px){
  dialog.room-manager{box-sizing:border-box;width:100%;margin-inline:auto}
}
.cover-picker input[type="file"][hidden]{display:none}
