.cc-dialog{border:1px solid #aaa;background:#eeede7;color:#191916;padding:24px;width:min(520px,calc(100vw - 40px));max-height:88dvh;overflow:auto;border-radius:3px;font-family:inherit;box-sizing:border-box;z-index:1000}.cc-dialog::backdrop{background:rgba(0,0,0,.65)}.cc-dialog[open]{display:block}.cc-dialog.cc-tavern{width:min(900px,calc(100vw - 24px))}.cc-dialog button,.cc-dialog input{font:inherit}.cc-dialog button{cursor:pointer;border:1px solid #888;background:transparent;padding:10px 14px;color:inherit}.cc-dialog button:disabled{opacity:.5;cursor:wait}.cc-dialog input{box-sizing:border-box;width:100%;padding:12px;border:1px solid #999;background:#fff;color:#151515}.cc-dialog label{display:block;margin:16px 0}.cc-close{float:right}.cc-message{min-height:1.4em;color:#8c3425}.cc-privacy{font-size:12px;line-height:1.7}.cc-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px;margin:20px 0}.cc-card{border:1px solid #aaa;padding:12px}.cc-card img{width:100%;height:230px;object-fit:contain}.cc-card h3{font-size:17px}.cc-card button{margin:4px 4px 0 0}.cc-nav{font:inherit;border:1px solid #888;background:transparent;color:inherit;padding:10px 16px;cursor:pointer}.cc-home-nav{position:absolute;top:max(18px,env(safe-area-inset-top));right:18px;z-index:4}.cc-admin{margin:20px;padding:20px;border:1px solid #aaa}.cc-admin table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}.cc-admin td,.cc-admin th{padding:10px;text-align:left;white-space:nowrap;border-bottom:1px solid #ccc}.cc-admin nav button{margin:6px}.cc-admin p{line-height:1.6}.cc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:420px){.cc-dialog{padding:18px}.cc-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cc-card{padding:8px}.cc-card img{height:160px}.cc-card button{padding:8px;font-size:12px}}

/* Existing tavern entry in the anywhere door: normal document flow, before the list. */
.scene-drawer .cc-door-nav{display:block;position:static;margin:0 0 24px;max-width:100%;font-size:15px;line-height:1.5;font-weight:500;letter-spacing:normal}

/* Full-page private tavern. Scoped to this route, never to Space or homepage. */
html.cc-tavern-active,html.cc-tavern-active body{background:#f7f5ee;color:#282b26;color-scheme:light}
.cc-tavern-active .noise,.cc-tavern-active [data-topbar],.cc-tavern-active .cc-home-nav{display:none}
.cc-tavern-page{min-height:100vh;min-height:100dvh;padding-bottom:max(28px,env(safe-area-inset-bottom));background:#f7f5ee;color:#282b26;overflow-wrap:anywhere}
.cc-tavern-page button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;min-height:44px;min-width:44px;border-radius:10px}
.cc-tavern-page button:disabled{cursor:wait;opacity:.5}
.cc-tavern-page button:focus-visible{outline:2px solid #688426;outline-offset:3px}
.cc-tavern-header{max-width:1120px;margin:auto;padding:max(10px,env(safe-area-inset-top)) 16px 8px;display:grid;grid-template-columns:76px minmax(0,1fr) 60px;align-items:center;gap:8px}
.cc-tavern-header h1{font-size:18px;line-height:1.4;font-weight:500;text-align:center;margin:0}
.cc-tavern-header button{font-size:14px;padding:8px 0;text-align:left}
.cc-tavern-header [data-cc-settings]{text-align:right;color:#676c61}
.cc-tavern-content{max-width:1120px;margin:auto;padding:0 16px}
.cc-profile{padding:16px 0 20px}
.cc-profile h2{margin:0 0 7px;font-size:23px;line-height:1.4;font-weight:500}
.cc-profile p{margin:0;font-size:14px;line-height:1.6;color:#73776d}
.cc-tavern-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}
.cc-tavern-card{display:flex;flex-direction:column;min-width:0}
.cc-tavern-card .cc-poster-link{display:flex;align-items:center;justify-content:center;width:100%;height:clamp(210px,65vw,280px);padding:4px;background:#efeee7;border-radius:5px;overflow:hidden}
.cc-poster-link img{display:block;width:100%;height:100%;object-fit:contain}
.cc-poster-unavailable{padding:12px;font-size:13px;line-height:1.6;color:#86897e;text-align:center}
.cc-card-copy{padding-top:11px;flex:1}
.cc-tavern-card .cc-title-link{display:block;text-align:left;width:100%;min-height:44px;padding:0;border-radius:0}
.cc-tavern-card h3{font-size:16px;font-weight:500;line-height:1.4;margin:0;min-height:2.8em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.cc-card-copy>p{margin:5px 0 2px;font-size:12px;line-height:1.5;color:#7b7e74;min-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc-tavern-card .cc-heart{align-self:flex-start;display:flex;align-items:center;gap:7px;min-height:44px;padding:6px 2px;font-size:12px;color:#657449;border-radius:8px}
.cc-heart span{font-size:18px;color:#6c812f}
.cc-page-state{font-size:15px;line-height:1.7;color:#757a6b}
.cc-page-state:not(:empty){padding:28px 0 40px;max-width:430px}
.cc-page-state p{margin:0 0 16px}
.cc-page-state button{padding:10px 18px;background:#d9ff55;color:#2c3420;font-size:14px;font-weight:500}
.cc-page-error{font-size:14px;line-height:1.6;color:#9a473c}
.cc-page-error:empty{display:none}
.cc-tavern-footer{display:flex;justify-content:center;gap:12px;padding:20px 0}
.cc-tavern-footer button{font-size:14px;padding:9px 18px;color:#667642;background:#eeefe6}
@media(min-width:720px){.cc-tavern-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 18px}.cc-tavern-card .cc-poster-link{height:320px}.cc-profile{padding-top:24px}.cc-tavern-header{padding-top:max(18px,env(safe-area-inset-top))}}
@media(min-width:1040px){.cc-tavern-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 20px}.cc-tavern-card .cc-poster-link{height:350px}}

/* Consumer authentication only; account settings and other dialogs retain their styles. */
.cc-dialog.cc-auth{position:fixed;margin:0;left:var(--cc-auth-left,50%);top:var(--cc-auth-top,50%);transform:translate(-50%,-50%);width:min(436px,calc(100vw - 32px));max-height:min(88dvh,var(--cc-auth-height,calc(100dvh - 32px)));overflow-y:auto;overscroll-behavior:contain;scroll-padding:16px;border:0;border-radius:18px;padding:24px;background:#f8f6ef;color:#282b26;color-scheme:light;box-shadow:0 12px 40px rgba(0,0,0,.16)}
.cc-auth::backdrop{background:rgba(12,15,10,.55)}
.cc-auth button,.cc-auth input{font:inherit}
.cc-auth button:focus-visible,.cc-auth summary:focus-visible{outline:2px solid #657b2f;outline-offset:3px}
.cc-auth button:disabled{opacity:.65;cursor:wait}
.cc-auth .cc-auth-close{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:44px;height:44px;padding:10px;border:0;border-radius:50%;background:transparent;color:#62685b}
.cc-auth svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.cc-auth-heading{padding-right:24px;margin-bottom:18px}
.cc-auth-heading h2{font:500 23px/1.35 'Noto Sans SC',sans-serif;letter-spacing:-.025em;margin:0 0 8px;text-wrap:balance;overflow-wrap:anywhere}
.cc-auth-heading>p{font-size:14px;line-height:1.55;color:#73776b;margin:0;overflow-wrap:anywhere}
.cc-auth-preview{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:12px;padding:10px;margin:0 0 18px;border-radius:10px;background:#eeeee4}
.cc-auth-art{height:64px;display:grid;place-items:center;min-width:0}
.cc-auth-art img{display:block;width:100%;height:100%;object-fit:contain}
.cc-auth-art [hidden]{display:none}
.cc-auth-art span{font-size:10px;line-height:1.4;text-align:center;color:#808575}
.cc-auth-preview strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:14px;font-weight:500;line-height:1.45;overflow-wrap:anywhere}
.cc-auth-preview p{font-size:11px;line-height:1.5;color:#757b69;margin:5px 0 0}
.cc-auth form{margin:0}
.cc-auth-fields{display:grid;gap:16px}
.cc-auth [hidden]{display:none!important}
.cc-auth-field{min-width:0}
.cc-auth .cc-auth-field label{display:block;font-size:13px;line-height:1.5;margin:0 0 6px;color:#42493a}
.cc-auth input{height:48px;width:100%;font-size:16px;line-height:1.5;padding:10px 12px;border:1px solid #d9ddcc;border-radius:10px;background:#fffefa;color:#282b26;scroll-margin:16px}
.cc-auth input::placeholder{color:#979c8d;opacity:1}
.cc-auth input:focus{outline:2px solid #809451;outline-offset:1px;border-color:#809451}
.cc-auth input[aria-invalid=true]{border-color:#a8563e}
.cc-auth-password{position:relative}
.cc-auth-password input{padding-right:52px}
.cc-auth-password button{position:absolute;top:2px;right:2px;display:grid;place-items:center;min-width:44px;height:44px;border:0;border-radius:8px;padding:10px;color:#727a64;background:transparent}
.cc-auth .cc-auth-note{font-size:12px;line-height:1.5;color:#7b806f;margin:0}
.cc-auth-fields .cc-auth-note+ .cc-auth-note{margin-top:-10px}
.cc-auth-error{font-size:12px;line-height:1.5;color:#944a34;margin:5px 0 0}
.cc-auth-error:empty,.cc-auth .cc-message:empty{display:none}
.cc-auth .cc-message{font-size:13px;line-height:1.5;color:#944a34;margin:12px 0 0;min-height:0;overflow-wrap:anywhere}
.cc-auth .cc-auth-primary{display:block;width:100%;min-height:48px;padding:12px 16px;margin:18px 0 0;font-size:15px;font-weight:500;border:0;border-radius:10px;background:var(--acid,#c6dc72);color:#232b18;scroll-margin:16px}
.cc-auth .cc-auth-switch{display:block;width:100%;min-height:44px;padding:10px 4px;border:0;background:transparent;color:#7a806e;font-size:13px;line-height:1.5}
.cc-auth-switch span{color:#566d2b;margin-left:4px;font-weight:500}
.cc-auth .cc-privacy{border-top:1px solid #e0e3d5;padding-top:12px;margin-top:6px;font-size:12px;line-height:1.65;color:#747b68}
.cc-auth .cc-privacy summary{cursor:pointer;min-height:32px;display:list-item;line-height:24px;padding:4px 0}
.cc-auth .cc-privacy p{margin:10px 0 0}
@media(max-width:420px){.cc-dialog.cc-auth{padding:22px 20px}.cc-auth-heading h2{font-size:22px}}
