/* Yubaree community safety: the Report button and dialog, notices, the legal pages and the admin pages.
   On top of shared/yubaree.css and site/site.css. */

/* ---- small pieces used across the site ---- */
.chip.rust { background: var(--c-rust); color: var(--c-paper); }
.chip.brown { background: var(--c-brown); color: var(--c-cream); }
.report-btn { color: var(--muted); font-weight: 600; }
.report-btn:hover { color: var(--danger); }
.comment .report-btn { padding: .1rem .45rem; }
.optional { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
label .hint { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .8rem; margin-top: .25rem; }
label.inline.agree { display: flex; align-items: flex-start; gap: .55rem; margin: .8rem 0 .2rem; line-height: 1.4; }
label.inline.agree input { margin-top: .2rem; flex: none; }
input[type=date] { width: 100%; margin-top: .3rem; padding: .6rem .75rem; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 10px; }
.mod-note { margin: .2rem 0 .7rem; padding: .5rem .8rem; border: 2px solid var(--line); border-radius: 10px; background: var(--c-mustard); color: var(--c-brown); font-size: .88rem; }
.mod-note.removed { background: var(--c-rust); color: #fff; } .mod-note.removed a, .mod-note.removed .muted { color: #fff; }
.mod-note a { color: inherit; font-weight: 700; } .mod-note .muted { color: inherit; opacity: .85; }
.callout.cant { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.comment.withheld .bubble { border-style: dashed; background: none; } .comment.withheld p { margin: 0; }
.profile-safety { margin-left: auto; }

/* ---- the strip under the top menu ---- */
.safety-banner { justify-content: center; text-align: center; }
.safety-banner.serious { background: var(--c-rust); color: #fff; } .safety-banner.serious a { color: #fff; }
.user-menu .menu-panel .count { margin-left: auto; background: var(--c-orange); color: var(--c-paper); border: 2px solid var(--line); border-radius: 999px; font-size: .72rem; padding: 0 .45rem; font-family: var(--mono); }
.user-btn.has-notices { position: relative; }
.user-btn.has-notices::after { content: ""; position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-orange); border: 2px solid var(--line); }

/* ---- report dialog ---- */
.reasons { border: 0; padding: 0; margin: .6rem 0 .4rem; display: grid; gap: .3rem; max-height: 46vh; overflow: auto; }
.reasons legend { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: .4rem; }
label.reason { display: flex; gap: .6rem; align-items: flex-start; margin: 0; padding: .45rem .6rem; border: 2px solid var(--line-soft); border-radius: 10px; text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--ink); cursor: pointer; font-weight: 400; }
label.reason:hover { border-color: var(--line); background: var(--bg); }
label.reason:has(input:checked) { border-color: var(--line); background: var(--accent-soft); }
label.reason input { margin-top: .25rem; flex: none; }
label.reason .hint { color: var(--muted); }
.report-about { margin: -.2rem 0 .2rem; }
.code-input { font-family: var(--mono) !important; font-size: 1.6rem !important; letter-spacing: .35em; text-align: center; max-width: 14rem; }
.modal.gate { z-index: 65; background: rgba(59, 36, 21, .82); }
body:has(.scroll-mode) #modal-root .modal { z-index: 75; }

/* ---- footer links ---- */
.foot-links { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; padding: .2rem 0 1.6rem; font-size: .85rem; }
.foot-links a { color: var(--muted); font-weight: 600; text-decoration: none; } .foot-links a:hover { color: var(--ink); text-decoration: underline; }
#foot-links.container { padding-top: 0; padding-bottom: 0; }

/* ---- Safety & notices ---- */
.safety-page { display: grid; gap: 1.2rem; }
.safety-page > h1 { margin: -.6rem 0 0; font-size: 2.3rem; } .safety-page > .eyebrow { margin: 0; }
.safety-page .card h3 { margin-bottom: .6rem; }
.standing.good h3 { margin: 0; color: var(--ok); } .standing.bad { box-shadow: 5px 5px 0 var(--c-rust); }
.notices, .blocked { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.notice { display: flex; gap: .8rem; padding: .8rem .9rem; border: 2px solid var(--line-soft); border-radius: 12px; background: var(--bg); }
.notice.new { border-color: var(--line); background: var(--accent-soft); }
.n-ico { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); display: grid; place-items: center; flex: none; font-size: 1rem; }
.notice p { margin: 0 0 .25rem; } .n-body { font-size: .93rem; } .appeal-state { margin-top: .5rem !important; }
.blocked li { display: flex; align-items: center; gap: .6rem; }

/* ---- Terms, Privacy Policy, Community Rules ---- */
.legal-page { max-width: 820px; }
.legal-page h1 { margin-bottom: .2rem; }
.legal-date { margin-bottom: 1.2rem; }
.legal-draft { margin-bottom: 1.2rem; }
mark.todo { background: var(--c-mustard); color: var(--c-brown); border-radius: 4px; padding: 0 .25em; font-weight: 600; }
.legal-short ul { margin: 0; padding-left: 1.2rem; } .legal-short li { margin: .3rem 0; }
.legal-toc { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.4rem 0 .4rem; }
.legal-toc a { border: 2px solid var(--line); border-radius: 999px; padding: .12rem .7rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .8rem; background: var(--paper); }
.legal-toc a:hover { background: var(--soft); }
.legal-body { font-size: 1.02rem; line-height: 1.65; }
.legal-body section { padding-top: 1.6rem; scroll-margin-top: 90px; }
.legal-body h2 { font-size: 1.45rem; margin-bottom: .6rem; }
.legal-body h4 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.legal-body p { margin: 0 0 .85rem; } .legal-body ul { margin: 0 0 .9rem; padding-left: 1.3rem; } .legal-body li { margin: .35rem 0; }
.legal-body .loud { font-weight: 600; border-left: 5px solid var(--accent); padding-left: .9rem; }
.legal-more { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 2px dashed var(--line-soft); }

/* ---- admin ---- */
.admin-stats { margin: 0; padding: 0; border: 0; } .admin-stats .hot strong { color: var(--danger); }
.admin-tabs { margin-bottom: 1.4rem; }
.seg a { border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.seg a:hover { background: var(--soft); } .seg a.on { background: var(--c-orange); color: var(--c-paper); }
.seg a .n { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 .4rem; opacity: 1; margin-left: .15rem; }
.queue-key { margin-bottom: 1rem; max-width: 60rem; }
.cases { display: grid; gap: 1.4rem; }
.case.urgent { box-shadow: 5px 5px 0 var(--c-rust); }
.case-head { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .7rem; }
.case-owner { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .7rem; }
.case-owner a { color: var(--ink); font-weight: 700; text-decoration: none; }
.case-preview { position: relative; border: 2px dashed var(--line-soft); border-radius: 12px; padding: .8rem; background: var(--bg); margin-bottom: .8rem; }
.case-preview > .card { box-shadow: none; border-width: 2px; }
.case-preview.veiled > :not(.veil-btn) { filter: blur(16px) saturate(.6); pointer-events: none; user-select: none; max-height: 240px; overflow: hidden; }
.veil-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; }
.case-preview.veiled .veil-btn { display: inline-flex; } .veil-btn:active { transform: translate(calc(-50% + 2px), calc(-50% + 2px)); }
.case-reports { margin-bottom: .9rem; } .case-reports summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.case-reports ul { margin: .5rem 0 0; padding-left: 1.2rem; } .case-reports li { margin: .3rem 0; }
dl.request { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .9rem; margin: .5rem 0 0; font-size: .9rem; }
dl.request dt { font-weight: 700; color: var(--muted); } dl.request dd { margin: 0; overflow-wrap: anywhere; }
.case-actions { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: flex-end; padding-top: .8rem; border-top: 2px dashed var(--line-soft); }
.case-actions label { margin: 0; } .case-actions select { width: auto; min-width: 13rem; }
.case-buttons { flex-basis: 100%; margin-top: .5rem; }
.case-buttons .sep { width: 2px; align-self: stretch; background: var(--line-soft); margin: 0 .3rem; }
.case-buttons .suspend { display: inline-flex; align-items: center; gap: .3rem; } .case-buttons .suspend select { min-width: 0; margin: 0; padding: .35rem .5rem; border-radius: 999px; }
.appeal-text { margin: .6rem 0 .9rem; padding: .7rem 1rem; border-left: 6px solid var(--accent); background: var(--bg); border-radius: 0 10px 10px 0; font-family: var(--serif); font-size: 1.05rem; white-space: pre-wrap; }
.admin-tools { margin-bottom: .9rem; } .admin-tools input[type=search] { max-width: 26rem; margin: 0; } .admin-tools select { width: auto; margin: 0; }
.table-card { padding: 0; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .7rem .8rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
.admin-table td { padding: .55rem .8rem; border-bottom: 1px dashed var(--line-soft); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td .avatar { vertical-align: middle; margin-right: .35rem; } .admin-table td a { color: var(--ink); font-weight: 700; text-decoration: none; }
.admin-table .num { text-align: right; font-family: var(--mono); } .admin-table .nowrap { white-space: nowrap; } .admin-table .note-cell { max-width: 22rem; }
.admin-table tr.undone td { opacity: .6; } .admin-table select { width: auto; margin: 0; padding: .3rem .5rem; }
.admin-table.compact td, .admin-table.compact th { padding: .4rem .6rem; }
.settings-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.settings-grid textarea { font-family: var(--mono); font-size: .88rem; } .settings-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.checklist { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; font-weight: 800; background: var(--paper); font-size: .85rem; }
.checklist li.done .tick { background: var(--c-avocado); color: #fff; } .checklist li.todo .tick { background: var(--c-mustard); color: var(--c-brown); }
.checklist p { margin: .15rem 0 0; font-size: .9rem; color: var(--muted); } .launch h3 { margin: 1rem 0 .7rem; }

@media (max-width: 860px) { .settings-grid, .settings-grid .two { grid-template-columns: 1fr; } .profile-safety { margin-left: 0; } }
