/* Clan campaign: existing manga art, native game icons and shared theme tokens. */
#tab-clan.clan-renewal :is(button,summary,input,textarea):focus-visible { outline:2px solid var(--clan-accent); outline-offset:3px; }
#tab-clan.clan-renewal :is(.cc-heading,.cf-ledger-head) { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#tab-clan.clan-renewal .cc-heading { margin-bottom:12px; }
#tab-clan.clan-renewal .cc-heading h2 { font-size:22px; line-height:1.2; margin:0; letter-spacing:-.02em; }
#tab-clan.clan-renewal .cc-heading p { margin:5px 0 0; color:var(--clan-muted); font-size:13px; }
#tab-clan.clan-renewal .clan-home-hero { isolation:isolate; padding:18px !important; border-left:0 !important; border-top:3px solid var(--clan-accent) !important; background:var(--clan-surface) !important; }
#tab-clan.clan-renewal .clan-home-hero::after { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.14; background:var(--clan-banner) center/cover; mask-image:linear-gradient(90deg,transparent 25%,#000); }
#tab-clan.clan-renewal .clan-home-name { font-size:23px !important; }
#tab-clan.clan-renewal .clan-weekly-overview { display:grid; grid-template-columns:1fr 1fr; gap:0; margin-bottom:12px; border:1px solid var(--clan-line); border-radius:10px; overflow:hidden; background:var(--clan-warm); }
#tab-clan.clan-renewal .clan-weekly-overview:empty { display:none; }
#tab-clan.clan-renewal .clan-weekly-overview button { display:grid; gap:3px; text-align:left; min-height:92px; padding:12px; background:none; border:0; color:var(--clan-ink); }
#tab-clan.clan-renewal .clan-weekly-overview button+button { border-left:1px solid var(--clan-line); }
#tab-clan.clan-renewal .clan-weekly-overview span { font-size:12px; }
#tab-clan.clan-renewal .clan-weekly-overview b { font-size:24px; line-height:1.1; color:var(--clan-gold); }
#tab-clan.clan-renewal .clan-weekly-overview small { font-size:11px; line-height:1.4; color:var(--clan-muted); }
#tab-clan.clan-renewal .room-top { background:linear-gradient(115deg,var(--clan-surface),var(--clan-warm)); }
#tab-clan.clan-renewal :is(.cc-tabs,.cr-tabs) { display:flex; gap:4px; padding:4px; margin:0 0 12px; background:var(--clan-raised); border-radius:10px; }
#tab-clan.clan-renewal :is(.cc-tabs,.cr-tabs) button { flex:1; min-width:0; min-height:44px; padding:6px; border:0; border-radius:7px; background:none; color:var(--clan-muted); font-size:12px; font-weight:600; }
#tab-clan.clan-renewal :is(.cc-tabs .is-active,.cr-tabs [aria-pressed="true"]) { background:var(--clan-surface); color:var(--clan-gold); box-shadow:inset 0 -2px var(--clan-accent); }
#tab-clan.clan-renewal :is(.cc-hunt,.cc-expedition,.cc-team) { padding:14px; border:1px solid var(--clan-line); border-radius:12px; background:var(--clan-surface); }
#tab-clan.clan-renewal .cc-boss-banner { position:relative; isolation:isolate; min-height:150px; display:flex; align-items:end; margin:-14px -14px 13px; padding:16px; overflow:hidden; border-radius:11px 11px 0 0; color:#fff2e2; background:#1c2029; }
#tab-clan.clan-renewal .cc-boss-banner::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#111820ed 0%,#111820b8 45%,transparent 90%); }
#tab-clan.clan-renewal .cc-boss-banner img { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:75% 30%; }
#tab-clan.clan-renewal .cc-boss-banner h3 { font-size:25px; line-height:1.15; margin:6px 0; text-shadow:0 2px 5px #0009; }
#tab-clan.clan-renewal .cc-boss-banner :is(small,span) { font-size:12px; color:#f3d5ad; }
#tab-clan.clan-renewal .cc-boss-health { display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px; margin-bottom:7px; font-size:13px; }
#tab-clan.clan-renewal .cc-boss-health small { color:var(--clan-muted); font-weight:400; }
#tab-clan.clan-renewal .cc-boss-health>span { color:var(--clan-muted); font-size:11px; }
#tab-clan.clan-renewal .cc-turn { display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px; margin-top:18px; font-size:14px; }
#tab-clan.clan-renewal .cc-turn span { color:var(--clan-muted); font-size:11px; }
#tab-clan.clan-renewal .cc-instruction { margin:7px 0 10px; font-size:13px; color:var(--clan-muted); }
#tab-clan.clan-renewal .cc-hunt .clan-hunt-squad-header { margin-top:18px; }
#tab-clan.clan-renewal .cc-hunt .clan-hunt-team { gap:8px; }
#tab-clan.clan-renewal .cc-hunt .clan-hunt-fighter { display:block; text-align:left; color:var(--clan-ink); border:1px solid var(--clan-line); border-radius:9px; padding:4px; }
#tab-clan.clan-renewal .cc-hunt button.clan-hunt-fighter { cursor:pointer; touch-action:manipulation; }
#tab-clan.clan-renewal .cc-hunt .clan-hunt-fighter.is-selected { border-color:var(--clan-accent); box-shadow:0 0 0 2px var(--accent-soft); background:var(--clan-warm); }
#tab-clan.clan-renewal .cc-hunt .clan-hunt-card-picture { overflow:hidden; border-radius:5px; }
#tab-clan.clan-renewal .cc-hunt .clan-hunt-card-name { font-size:11px; line-height:1.3; margin:6px 2px 3px; white-space:normal; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; min-height:2.6em; }
#tab-clan.clan-renewal .cc-hunt .clan-hunt-card-stats { margin:0 2px 3px; font-size:10px; }
#tab-clan.clan-renewal .cc-hunt .clan-hunt-card-hp { margin:0 2px 3px; color:var(--clan-muted); font-size:10px; overflow-wrap:anywhere; }
#tab-clan.clan-renewal .cc-tactics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:14px 0 10px; }
#tab-clan.clan-renewal .cc-tactics button { display:grid; align-content:center; gap:5px; min-width:0; min-height:68px; padding:9px 5px; border:1px solid var(--clan-line); border-radius:8px; color:var(--clan-ink); background:var(--clan-raised); }
#tab-clan.clan-renewal .cc-tactics b { font-size:12px; line-height:1.3; }
#tab-clan.clan-renewal .cc-tactics small { font-size:10px; line-height:1.35; color:var(--clan-muted); }
#tab-clan.clan-renewal .cc-tactics .is-selected { border-color:var(--clan-accent); background:var(--clan-warm); box-shadow:inset 0 -2px var(--clan-accent); }
#tab-clan.clan-renewal .cc-intent { display:grid; gap:4px; padding:11px; background:var(--clan-raised); border-radius:7px; margin-bottom:10px; overflow-wrap:anywhere; }
#tab-clan.clan-renewal .cc-intent b { font-size:13px; }
#tab-clan.clan-renewal .cc-intent :is(span,small) { font-size:12px; color:var(--clan-muted); }
#tab-clan.clan-renewal .cc-battle-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
#tab-clan.clan-renewal .cc-battle-actions button { min-height:48px; font-size:13px; }
#tab-clan.clan-renewal .cc-attempts { display:grid; gap:4px; margin:13px 0; font-size:13px; }
#tab-clan.clan-renewal .cc-attempts span { font-size:12px; color:var(--clan-muted); }
#tab-clan.clan-renewal .cc-reward-line { display:flex; align-items:center; gap:9px; font-size:12px; padding:14px 0; margin-top:8px; border-top:1px solid var(--clan-line); }
#tab-clan.clan-renewal .cc-reward-line>.clan-icon { width:28px; height:28px; }
#tab-clan.clan-renewal .cc-victory { display:flex; gap:10px; margin:15px 0; }
#tab-clan.clan-renewal .cc-victory p { margin:4px 0; font-size:13px; }
#tab-clan.clan-renewal .cc-expedition-cover { min-height:140px; display:flex; align-items:end; padding:16px; margin:-14px -14px 14px; color:#fff2e2; background:linear-gradient(90deg,#152322eb,#1523226e),url('assets/menu/scenes/tasks-329.webp') center/cover; border-radius:11px 11px 0 0; }
#tab-clan.clan-renewal .cc-expedition-cover h3 { margin:0 0 7px; font-size:23px; }
#tab-clan.clan-renewal .cc-expedition-cover p { margin:0; font-size:13px; max-width:32ch; }
#tab-clan.clan-renewal .cc-expedition .clan-expedition-map { display:grid; grid-template-columns:1fr; gap:8px; margin:14px 0; }
#tab-clan.clan-renewal .cc-expedition .clan-route { display:grid; grid-template-columns:32px minmax(0,1fr); gap:4px 10px; padding:14px; min-height:116px; text-align:left; border:1px solid var(--clan-line); background:var(--clan-raised); color:var(--clan-ink); border-radius:9px; }
#tab-clan.clan-renewal .cc-expedition .clan-route>.clan-icon { grid-row:1/4; width:30px; height:30px; }
#tab-clan.clan-renewal .cc-expedition .clan-route :is(b,small,span) { grid-column:2; }
#tab-clan.clan-renewal .cc-expedition .clan-route small { font-size:12px; line-height:1.5; }
#tab-clan.clan-renewal .cc-expedition .clan-route span { color:var(--clan-gold); font-size:12px; }
#tab-clan.clan-renewal .cc-team>h3 { font-size:19px; margin-bottom:8px; }
#tab-clan.clan-renewal .clan-game-rules { margin-top:12px; }
#tab-clan.clan-renewal .clan-game-rules summary { min-height:44px; padding:10px 0; cursor:pointer; font-weight:600; }
#tab-clan.clan-renewal .clan-game-caption { font-size:12px; line-height:1.6; }
/* Ranking is an explorable list, not a disconnected ornamental podium. */
#tab-clan.clan-renewal .cr-criterion { margin-bottom:15px; font-size:13px; }
#tab-clan.clan-renewal .cr-criterion p { margin:0 0 6px; }
#tab-clan.clan-renewal .cr-criterion :is(small,span) { display:block; color:var(--clan-muted); font-size:12px; line-height:1.5; }
#tab-clan.clan-renewal .cr-criterion span { margin-top:6px; }
#tab-clan.clan-renewal .cr-mine { margin:0 0 15px; padding:15px; border:1px solid var(--clan-accent); border-radius:10px; background:var(--clan-warm); }
#tab-clan.clan-renewal .cr-mine b { display:block; font-size:27px; }
#tab-clan.clan-renewal .cr-mine b>span { font-size:14px; margin-left:10px; }
#tab-clan.clan-renewal .cr-mine :is(p,small) { font-size:12px; color:var(--clan-muted); }
#tab-clan.clan-renewal .cr-list { display:grid; gap:7px; }
#tab-clan.clan-renewal .cr-row { background:var(--clan-surface); border:1px solid var(--clan-line); border-radius:10px; overflow:hidden; }
#tab-clan.clan-renewal .cr-row.is-mine { border-color:var(--clan-accent); }
#tab-clan.clan-renewal .cr-row>summary { display:grid; grid-template-columns:24px 40px minmax(0,1fr) auto 16px; align-items:center; gap:9px; list-style:none; padding:12px 10px; min-height:74px; cursor:pointer; }
#tab-clan.clan-renewal .cr-row>summary::-webkit-details-marker { display:none; }
#tab-clan.clan-renewal .cr-row[open]>summary>.clan-icon { transform:rotate(90deg); }
#tab-clan.clan-renewal .cr-place { font-size:17px; text-align:center; color:var(--clan-muted); }
#tab-clan.clan-renewal .cr-top .cr-place { color:var(--clan-gold); font-weight:700; }
#tab-clan.clan-renewal .cr-avatar { width:40px; height:40px; overflow:hidden; display:grid; place-items:center; background:var(--clan-raised); border-radius:8px; }
#tab-clan.clan-renewal .cr-avatar img { width:100%; height:100%; object-fit:contain; }
#tab-clan.clan-renewal .cr-copy { min-width:0; }
#tab-clan.clan-renewal .cr-copy b { display:block; font-size:13px; overflow-wrap:anywhere; line-height:1.3; }
#tab-clan.clan-renewal .cr-copy small { display:block; font-size:10px; margin-top:4px; color:var(--clan-muted); }
#tab-clan.clan-renewal .cr-score { font-size:17px; font-weight:700; text-align:right; }
#tab-clan.clan-renewal .cr-score small { display:block; font-size:9px; font-weight:400; color:var(--clan-muted); }
#tab-clan.clan-renewal .cr-row>summary>.clan-icon { width:15px; height:15px; }
#tab-clan.clan-renewal .cr-detail { padding:13px; background:var(--clan-raised); border-top:1px solid var(--clan-line); font-size:12px; }
#tab-clan.clan-renewal .cr-detail h4 { margin:15px 0 7px; font-size:13px; }
#tab-clan.clan-renewal .cr-detail p { margin:6px 0; }
#tab-clan.clan-renewal .cr-metrics { display:flex; flex-wrap:wrap; gap:8px 14px; }
#tab-clan.clan-renewal .cr-metrics b { color:var(--clan-gold); }
#tab-clan.clan-renewal .cr-hero { display:grid; grid-template-columns:minmax(0,1fr) 20px; align-items:center; gap:3px; width:100%; min-height:48px; padding:8px 0; color:var(--clan-ink); background:none; border:0; text-align:left; }
#tab-clan.clan-renewal .cr-hero b { font-size:12px; overflow-wrap:anywhere; }
#tab-clan.clan-renewal .cr-hero small { color:var(--clan-muted); grid-row:2; }
#tab-clan.clan-renewal .cr-hero>.clan-icon { grid-column:2; grid-row:1/3; }
/* Real fund projects share the same bank; previews state consequences. */
#tab-clan.clan-renewal :is(.cf-direction,.cf-upgrades,.cf-invest-income) { margin:16px 0; }
#tab-clan.clan-renewal :is(.cf-direction,.cf-upgrades,.cf-invest-income) h3 { font-size:18px; margin:0 0 10px; }
#tab-clan.clan-renewal .cf-goals { display:flex; flex-wrap:wrap; gap:6px; }
#tab-clan.clan-renewal .cf-goals button { flex:1 1 90px; min-height:44px; padding:8px; font-size:12px; color:var(--clan-ink); background:var(--clan-raised); border:1px solid var(--clan-line); border-radius:7px; }
#tab-clan.clan-renewal .cf-goals [aria-pressed="true"] { border-color:var(--clan-accent); box-shadow:inset 0 -2px var(--clan-accent); opacity:1; }
#tab-clan.clan-renewal .cf-upgrade { display:grid; grid-template-columns:30px minmax(0,1fr); gap:10px; padding:14px; margin:8px 0; border:1px solid var(--clan-line); background:var(--clan-raised); border-radius:10px; }
#tab-clan.clan-renewal .cf-upgrade>.clan-icon { width:30px; height:30px; color:var(--clan-gold); }
#tab-clan.clan-renewal .cf-upgrade-name { display:flex; flex-wrap:wrap; gap:7px; justify-content:space-between; align-items:baseline; }
#tab-clan.clan-renewal .cf-upgrade h4 { font-size:15px; margin:0; }
#tab-clan.clan-renewal .cf-upgrade :is(p,small,span) { font-size:12px; line-height:1.5; }
#tab-clan.clan-renewal .cf-upgrade p { margin:7px 0; color:var(--clan-muted); }
#tab-clan.clan-renewal .cf-upgrade small { display:block; color:var(--clan-gold); margin-bottom:9px; }
#tab-clan.clan-renewal .cf-upgrade .cf-progress { height:5px; }
#tab-clan.clan-renewal .cf-max-level { font-size:12px; color:var(--clan-success); }
#tab-clan.clan-renewal :is(.cf-impact,.cf-pending) { padding:11px; background:var(--clan-warm); border:1px solid var(--clan-line-strong); border-radius:7px; font-size:12px; line-height:1.5; }
#tab-clan.clan-renewal .cf-pending { margin:10px 0; }
#tab-clan.clan-renewal .cf-profit-source { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:8px 0; padding:10px; background:var(--clan-raised); border-radius:8px; font-size:12px; }
#tab-clan.clan-renewal .cf-profit-source b { display:block; font-size:16px; margin-top:4px; }
#tab-clan.clan-renewal :is(.cf-profit-source,.cf-invest-income) button { min-height:44px; padding:9px; background:var(--clan-warm); color:var(--clan-gold); border:1px solid var(--clan-line); border-radius:7px; font-size:12px; }
#tab-clan.clan-renewal .cf-crate { color:var(--clan-gold); flex:none; width:45px !important; height:45px !important; }
#tab-clan.clan-renewal .cf-caption { font-size:12px !important; line-height:1.6; }
.vault-clan-link { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:16px; margin:14px 0; background:var(--bg-card); border:1px solid var(--border-hot); border-radius:12px; color:var(--text); }
.vault-clan-link>div { flex:1 1 260px; }
.vault-clan-link h2 { font-size:16px; margin:0 0 6px; }
.vault-clan-link p { font-size:13px; line-height:1.5; margin:0; color:var(--text-sub); }
.vault-clan-link button { min-height:44px; padding:10px 14px; border:1px solid var(--border); border-radius:8px; background:var(--bg-card-2); color:var(--accent-hi); cursor:pointer; }
/* Chat grouping, stable author color, restrained native emoji, reachable reply. */
#tab-clan.clan-renewal #cpanel-chat .msg-author { color:var(--clan-gold) !important; padding-top:8px; font-size:12px; }
#tab-clan.clan-renewal #cpanel-chat .clan-chat-msg { max-width:92%; margin-bottom:3px; }
#tab-clan.clan-renewal #cpanel-chat .is-group-start { margin-top:10px; }
#tab-clan.clan-renewal #cpanel-chat .is-joined .msg-bubble { border-radius:5px 10px 10px 5px; padding-top:7px; }
#tab-clan.clan-renewal #cpanel-chat .is-joined.msg-me .msg-bubble { border-radius:10px 5px 5px 10px; }
#tab-clan.clan-renewal #cpanel-chat .chat-avatar-spacer { width:27px; flex:none; }
#tab-clan.clan-renewal #cpanel-chat .chat-day { align-self:center; margin:12px 0 7px; font-size:11px; line-height:1.3; color:var(--clan-muted); }
#tab-clan.clan-renewal #cpanel-chat .msg-text { font-size:15px !important; line-height:1.45 !important; }
#tab-clan.clan-renewal #cpanel-chat .chat-message-footer { gap:2px; margin-left:5px; }
#tab-clan.clan-renewal #cpanel-chat .chat-message-footer button { min-width:32px; width:32px; min-height:32px; height:32px; padding:7px; }
#tab-clan.clan-renewal #cpanel-chat .chat-message-footer time { font-size:10px; }
#tab-clan.clan-renewal #cpanel-chat .clan-chat-prompts { display:block !important; flex:none; margin:0; padding:0 10px; background:var(--clan-surface); }
#tab-clan.clan-renewal #cpanel-chat .clan-chat-prompts summary { min-height:36px; padding:7px 0; cursor:pointer; font-size:12px; color:var(--clan-muted); }
#tab-clan.clan-renewal #cpanel-chat .clan-chat-prompts>div { display:flex; gap:5px; padding-bottom:7px; }
#tab-clan.clan-renewal #cpanel-chat .clan-chat-prompts button { flex:1; min-width:0; min-height:44px; font-size:11px; padding:6px; }
#tab-clan.clan-renewal #cpanel-chat .clan-chat-prompts .clan-icon { width:19px; height:19px; }
#tab-clan.clan-renewal #cpanel-chat .clan-chat-emojis { grid-template-columns:repeat(6,minmax(0,1fr)); }
#tab-clan.clan-renewal #cpanel-chat .clan-chat-header>.clan-icon { display:none; }
#tab-clan.clan-renewal #cpanel-chat .clan-chat-input { min-height:44px; max-height:96px; resize:none; font-size:16px; }
@media(max-width:359px) {
  #tab-clan.clan-renewal .cc-hunt .clan-hunt-team { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #tab-clan.clan-renewal .cc-hunt .clan-hunt-card-art { aspect-ratio:4/3; object-position:50% 25%; }
  #tab-clan.clan-renewal .cr-row>summary { grid-template-columns:20px 32px minmax(0,1fr) auto; gap:6px; padding:10px 8px; }
  #tab-clan.clan-renewal .cr-row>summary>.clan-icon { display:none; }
  #tab-clan.clan-renewal .cr-avatar { width:32px; height:32px; }
  #tab-clan.clan-renewal .cr-score { font-size:14px; }
}
@media(min-width:680px) {
  #tab-clan.clan-renewal .clan-home-top { grid-template-columns:108px minmax(0,1fr); }
  #tab-clan.clan-renewal .clan-home-emblem { width:108px; height:108px; }
  #tab-clan.clan-renewal .cc-boss-banner { min-height:180px; }
  #tab-clan.clan-renewal .cc-hunt .clan-hunt-team { grid-template-columns:repeat(4,minmax(0,1fr)); max-width:600px; }
  #tab-clan.clan-renewal .cc-expedition .clan-expedition-map { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #tab-clan.clan-renewal .cc-expedition .clan-route { display:flex; align-items:start; flex-direction:column; min-height:200px; }
}
/* Clan world follows the SAME tokens as the bot menu; no separate green skin. */
:root,html[data-theme="dark"],html[data-theme="light"] {
  --clan-ground:var(--bg-app); --clan-surface:var(--bg-card); --clan-raised:var(--bg-card-2); --clan-inset:var(--bg-hover);
  --clan-line:var(--border); --clan-line-strong:var(--border-hot); --clan-ink:var(--text); --clan-muted:var(--text-sub); --clan-dim:var(--text-sub);
  --clan-accent:var(--accent); --clan-gold:var(--accent-hi); --clan-on-accent:#20150b; --clan-success:var(--teal); --clan-danger:var(--rose);
  --clan-danger-bg:color-mix(in srgb,var(--rose) 12%,var(--bg-card)); --clan-success-bg:color-mix(in srgb,var(--teal) 9%,var(--bg-card)); --clan-warm:var(--accent-dim);
  --clan-chat-me:color-mix(in srgb,var(--accent) 9%,var(--bg-card)); --clan-chat-other:var(--bg-card); --clan-chat-ground:var(--bg-app);
  --world-sea:#193c53; --world-art-filter:brightness(.86) saturate(.9);
}
html[data-theme="light"] { --world-sea:#6cabbe; --world-art-filter:brightness(1.03) saturate(.97); }
#tab-clan.clan-renewal {
  --clan-ground:inherit; --clan-surface:inherit; --clan-line:inherit; --clan-ink:inherit; --clan-muted:inherit; --clan-gold:inherit;
  font-family:ClanText,system-ui,-apple-system,sans-serif !important;
}
#tab-clan.clan-renewal :is(h2,h3,h4,b,strong,.clan-home-name,.clan-admin-name,.stat-value) { font-family:ClanText,system-ui,-apple-system,sans-serif !important; letter-spacing:normal !important; }
#tab-clan.clan-renewal .clan-subnav { border:0 !important; border-bottom:1px solid var(--clan-line) !important; border-radius:0; padding:0 0 6px !important; background:transparent !important; gap:0 !important; }
#tab-clan.clan-renewal .clan-tab-btn { min-height:58px; border-radius:0 !important; background:transparent !important; font-size:11px !important; }
#tab-clan.clan-renewal .clan-tab-btn.active { background:transparent !important; color:var(--clan-accent) !important; box-shadow:inset 0 -3px var(--clan-accent); }
#tab-clan.clan-renewal .clan-home-hero { padding:16px !important; border-top:1px solid var(--clan-line) !important; border-radius:6px !important; }
#tab-clan.clan-renewal .clan-home-hero::after { display:block !important; opacity:.09; }
#tab-clan.clan-renewal :is(.clan-more-grid,.clan-members) { gap:0 !important; }
#tab-clan.clan-renewal :is(.clan-more-card,.clan-member,.clan-admin-row,.clan-browse-card,.clan-join-card) { border-radius:0 !important; border:0 !important; border-bottom:1px solid var(--clan-line) !important; padding:14px 8px !important; }
#tab-clan.clan-renewal .clan-more-grid { grid-template-columns:1fr !important; }
#tab-clan.clan-renewal .clan-more-card { display:flex; text-align:left; min-height:72px; }
#tab-clan.clan-renewal .clan-more-copy { flex:1; }
#tab-clan.clan-renewal :is(.clan-more-ico,.clan-quick-card>.clan-icon) { color:var(--clan-accent) !important; }
#tab-clan.clan-renewal :is(.war-idle-card,.war-overview,.clan-offer,.bento-card,.clan-admin-card) { background:var(--clan-surface) !important; border:1px solid var(--clan-line) !important; border-radius:8px !important; box-shadow:none !important; }
#tab-clan.clan-renewal :is(.war-idle-step,.stat-tile,.clan-admin-controls) { background:var(--clan-raised) !important; border-color:var(--clan-line) !important; }
#tab-clan.clan-renewal :is(.war-idle-step p,.clan-admin-help,.clan-admin-hint,.clan-admin-meta) { line-height:1.55; font-size:13px; }
#tab-clan.clan-renewal :is(.clan-cta,.cf-primary,.land-choice button,.land-links button) { border-radius:6px !important; min-height:44px; font-weight:600; white-space:normal; line-height:1.3; }
#tab-clan.clan-renewal :is(input,textarea,select) { color:var(--clan-ink) !important; background:var(--clan-inset) !important; border:1px solid var(--clan-line) !important; border-radius:6px; min-height:44px; font-size:16px; }
#tab-clan.clan-renewal :is(button,a,input,select,textarea,summary,[role="button"]):focus-visible { outline:2px solid var(--clan-accent); outline-offset:3px; }
#tab-clan.clan-renewal .clan-chat-wrap { border-radius:8px !important; background:var(--clan-chat-ground) !important; }
#tab-clan.clan-renewal .clan-chat-header { background:var(--clan-surface) !important; padding:12px !important; }
#tab-clan.clan-renewal .clan-chat-bubble { max-width:100%; border-radius:8px !important; }
#tab-clan.clan-renewal .clan-chat-time { letter-spacing:normal !important; font-size:11px; }
#tab-clan.clan-renewal .land-heading { display:flex; gap:12px; justify-content:space-between; align-items:center; margin:18px 0 12px; }
#tab-clan.clan-renewal .land-heading small { color:var(--clan-accent); font-size:10px; letter-spacing:.08em; }
#tab-clan.clan-renewal .land-heading h2 { font-size:24px; line-height:1.2; margin:5px 0 0; }
#tab-clan.clan-renewal .land-resources { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); padding:8px 0; border-block:1px solid var(--clan-line); margin-bottom:14px; gap:9px 3px; }
#tab-clan.clan-renewal .land-resources>span { display:grid; grid-template-columns:auto auto; justify-content:center; align-items:center; gap:2px 5px; min-width:0; }
#tab-clan.clan-renewal .land-resources .clan-icon { width:16px; height:16px; color:var(--clan-accent); }
#tab-clan.clan-renewal .land-resources b { font-size:14px; }
#tab-clan.clan-renewal .land-resources small { grid-column:1/3; text-align:center; font-size:9px; color:var(--clan-muted); overflow-wrap:anywhere; }
#tab-clan.clan-renewal .land-cover { position:relative; height:160px; overflow:hidden; border-radius:8px; }
#tab-clan.clan-renewal .land-cover img { width:100%; height:100%; object-fit:cover; }
#tab-clan.clan-renewal .land-cover>div { position:absolute; inset:auto 0 0; display:grid; padding:30px 15px 12px; gap:4px; background:linear-gradient(transparent,#0b2528e8); color:#fff9ed; }
#tab-clan.clan-renewal .land-cover b { font-size:22px; overflow-wrap:anywhere; }
#tab-clan.clan-renewal .land-cover span { font-size:12px; }
#tab-clan.clan-renewal .land-section { margin:24px 0; padding-bottom:18px; border-bottom:1px solid var(--clan-line); }
#tab-clan.clan-renewal .land-section h3 { margin:0 0 10px; font-size:19px; line-height:1.3; }
#tab-clan.clan-renewal .land-section :is(p,small) { font-size:13px; line-height:1.6; }
#tab-clan.clan-renewal .land-caption { color:var(--clan-muted); }
#tab-clan.clan-renewal .land-map { display:block; width:100%; min-height:240px; max-height:430px; background:var(--clan-inset); border:1px solid var(--clan-line); border-radius:8px; }
#tab-clan.clan-renewal .land-hex { cursor:pointer; outline:none; }
#tab-clan.clan-renewal .land-hex polygon { stroke:#2a4544; stroke-width:1; fill:#b0b275; }
#tab-clan.clan-renewal .land-hex.terrain-forest polygon { fill:#43736a; }
#tab-clan.clan-renewal .land-hex.terrain-mountains polygon { fill:#8f9999; }
#tab-clan.clan-renewal .land-hex.terrain-crystals polygon { fill:#6f819a; }
#tab-clan.clan-renewal .land-hex.terrain-ruins polygon { fill:#967a68; }
#tab-clan.clan-renewal .land-hex.is-owned polygon { stroke:#e8fbe8; stroke-width:3; }
#tab-clan.clan-renewal .land-hex.is-foreign polygon { stroke:#cf805c; stroke-width:3; }
#tab-clan.clan-renewal .land-hex:is(.is-selected,:focus-visible) polygon { stroke:#ffdd8d; stroke-width:4; }
#tab-clan.clan-renewal .land-hex path { fill:none; stroke:#172d2a; stroke-width:2; pointer-events:none; }
#tab-clan.clan-renewal .land-tile-info { padding:12px; min-height:88px; border-left:3px solid var(--clan-accent); margin:12px 0; background:var(--clan-surface); }
#tab-clan.clan-renewal .land-tile-info h4 { margin:0; font-size:16px; }
#tab-clan.clan-renewal :is(.land-buildings,.land-recipes,.land-assignments) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
#tab-clan.clan-renewal :is(.land-buildings,.land-recipes,.land-assignments)>article { display:flex; flex-direction:column; align-items:start; padding:12px; background:var(--clan-surface); border:1px solid var(--clan-line); border-radius:8px; min-width:0; }
#tab-clan.clan-renewal :is(.land-buildings,.land-recipes,.land-assignments) h4 { margin:0 0 6px; font-size:15px; }
#tab-clan.clan-renewal :is(.land-buildings,.land-recipes,.land-assignments) h4 span { color:var(--clan-accent); white-space:nowrap; }
#tab-clan.clan-renewal :is(.land-buildings,.land-recipes,.land-assignments) .clan-cta { width:100%; margin-top:12px; }
#tab-clan.clan-renewal .land-section small { display:block; color:var(--clan-muted); }
#tab-clan.clan-renewal .land-choice { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0; }
#tab-clan.clan-renewal .land-choice button { flex:1 1 80px; padding:8px; font-size:12px; background:var(--clan-raised); color:var(--clan-ink); border:1px solid var(--clan-line); }
#tab-clan.clan-renewal .land-choice [aria-pressed="true"] { border-color:var(--clan-accent); box-shadow:inset 0 -2px var(--clan-accent); }
#tab-clan.clan-renewal :is(.land-job,.land-pact) { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:12px; margin:10px 0; background:var(--clan-raised); border-left:3px solid var(--clan-accent); font-size:13px; }
#tab-clan.clan-renewal :is(.land-routes,.land-offer form) { display:grid; gap:10px; }
#tab-clan.clan-renewal .land-offer { padding:14px; margin-bottom:10px; background:var(--clan-surface); border:1px solid var(--clan-line); border-radius:8px; }
#tab-clan.clan-renewal .land-offer h4 { font-size:17px; margin:0 0 5px; }
#tab-clan.clan-renewal .land-offer>div>span { color:var(--clan-muted); font-size:12px; }
#tab-clan.clan-renewal .land-offer>b { display:block; margin:10px 0; }
#tab-clan.clan-renewal .land-routes>div { padding:12px 0; border-top:1px solid var(--clan-line); }
#tab-clan.clan-renewal .land-routes small { margin:7px 0; }
#tab-clan.clan-renewal .land-section label { display:grid; gap:6px; margin:12px 0; font-size:13px; }
#tab-clan.clan-renewal .land-section :is(input,select) { width:100%; min-width:0; padding:10px; }
#tab-clan.clan-renewal .land-rank { display:grid; grid-template-columns:24px minmax(0,1fr) auto; gap:10px; padding:12px 5px; border-bottom:1px solid var(--clan-line); }
#tab-clan.clan-renewal .land-rank.is-mine { background:var(--clan-warm); }
#tab-clan.clan-renewal .land-event { display:flex; gap:10px; justify-content:space-between; border-top:1px solid var(--clan-line); padding:8px 0; }
#tab-clan.clan-renewal .land-event p { margin:0; }
#tab-clan.clan-renewal .land-event time { flex:0 0 66px; font-size:10px; color:var(--clan-muted); }
#tab-clan.clan-renewal .land-links { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
#tab-clan.clan-renewal .land-links button { display:grid; justify-items:center; gap:5px; background:var(--clan-surface); color:var(--clan-ink); border:1px solid var(--clan-line); min-height:65px; padding:8px 2px; font-size:11px; }
#tab-clan.clan-renewal .land-notice:not(:empty),#tab-clan.clan-renewal .land-pending { padding:12px; margin:12px 0; background:var(--clan-success-bg); border:1px solid var(--clan-line); border-radius:6px; }
#tab-clan.clan-renewal .land-notice.is-error { color:var(--clan-danger); background:var(--clan-danger-bg); border-color:var(--clan-danger); }
#tab-clan.clan-renewal :is(.land-loading,.land-empty) { padding:18px 8px; }
@media(max-width:359px){#tab-clan.clan-renewal :is(.land-buildings,.land-recipes,.land-assignments){grid-template-columns:1fr;}#tab-clan.clan-renewal .clan-tab-btn{font-size:10px !important;}}
@media(min-width:680px){#tab-clan.clan-renewal .land-cover{height:220px;}#tab-clan.clan-renewal .land-routes{grid-template-columns:repeat(3,minmax(0,1fr));}#tab-clan.clan-renewal .land-assignments{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(prefers-reduced-motion:reduce){#tab-clan.clan-renewal *{animation:none !important;transition:none !important;scroll-behavior:auto !important;}}
#tab-clan.clan-renewal .land-map { touch-action:none; user-select:none; }
#tab-clan.clan-renewal .land-map-controls { display:flex; gap:6px; margin-bottom:8px; }
#tab-clan.clan-renewal .land-map-controls button { min-width:44px; min-height:44px; padding:8px 14px; color:var(--clan-ink); background:var(--clan-raised); border:1px solid var(--clan-line); border-radius:6px; }
#tab-clan.clan-renewal .land-filter summary { min-height:44px; padding:10px; border:1px solid var(--clan-line); border-radius:6px; cursor:pointer; }
#tab-clan.clan-renewal .land-filter>div { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:10px; }
#tab-clan.clan-renewal .land-filter label { display:grid; gap:4px; font-size:12px; }
#tab-clan.clan-renewal .land-filter :is(input,select) { width:100%; min-width:0; padding:8px; }
#tab-clan.clan-renewal .clan-chat-pinned { display:flex; gap:8px; padding:10px 12px; background:var(--clan-warm); border-bottom:1px solid var(--clan-line); font-size:12px; }
#tab-clan.clan-renewal .clan-chat-pinned>div { flex:1; min-width:0; }
#tab-clan.clan-renewal .clan-chat-pinned p { margin:3px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; max-height:64px; overflow:auto; }
#tab-clan.clan-renewal .clan-chat-pinned button { width:32px; height:32px; border:0; color:var(--clan-ink); background:none; }
#tab-clan.clan-renewal .clan-chat-reply-btn { min-width:28px; min-height:28px; }
.clan-confirm-dialog { background:var(--clan-surface) !important; color:var(--clan-ink) !important; border:1px solid var(--clan-line) !important; border-radius:10px !important; }
.clan-confirm-dialog #cc-confirm { background:var(--clan-accent) !important; color:var(--clan-on-accent) !important; }
.clan-confirm-dialog #cc-cancel { background:var(--clan-raised) !important; color:var(--clan-ink) !important; }
/* The land is the screen, not a map embedded in an overview card. */
#tab-clan.clan-renewal .is-world { position:relative; height:calc(100svh - 198px); min-height:460px; isolation:isolate; border:1px solid var(--clan-line); border-radius:10px; overflow:hidden; }
#tab-clan.clan-renewal .is-world .land-stage { position:absolute; inset:0; }
#tab-clan.clan-renewal .is-world .land-map { height:100%; max-height:none; min-height:0; border:0; border-radius:0; background:var(--clan-inset); }
#tab-clan.clan-renewal .is-world>.land-heading { position:absolute; z-index:3; top:10px; left:10px; right:10px; margin:0; padding:8px 10px; border:1px solid var(--clan-line); border-radius:7px; background:color-mix(in srgb,var(--clan-surface) 94%,transparent); pointer-events:auto; }
#tab-clan.clan-renewal .is-world>.land-heading small { display:none; }
#tab-clan.clan-renewal .is-world>.land-heading h2 { font-size:17px; margin:0; }
#tab-clan.clan-renewal .is-world>.land-resources { position:absolute; z-index:3; top:70px; left:10px; right:10px; padding:8px; margin:0; background:color-mix(in srgb,var(--clan-surface) 94%,transparent); border:1px solid var(--clan-line); border-radius:7px; }
#tab-clan.clan-renewal .is-world>.land-resources>span:nth-child(n+6) { display:none; }
#tab-clan.clan-renewal .is-world>.land-links { display:none; }
#tab-clan.clan-renewal .is-world>.land-notice:not(:empty) { position:absolute; z-index:8; top:136px; inset-inline:10px; margin:0; max-height:100px; overflow:auto; }
#tab-clan.clan-renewal .is-world>.land-pending { position:absolute; z-index:8; top:136px; inset-inline:10px; margin:0; }
#tab-clan.clan-renewal .land-stage .land-map-controls { position:absolute; z-index:2; left:10px; bottom:83px; flex-direction:column; margin:0; }
#tab-clan.clan-renewal .land-map-legend { position:absolute; top:126px; left:12px; display:flex; flex-wrap:wrap; gap:5px 10px; max-width:calc(100% - 24px); padding:5px 8px; background:color-mix(in srgb,var(--clan-surface) 92%,transparent); border-radius:5px; font-size:10px; pointer-events:none; }
#tab-clan.clan-renewal .land-map-legend>span:first-child { color:var(--clan-ink); }
#tab-clan.clan-renewal .land-map-legend>span:nth-child(2) { color:var(--clan-gold); }
#tab-clan.clan-renewal .land-world-actions { position:absolute; inset:auto 10px 10px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; z-index:4; padding:5px; background:var(--clan-surface); border:1px solid var(--clan-line); border-radius:8px; }
#tab-clan.clan-renewal .land-world-actions button { display:grid; place-items:center; gap:3px; min-height:53px; padding:5px 1px; color:var(--clan-ink); background:none; border:0; font-size:11px; }
#tab-clan.clan-renewal .land-world-actions [aria-pressed="true"] { color:var(--clan-accent); background:var(--clan-warm); border-radius:5px; }
#tab-clan.clan-renewal .land-map-selection { position:absolute; z-index:3; bottom:86px; right:10px; left:115px; max-height:46%; overflow:auto; padding:14px; background:var(--clan-surface); border:1px solid var(--clan-line-strong); border-radius:9px; box-shadow:0 6px 24px #0003; }
#tab-clan.clan-renewal .land-map-selection h3 { margin:3px 28px 7px 0; font-size:18px; overflow-wrap:anywhere; }
#tab-clan.clan-renewal .land-map-selection p { font-size:12px; margin:7px 0; }
#tab-clan.clan-renewal .land-map-selection small { color:var(--clan-muted); }
#tab-clan.clan-renewal .land-sheet-close { position:absolute; top:7px; right:7px; width:32px; height:32px; color:var(--clan-ink); background:none; border:0; }
#tab-clan.clan-renewal .land-world-sheet { position:absolute; z-index:5; inset:auto 8px 83px; max-height:calc(100% - 96px); background:var(--clan-surface); border:1px solid var(--clan-line-strong); border-radius:12px; overflow:auto; overscroll-behavior:contain; box-shadow:0 8px 32px #0004; }
#tab-clan.clan-renewal .land-world-sheet>header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 14px; position:sticky; top:0; z-index:2; background:var(--clan-surface); border-bottom:1px solid var(--clan-line); }
#tab-clan.clan-renewal .land-world-sheet>header h3 { margin:0; font-size:18px; }
#tab-clan.clan-renewal .land-world-sheet>header button { width:44px; height:44px; border:0; background:var(--clan-raised); color:var(--clan-ink); border-radius:6px; }
#tab-clan.clan-renewal .land-world-sheet>div { padding:14px; }
#tab-clan.clan-renewal .land-caravan-route { fill:none; stroke:#fff3b1; stroke-width:2; stroke-dasharray:4 4; pointer-events:none; }
#tab-clan.clan-renewal .land-caravan { cursor:pointer; }
#tab-clan.clan-renewal .land-caravan circle { fill:#f3d5a4; stroke:#14322c; stroke-width:2; }
#tab-clan.clan-renewal .land-caravan path { fill:none; stroke:#14322c; stroke-width:1.6; pointer-events:none; }
@media(min-width:680px){#tab-clan.clan-renewal .is-world{height:calc(100svh - 190px);min-height:600px;}#tab-clan.clan-renewal .land-world-sheet{inset:12px 12px 85px auto;width:390px;max-height:none;}#tab-clan.clan-renewal .land-map-selection{left:auto;width:320px;}}
#app-main:has(#tab-holdings.active) { background:var(--clan-ground); }
#tab-holdings { color:var(--clan-ink); font-family:ClanText,system-ui,sans-serif; }
#tab-holdings :is(.vault-hero,.vault-form,.vault-card,.vault-row,.vault-clan-link) { border:1px solid var(--clan-line); background:var(--clan-surface); border-radius:10px; }
#tab-holdings .vault-hero { min-height:0; padding:22px; }
#tab-holdings .vault-hero h1 { font-size:29px; font-family:ClanText,system-ui,sans-serif; line-height:1.2; }
#tab-holdings .vault-emblem { width:90px; height:90px; opacity:.2; color:var(--clan-accent); }
#tab-holdings :is(.vault-primary,.vault-periods [aria-pressed="true"]) { color:var(--clan-on-accent); background:var(--clan-accent); }
#tab-holdings :is(p,small,.vault-eyebrow,.vault-head button) { color:var(--clan-muted); }
#tab-holdings :is(input,select) { background:var(--clan-inset); color:var(--clan-ink); border:1px solid var(--clan-line); min-height:44px; }
#tab-holdings :is(button,input,select):focus-visible { outline:2px solid var(--clan-accent); outline-offset:3px; }
/* Fullscreen uses the Telegram native API, and keeps both system and Telegram controls clear. */
html.telegram-fullscreen #app-container { max-width:none; width:100%; min-height:var(--rv-screen-height,100dvh); }
html.telegram-fullscreen #app { height:var(--rv-screen-height,100dvh); padding:var(--rv-safe-top,0px) var(--rv-safe-right,0px) 0 var(--rv-safe-left,0px); box-sizing:border-box; }
html.telegram-fullscreen #bottom-nav.reverse-menu-nav { bottom:max(8px,var(--rv-safe-bottom,0px)) !important; }
html.telegram-fullscreen .app-main { padding-bottom:calc(96px + var(--rv-safe-bottom,0px)); }
body:has(#cpanel-lands.active) #app-container { max-width:none; }
#tab-clan.clan-renewal .is-world { min-height:280px; height:calc(var(--rv-screen-height,100svh) - 208px - var(--rv-safe-top,0px) - var(--rv-safe-bottom,0px)); }
#tab-clan.clan-renewal .land-map { background:var(--world-sea) !important; }
#tab-clan.clan-renewal .land-hex polygon { fill:#ba9b53; stroke:#172e283b; stroke-width:.65; }
#tab-clan.clan-renewal .land-hex.terrain-forest polygon { fill:#456c52; }
#tab-clan.clan-renewal .land-hex.terrain-mountains polygon { fill:#7e8893; }
#tab-clan.clan-renewal .land-hex.terrain-crystals polygon { fill:#8572a0; }
#tab-clan.clan-renewal .land-hex.terrain-ruins polygon { fill:#92705d; }
#tab-clan.clan-renewal .land-hex.terrain-snow polygon { fill:#d2dfe6; }
#tab-clan.clan-renewal .land-hex.terrain-desert polygon { fill:#bc9960; }
#tab-clan.clan-renewal .land-hex.terrain-meadow polygon { fill:#809769; }
#tab-clan.clan-renewal .land-hex.terrain-swamp polygon { fill:#46675e; }
#tab-clan.clan-renewal .land-hex.terrain-water polygon { fill:#286889; stroke:#357b9c; }
#tab-clan.clan-renewal .land-hex.is-village polygon { fill:#c4b17b; stroke:#ffe8a5; stroke-width:1.4; }
#tab-clan.clan-renewal .land-hex.is-owned polygon { stroke:#b9ffd8; stroke-width:2.3; }
#tab-clan.clan-renewal .land-hex.is-foreign polygon { stroke:#f4ad83; stroke-width:2; }
#tab-clan.clan-renewal .land-hex:is(.is-selected,:focus-visible) polygon { stroke:#fff7af; stroke-width:3.5; }
#tab-clan.clan-renewal .land-hex .land-water-ripple { stroke:#79c0d1; stroke-width:.6; }
#tab-clan.clan-renewal .land-place-label { fill:#fff7df; paint-order:stroke; stroke:#1e2728; stroke-width:2.4px; stroke-linejoin:round; font:650 11px ClanText,system-ui,sans-serif; text-anchor:middle; pointer-events:none; }
#tab-clan.clan-renewal .land-place-label.is-mine { fill:#caffd8; }
#tab-clan.clan-renewal .land-caravan circle,#tab-clan.clan-renewal .land-squad circle { fill:#fff0bb19; stroke:#fae7af; stroke-width:1; }
#tab-clan.clan-renewal .land-squad { cursor:pointer; }
#tab-clan.clan-renewal .land-caravan:focus-visible circle,#tab-clan.clan-renewal .land-squad:focus-visible circle { stroke:#fff; stroke-width:3; }
#tab-clan.clan-renewal .land-caravan-route { stroke:#ffdfa6; stroke-width:1.4; }
#tab-clan.clan-renewal .land-squad-route { fill:none; stroke:#bee8db; stroke-width:1; stroke-dasharray:2 4; pointer-events:none; }
#tab-clan.clan-renewal .land-caravan[data-vessel="boat"] .land-wagon-art,#tab-clan.clan-renewal .land-caravan[data-vessel="wagon"] .land-boat-art { display:none; }
#tab-clan.clan-renewal .land-world-actions { grid-template-columns:repeat(5,minmax(0,1fr)); }
#tab-clan.clan-renewal .land-map-controls button { padding:5px 9px; font-size:11px; min-height:44px; min-width:44px; }
#tab-clan.clan-renewal .land-map-selection { left:88px; }
#tab-clan.clan-renewal .land-place-result { display:flex; align-items:center; gap:10px; width:100%; padding:12px 3px; border:0; border-bottom:1px solid var(--clan-line); background:none; color:var(--clan-ink); text-align:left; }
#tab-clan.clan-renewal .land-place-result[hidden] { display:none; }
#tab-clan.clan-renewal .land-place-result span { display:grid; gap:3px; min-width:0; overflow-wrap:anywhere; }
#tab-clan.clan-renewal .land-place-result small { color:var(--clan-muted); }
#tab-clan.clan-renewal .land-world-sheet input[type="search"] { width:100%; min-height:44px; margin:8px 0; padding:10px; border:1px solid var(--clan-line); border-radius:6px; background:var(--clan-inset); color:var(--clan-ink); }
#tab-clan.clan-renewal .land-village-good { display:grid; gap:6px; padding:15px 0; border-bottom:1px solid var(--clan-line); }
#tab-clan.clan-renewal .land-village-good :is(h4,p) { margin:0; }
#tab-clan.clan-renewal .land-village-good small { color:var(--clan-muted); line-height:1.5; margin-bottom:7px; }
#tab-clan.clan-renewal .land-village-art { height:120px; text-align:center; }
@media(min-width:680px){#tab-clan.clan-renewal .land-map-selection{left:auto;width:330px;}#tab-clan.clan-renewal .land-map-controls{flex-direction:row;bottom:84px;}#tab-clan.clan-renewal .land-world-actions{width:min(500px,calc(100% - 20px));inset:auto auto 10px 10px;}}
@media(max-height:650px){#tab-clan.clan-renewal .is-world .land-heading{top:5px;padding:4px 8px;}#tab-clan.clan-renewal .is-world .land-resources{top:56px;padding:4px;}#tab-clan.clan-renewal .land-map-legend{display:none;}#tab-clan.clan-renewal .land-map-controls{flex-direction:row;left:6px;bottom:75px;gap:3px;}#tab-clan.clan-renewal .land-map-controls button{padding:5px;min-width:36px;}#tab-clan.clan-renewal .land-map-selection{left:6px;bottom:118px;max-height:40%;}}

/* Compact, theme-linked controls. Geography remains illustrated in both themes. */
#tab-clan.clan-renewal .clan-icon { width:21px; height:21px; flex:none; display:inline-block; vertical-align:middle; }
#tab-clan.clan-renewal .land-terrain-layer,#tab-clan.clan-renewal .land-scenery-layer { filter:var(--world-art-filter); }
#tab-clan.clan-renewal .is-world>.land-heading { width:max-content; max-width:calc(100% - 20px); right:auto; padding:4px 9px 4px 13px; border-radius:12px; background:var(--nav-bg); box-shadow:var(--shadow); }
#tab-clan.clan-renewal .is-world>.land-heading h2 { font-size:14px; }
#tab-clan.clan-renewal .clan-icon-button { display:grid; place-items:center; width:44px; height:44px; color:var(--clan-ink); border:0; background:none; border-radius:50%; }
#tab-clan.clan-renewal .is-world>.land-resources { right:auto; width:fit-content; max-width:calc(100% - 20px); display:flex; gap:11px; top:73px; padding:9px 12px; border-radius:999px; background:var(--nav-bg); box-shadow:var(--shadow); }
#tab-clan.clan-renewal .is-world>.land-resources>span { display:flex; align-items:center; gap:4px; font-size:12px; }
#tab-clan.clan-renewal .is-world>.land-resources>span small { display:none; }
#tab-clan.clan-renewal .land-map-legend { top:116px; font-size:9px; color:var(--text-sub); background:var(--nav-bg); border-radius:6px; }
#tab-clan.clan-renewal .land-map-legend>span:first-child,#tab-clan.clan-renewal .land-map-legend>span:nth-child(2) { color:inherit; }
#tab-clan.clan-renewal .land-world-actions { width:min(370px,calc(100% - 20px)); left:50%; right:auto; transform:translateX(-50%); border-radius:16px; padding:5px; background:var(--nav-bg); box-shadow:var(--shadow); }
#tab-clan.clan-renewal .land-world-actions button { min-height:48px; font-size:10px; gap:3px; border-radius:10px; }
#tab-clan.clan-renewal .land-world-actions .clan-icon { width:22px; height:22px; }
#tab-clan.clan-renewal .land-world-actions [aria-pressed="true"] { background:var(--bg-hover); color:var(--accent-hi); box-shadow:inset 0 -2px var(--accent); border-radius:10px; }
#tab-clan.clan-renewal .land-stage .land-map-controls { gap:4px; }
#tab-clan.clan-renewal .land-map-controls button { background:var(--nav-bg); color:var(--text); border:1px solid var(--border); border-radius:10px; box-shadow:var(--shadow); }
#tab-clan.clan-renewal .land-map-selection,#tab-clan.clan-renewal .land-world-sheet { background:var(--bg-card); border-color:var(--border); border-radius:16px; }
#tab-clan.clan-renewal .land-sheet-close { width:44px; height:44px; }
#tab-clan.clan-renewal .land-map-selection h3 { margin-right:35px; }
#tab-clan.clan-renewal .clan-cta { display:flex; align-items:center; justify-content:center; min-height:44px; padding:10px 14px; background:var(--accent); color:#20150b; border:1px solid var(--border-hot); border-radius:10px !important; font-size:13px; }
#tab-clan.clan-renewal .clan-cta.ghost { color:var(--text); background:var(--bg-hover); border-color:var(--border); }
#tab-clan.clan-renewal .clan-cta:disabled { color:var(--text-sub); background:var(--bg-hover); border-color:var(--border); opacity:.65; cursor:not-allowed; }
@media(min-width:680px){#tab-clan.clan-renewal .land-world-actions{inset:auto auto 10px 50%;}#tab-clan.clan-renewal .land-map-controls{flex-direction:column;bottom:84px;}}

#tab-clan.clan-renewal .world-wide .land-place-label { display:none; }
body:has(#tab-clan.active #cpanel-lands.active) .app-main { overflow-y:hidden; padding-bottom:0 !important; }
