:root { --ink:#20252b; --muted:#6c747d; --cream:#f8f5ee; --card:#fffdfa; --line:#dfdbd2; --accent:#287f77; --accent-dark:#18635c; --danger:#a64438; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:linear-gradient(135deg,#edf4ef 0%,var(--cream) 45%,#f7eee3 100%); font-family:ui-sans-serif,system-ui,"Microsoft YaHei",sans-serif; }
main { width:min(980px,calc(100% - 32px)); margin:0 auto; padding:68px 0 80px; }
header { max-width:610px; margin-bottom:36px; }
h1,h2,h3,p { margin-top:0; } h1 { font-size:clamp(2.4rem,6vw,4.6rem); letter-spacing:-.06em; margin-bottom:14px; } h2 { margin-bottom:18px; font-size:1.35rem; } h3 { margin:0 0 5px; font-size:1.05rem; }
.eyebrow { color:var(--accent-dark); font-size:.72rem; letter-spacing:.13em; font-weight:750; margin-bottom:9px; } .intro,.slug,.message { color:var(--muted); } .intro { line-height:1.7; }
section { background:rgba(255,253,250,.83); border:1px solid rgba(223,219,210,.92); border-radius:18px; padding:25px; box-shadow:0 12px 34px rgba(55,65,56,.06); margin-top:18px; }
.search-panel { display:flex; align-items:end; gap:28px; justify-content:space-between; flex-wrap:wrap; }.search-controls { display:flex; align-items:end; gap:9px; flex-wrap:wrap; } label { display:grid; gap:7px; font-size:.84rem; font-weight:650; }
input,select,button { font:inherit; border-radius:9px; } input,select { border:1px solid var(--line); background:#fff; color:var(--ink); padding:11px 12px; min-width:0; } #uid { width:180px; }
button { cursor:pointer; border:1px solid var(--line); background:transparent; padding:10px 13px; color:var(--ink); } button:hover { border-color:var(--accent); color:var(--accent-dark); }.primary { background:var(--accent); color:white; border-color:var(--accent); font-weight:700; }.primary:hover { background:var(--accent-dark); color:white; }
.message { width:100%; margin:0; font-size:.88rem; min-height:1.3em; }.section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; }.filter-label select { min-width:155px; }.groups { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:12px; margin-top:18px; }.group-card { display:flex; gap:12px; align-items:center; padding:15px; border:1px solid var(--line); border-radius:12px; background:var(--card); }.select-group { display:block; }.select-group input { accent-color:var(--accent); }.group-info { flex:1; min-width:0; }.category { color:var(--accent-dark); font-size:.72rem; font-weight:700; margin-bottom:5px; }.slug { margin:0; font-family:ui-monospace,monospace; font-size:.8rem; }.card-actions { display:flex; gap:5px; flex-wrap:wrap; justify-content:end; }.delete { color:var(--danger); }.empty { color:var(--muted); margin:20px 0 2px; } .form-panel { max-width:680px; } form { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; }.form-actions { display:flex; align-items:center; gap:9px; grid-column:1/-1; }.form-panel .message { grid-column:1/-1; }
@media (max-width:640px) { main { width:min(100% - 24px,980px); padding-top:38px; } section { padding:18px; }.search-panel { align-items:stretch; }.search-controls { width:100%; }.search-controls input,.search-controls button { flex:1; } form { grid-template-columns:1fr; }.section-heading { align-items:start; flex-direction:column; }.filter-label { width:100%; }.filter-label select { width:100%; }.group-card { align-items:start; }.card-actions { flex-direction:column; } }

/* Mobile-first, friendly search surface */
:root { --ink:#263e34; --muted:#5b7065; --cream:#f7f8f0; --card:#fffefa; --line:#dce8dd; --accent:#377a5c; --accent-dark:#245f45; --danger:#a64438; }
[hidden] { display:none !important; }
body { background:#f2f7ee; font-size:16px; line-height:1.5; }
main { width:min(100% - 32px, 560px); padding: max(28px, env(safe-area-inset-top)) 0 max(48px, env(safe-area-inset-bottom)); }
header { position:relative; margin:0 0 22px; padding:8px 4px 0; }
header h1 { font-size:2.25rem; letter-spacing:-.04em; margin:0 0 4px; }
.intro { margin:0; color:var(--muted); }
.eyebrow { letter-spacing:.14em; font-size:.7rem; color:#4f8065; }
.mascot { width:92px; height:92px; margin-bottom:10px; }.mascot svg,.admin-link svg { width:100%; height:100%; }
.admin-link { position:absolute; right:0; top:0; display:grid; place-items:center; width:48px; height:48px; padding:12px; color:var(--accent-dark); background:#fffefa; border:1px solid var(--line); border-radius:17px; }
section { margin-top:14px; padding:24px; border:1px solid #e1ebe0; border-radius:26px; background:var(--card); box-shadow:0 10px 32px rgba(52,95,67,.07); }
.search-panel { display:block; }.search-panel h2 { font-size:1.25rem; margin-bottom:20px; }.search-panel h2 span { color:#dba96b; }
.search-controls { display:grid; grid-template-columns:1fr; gap:8px; }.search-controls label { margin-top:8px; }.search-controls input,.search-controls select,#uid { width:100%; }
label { color:#345446; font-size:.9rem; } input,select { min-height:52px; font-size:16px; border:1px solid #cbded0; border-radius:14px; padding:12px 14px; background:#f9fcf7; }
button { min-height:48px; border-radius:14px; transition:background .18s,opacity .18s; } button:active,.admin-link:active { opacity:.7; } button:disabled { opacity:.55; cursor:wait; }
.primary { background:var(--accent); border-color:var(--accent); }.search-controls .primary { width:100%; margin-top:12px; min-height:54px; }
input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible { outline:3px solid #e4af76; outline-offset:3px; }
.message { margin-top:12px; min-height:0; }.groups { grid-template-columns:1fr; gap:10px; }.group-card { min-width:0; border-radius:17px; background:#f7fbf5; padding:16px; }.group-card p { margin-bottom:0; }.group-card a { color:var(--accent-dark); padding:10px 0 10px 10px; white-space:nowrap; }.group-info { overflow-wrap:anywhere; }
.form-panel { max-width:none; } form { grid-template-columns:1fr; }.form-actions { flex-wrap:wrap; } .section-heading { flex-direction:row; align-items:center; }
@media (min-width:641px) { main { padding-top:48px; } section { padding:32px; } }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { transition:none !important; scroll-behavior:auto !important; } }
.group-picker { margin-top:12px; }.picker-label { margin:0 0 8px; color:#345446; font-size:.9rem; font-weight:650; }.picker-label span { color:var(--muted); font-weight:400; margin-left:4px; }.group-tags { display:flex; flex-wrap:wrap; gap:8px; }.group-tag { display:inline-flex; align-items:center; gap:8px; max-width:100%; min-height:44px; padding:8px 12px; border-radius:999px; border:1px solid #b9d9c3; background:#eaf5e9; color:#245f45; text-align:left; overflow-wrap:anywhere; }.group-tag[aria-pressed="false"] { color:#65736a; background:#f5f6f2; border-color:#dce3db; }.tag-icon { flex:none; font-size:1.2rem; line-height:1; }.picker-hint { margin:8px 0 0; color:var(--muted); font-size:.8rem; }
.batch-help { color:var(--muted); font-size:.9rem; }.batch-message { white-space:pre-wrap; } textarea { width:100%; min-height:160px; resize:vertical; padding:12px 14px; border:1px solid #cbded0; border-radius:14px; background:#f9fcf7; color:var(--ink); font:inherit; } textarea:focus-visible { outline:3px solid #e4af76; outline-offset:3px; }
#history-panel { margin-top:28px; padding-top:22px; border-top:1px solid var(--line); } #history-panel h2 { margin-bottom:12px; }.history-tag { display:inline-block; padding:6px 12px; border-radius:999px; background:#eaf5e9; color:#245f45; font-size:.85rem; }
.history-setting { display:flex; align-items:center; gap:10px; margin-bottom:12px; }.history-setting input { width:22px; height:22px; min-height:0; accent-color:var(--accent); }
.admin-filters { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.admin-filters input,.admin-filters select { width:100%; }.pagination { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:16px; }.pagination span { color:var(--muted); font-size:.85rem; }.pagination button:disabled { cursor:default; }.pagination button { min-width:76px; }
@media (max-width:380px) { .admin-filters { grid-template-columns:1fr; } }
.result-card { align-items:center; }.result-status { width:44px; height:44px; flex:none; display:grid; place-items:center; border-radius:50%; }.result-status svg { width:27px; height:27px; }.result-status--found { background:#cdeed9; color:#11663d; }.result-status--not-found { background:#f9dfdc; color:#a3322a; }.result-status--unknown { background:#fff0c8; color:#79540a; }
.group-tags { align-items:flex-start; }
.search-controls .group-tags .group-tag { flex:0 1 auto; width:auto; min-width:0; max-width:100%; border-radius:18px; line-height:1.4; }
.group-tag > span:first-child { min-width:0; overflow-wrap:anywhere; }
.group-picker #group-tags { max-height:220px; overflow-y:auto; overscroll-behavior:contain; align-content:flex-start; padding:2px 2px 6px; }
.search-controls .group-tags .group-tag { font-size:.8rem; padding:6px 10px; min-height:40px; gap:5px; border-radius:14px; }
.history-user { margin:0 0 12px; color:var(--ink); font-weight:650; overflow-wrap:anywhere; }
.history-user { display:flex; align-items:center; gap:12px; padding:14px; border-radius:18px; background:#eaf5e9; }
.history-avatar { flex:none; display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:#cde6d2; color:#246245; font-size:1.8rem; }
.history-identity { display:grid; gap:2px; min-width:0; }.history-uid { color:#526d5d; font-size:.8rem; font-weight:500; }
.history-card { padding:15px 17px; border:1px solid #dbe9db; border-left:4px solid #75b38d; border-radius:16px; background:#fbfdf8; overflow-wrap:anywhere; }.history-card h3 { margin:3px 0 10px; }.history-group-label { color:#52765d; font-size:.75rem; font-weight:700; }.history-categories { display:flex; flex-wrap:wrap; gap:6px; }.history-date { margin:9px 0 0; color:var(--muted); font-size:.8rem; }
.manual-tags-panel { margin-top:16px; padding:16px; border-radius:16px; background:#fffaf1; }.manual-disclaimer { color:var(--muted); font-size:.85rem; }.manual-tag { display:inline-block; padding:7px 12px; border-radius:12px; background:#fff0d8; color:#704817; overflow-wrap:anywhere; max-width:100%; }.manual-tags-panel form { margin-top:16px; }.manual-tags-panel form button { justify-self:start; min-width:100px; }
.person-tags { margin:12px 0 4px; }.person-tags > span { display:contents; }.person-tags .manual-tag { padding:6px 12px; border-radius:999px; font-size:.85rem; }.tag-legend { margin:8px 0; font-size:.78rem; color:var(--muted); }.legend-auto { color:#377a5c; }.legend-manual { color:#9a651d; }.manual-tags-panel summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-weight:700; color:#704817; }.manual-tags-panel summary::after { content:'＋'; margin-left:auto; }.manual-tags-panel[open] summary::after { content:'－'; }

