:root {
  --ink: #17322b;
  --muted: #6b7b75;
  --paper: #f6f3eb;
  --card: #fffdf8;
  --line: #dce5df;
  --green: #0c6b4c;
  --green-dark: #084a38;
  --mint: #e1f1e7;
  --gold: #f0c96c;
  --coral: #e96950;
  --blue: #356da3;
  --shadow: 0 18px 48px rgba(23, 50, 43, .10);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(12,107,76,.05) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(0deg, rgba(12,107,76,.04) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
button { font: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 0; }
.brand { display:flex; align-items:center; gap:12px; font-weight:900; }
.brand-mark { display:grid; place-items:center; width:42px; height:42px; color:#fff; background:var(--green); border-radius:14px; font-size:18px; }
.brand small, .muted { color: var(--muted); font-weight:500; }
.top-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.role-links { display:flex; gap:6px; flex-wrap:wrap; }
.role-links a, .button { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:0 13px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:var(--card); text-decoration:none; cursor:pointer; font-weight:800; }
.role-links a.active, .button.primary { color:#fff; border-color:var(--green); background:var(--green); }
.button.warn { color:#fff; border-color:var(--coral); background:var(--coral); }
.button:disabled { opacity:.55; cursor:not-allowed; }
.statusbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:rgba(255,253,248,.84); box-shadow:var(--shadow); }
.pill { display:inline-flex; align-items:center; min-height:30px; padding:0 10px; border-radius:999px; color:var(--green); background:var(--mint); font-size:12px; font-weight:900; }
.layout { display:grid; grid-template-columns:minmax(0, 1fr) 320px; gap:18px; padding-bottom:40px; }
.content { min-width:0; }
.grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; }
.card { border:1px solid var(--line); border-radius:16px; background:var(--card); box-shadow:var(--shadow); overflow:hidden; }
.card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 18px; border-bottom:1px solid var(--line); background:#fbfaf4; }
.card-head h1, .card-head h2, .card-head h3 { margin:0; font-size:18px; }
.card-body { padding:18px; }
.hero { margin-bottom:16px; padding:24px; border-radius:18px; color:#fff; background:linear-gradient(135deg, var(--green-dark), var(--green)); box-shadow:var(--shadow); }
.hero h1 { margin:0 0 8px; font-size:clamp(24px, 4vw, 38px); }
.hero p { margin:0; color:rgba(255,255,255,.78); line-height:1.7; }
.metric-row { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; margin-bottom:16px; }
.metric { padding:14px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.metric strong { display:block; font-size:28px; color:var(--green); }
.metric span { color:var(--muted); font-size:12px; }
.task { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); }
.task:last-child { border-bottom:0; }
.task p { margin:0; line-height:1.55; }
.task small { color:var(--muted); }
.icon { display:grid; place-items:center; width:34px; height:34px; border-radius:11px; color:var(--green); background:var(--mint); font-weight:900; }
.icon.warn { color:#fff; background:var(--coral); }
.notice { margin-top:14px; padding:14px; border:1px solid #f2dca7; border-radius:12px; background:#fff7df; line-height:1.6; }
.notice strong { display:block; margin-bottom:4px; }
.map { position:relative; min-height:260px; overflow:hidden; border:1px solid #cbded7; border-radius:14px; background:linear-gradient(135deg, #e9f4eb, #d8eae0); }
.map::before, .map::after { content:""; position:absolute; background:rgba(53,109,163,.24); transform:rotate(28deg); }
.map::before { width:140%; height:12px; left:-15%; top:48%; }
.map::after { width:12px; height:140%; left:52%; top:-20%; transform:rotate(22deg); }
.pin { position:absolute; z-index:1; display:grid; place-items:center; width:44px; height:44px; border:4px solid #fff; border-radius:50%; color:#fff; background:var(--green); box-shadow:0 6px 16px rgba(0,0,0,.18); font-size:12px; font-weight:900; }
.pin.me { left:18%; bottom:18%; background:var(--coral); }
.pin.guide { right:18%; top:18%; background:var(--blue); }
.pin.meeting { left:52%; top:42%; background:var(--green); }
.gallery { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.photo { position:relative; min-height:96px; overflow:hidden; border-radius:10px; background:linear-gradient(145deg, #b7d1c0, #f2d9a4 48%, #739d7f); }
.photo::after { content:""; position:absolute; left:15%; right:15%; bottom:10%; height:28%; border-radius:999px 999px 8px 8px; background:rgba(255,255,255,.55); }
.logs { position:sticky; top:16px; max-height:calc(100vh - 32px); overflow:auto; }
.event { margin-bottom:10px; padding:12px 13px; border-left:4px solid var(--green); border-radius:10px; background:#fff; box-shadow:0 6px 18px rgba(23,50,43,.06); }
.event strong, .event span { display:block; }
.event strong { font-size:13px; }
.event span { margin-top:4px; color:var(--muted); font-size:12px; line-height:1.55; }
.empty { color:var(--muted); line-height:1.6; }
.phone { max-width:420px; margin:0 auto; border:8px solid #16352c; border-radius:28px; background:#fff; box-shadow:var(--shadow); overflow:hidden; }
.phone-head { display:flex; justify-content:space-between; align-items:center; padding:16px; border-bottom:1px solid var(--line); }
.phone-body { padding:16px; }
.phone-nav { display:grid; grid-template-columns:repeat(4, 1fr); gap:6px; padding:10px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; text-align:center; }
.phone-nav strong { color:var(--green); }
.feature-strip { display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; margin-bottom:16px; }
.feature-chip { padding:12px; border:1px solid var(--line); border-radius:12px; background:rgba(255,253,248,.8); text-align:center; }
.feature-chip strong, .feature-chip span { display:block; }
.feature-chip strong { color:var(--green); font-size:13px; }
.feature-chip span { margin-top:4px; color:var(--muted); font-size:11px; }
.timeline { display:grid; gap:0; }
.timeline-item { position:relative; display:grid; grid-template-columns:62px 18px minmax(0,1fr); gap:8px; min-height:58px; align-items:start; }
.timeline-item::after { content:""; position:absolute; left:70px; top:18px; bottom:-12px; width:2px; background:#d5e4da; }
.timeline-item:last-child::after { display:none; }
.timeline-dot { position:relative; z-index:1; width:12px; height:12px; margin-top:3px; border:3px solid #fff; border-radius:50%; background:var(--green); box-shadow:0 0 0 1px #abd1b9; }
.timeline-item.current { padding:8px; border-radius:10px; background:#eef8f0; }
.timeline-item.current::after { left:78px; }
.timeline-item small { color:var(--muted); }
.module-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; }
.module { padding:14px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.module strong, .module span { display:block; }
.module strong { color:var(--green); }
.module span { margin-top:5px; color:var(--muted); font-size:12px; line-height:1.5; }
.admin-shell { display:grid; grid-template-columns:218px minmax(0,1fr); min-height:640px; border:1px solid var(--line); border-radius:18px; overflow:hidden; background:var(--card); box-shadow:var(--shadow); }
.admin-nav { padding:18px 12px; color:#fff; background:var(--green-dark); }
.admin-nav h2 { margin:0 10px 18px; font-size:18px; }
.admin-nav a { display:flex; gap:9px; align-items:center; margin:4px 0; padding:10px; border-radius:9px; color:rgba(255,255,255,.76); text-decoration:none; font-size:13px; }
.admin-nav a.active, .admin-nav a:hover { color:#fff; background:rgba(255,255,255,.14); }
.admin-main { padding:20px; min-width:0; }
.admin-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.table-list { display:grid; gap:8px; }
.table-row { display:grid; grid-template-columns:1.4fr .8fr .8fr auto; gap:10px; align-items:center; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:13px; }
.table-row small { color:var(--muted); }
.chart { display:flex; align-items:end; gap:8px; height:130px; padding:14px 10px 0; border-bottom:1px solid var(--line); }
.bar { flex:1; min-width:12px; height:var(--bar-height); border-radius:7px 7px 0 0; background:var(--green); }
.reference-preview { position:relative; margin-bottom:16px; overflow:hidden; border:1px solid var(--line); border-radius:18px; background:#fffdf8; box-shadow:var(--shadow); }
.reference-preview img { display:block; width:100%; max-height:260px; object-fit:cover; object-position:top; }
.reference-preview figcaption { position:absolute; left:14px; bottom:14px; padding:7px 10px; border-radius:999px; color:#fff; background:rgba(8,74,56,.86); font-size:12px; font-weight:800; }
.mobile-nav { display:none; }
.screen-tabs { display:flex; gap:8px; overflow:auto; margin-bottom:16px; padding-bottom:2px; }
.screen-tabs button { flex:0 0 auto; border:1px solid var(--line); border-radius:999px; padding:8px 12px; color:var(--muted); background:var(--card); cursor:pointer; font-weight:800; }
.screen-tabs button.active { color:#fff; border-color:var(--green); background:var(--green); }
.screen-card.is-hidden { display:none; }
.photo.real { background-size:cover; background-position:center; }
.photo.real::after { display:none; }
.avatar { width:40px; height:40px; object-fit:cover; border-radius:50%; background:var(--mint); }
.app-kicker { margin:0 0 4px; color:var(--muted); font-size:12px; font-weight:800; letter-spacing:.08em; }
@media (max-width: 900px) { .layout { grid-template-columns:1fr; } .logs { position:static; max-height:none; } }
@media (max-width: 680px) { .shell { width:min(100% - 20px, 560px); } .topbar, .statusbar { align-items:flex-start; flex-direction:column; } .role-links { width:100%; overflow:auto; flex-wrap:nowrap; } .role-links a { white-space:nowrap; } .grid, .module-grid { grid-template-columns:1fr; } .feature-strip { grid-template-columns:repeat(2, 1fr); } .metric-row { grid-template-columns:1fr 1fr 1fr; } .task { grid-template-columns:34px minmax(0,1fr); } .task .button { grid-column:2; justify-self:start; } .admin-shell { grid-template-columns:1fr; } .admin-nav { display:flex; gap:6px; overflow:auto; } .admin-nav h2 { display:none; } .admin-nav a { white-space:nowrap; } .table-row { grid-template-columns:1fr 1fr; } .reference-preview { border-radius:24px; } .reference-preview img { max-height:190px; } body[data-role]:not([data-role="ops"]) .content { max-width:440px; margin:0 auto; } body[data-role]:not([data-role="ops"]) .card { border-radius:22px; } body[data-role]:not([data-role="ops"]) .mobile-nav { position:sticky; bottom:8px; z-index:5; display:grid; grid-template-columns:repeat(4,1fr); gap:4px; margin:12px 0 4px; padding:9px 6px; border:1px solid var(--line); border-radius:18px; background:rgba(255,253,248,.94); box-shadow:0 12px 30px rgba(23,50,43,.14); } .mobile-nav button { border:0; color:var(--muted); background:transparent; font-size:11px; font-weight:800; cursor:pointer; } .mobile-nav button.active { color:var(--green); } .screen-tabs { margin-top:-4px; } }
