:root { color-scheme: light; --ink:#172d3b; --muted:#5c6e7b; --brand:#174b68; --line:#dbe4e9; --soft:#edf3f6; --green:#246749; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:#f6f8fa; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height:1.5; font-size:16px; }
button,input,textarea,select { font:inherit; }
button,a,input,textarea,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline:3px solid #f1b54f; outline-offset:3px; }
a { color:var(--brand); }
.demo-banner { background:#fff3d8; padding:10px 24px; display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:13px; color:#674d20; }
.demo-banner label { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.demo-banner select { font-size:13px; width:auto; border-color:#dcc99d; padding:6px 10px; min-height:36px; }
.app-header { background:#fff; border-bottom:1px solid var(--line); }
.header-inner { max-width:1032px; padding:22px 24px; margin:auto; display:flex; justify-content:space-between; align-items:center; gap:20px; }
.brand { display:flex; flex-direction:column; gap:5px; align-items:flex-start; text-decoration:none; }
.brand small { display:block; font-size:12px; font-weight:500; color:var(--muted); }
.brand-logo-crop { display:block; position:relative; overflow:hidden; width:220px; height:44px; }
.brand-logo { position:absolute; width:107.13%; height:auto; max-width:none; left:-3.56%; top:-111.38%; }
.user-name { font-size:14px; color:var(--muted); }
main { max-width:984px; margin:36px auto 52px; padding:0 24px; }
h1 { font-size:30px; letter-spacing:-.7px; line-height:1.2; margin:0 0 8px; }
h2 { font-size:21px; margin:0; }
h3 { font-size:17px; margin:0; }
p { margin:0; }
.intro { margin-bottom:24px; }
.intro p,.muted { color:var(--muted); }
.tools { display:flex; align-items:center; gap:12px; margin:22px 0 16px; }
.tools input { flex:1; min-width:0; }
.tools select { width:230px; }
input,textarea,select { background:white; border:1px solid #bbcbd6; border-radius:10px; padding:12px 14px; color:var(--ink); width:100%; min-height:48px; }
textarea { min-height:92px; resize:vertical; }
input[type=file] { font-size:14px; padding:10px; }
.list-heading { display:flex; justify-content:space-between; align-items:center; margin:24px 0 12px; color:var(--muted); font-size:14px; }
.objects { display:grid; gap:10px; }
.object { display:flex; justify-content:space-between; align-items:center; gap:24px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:20px 22px; }
.object-title { font-weight:750; font-size:18px; line-height:1.3; }
.object-address { font-size:14px; color:var(--muted); margin:5px 0 9px; }
.object-meta { display:flex; gap:9px 16px; flex-wrap:wrap; align-items:center; font-size:13px; color:var(--muted); }
.last-check { color:var(--green); background:#eaf4ee; border-radius:6px; padding:3px 7px; }
.no-check { background:#f0f3f5; color:var(--muted); }
.object-actions { flex-shrink:0; display:grid; gap:4px; justify-items:stretch; }
.button { border:0; background:var(--brand); color:white; border-radius:10px; padding:12px 18px; min-height:48px; font-weight:650; display:inline-flex; justify-content:center; align-items:center; text-decoration:none; gap:8px; }
.button:hover { background:#0d3c56; }
.button.secondary { background:var(--soft); color:var(--brand); }
.button.secondary:hover { background:#dce8ef; }
.text-button { border:0; background:none; color:var(--brand); min-height:44px; padding:9px 12px; text-decoration:underline; text-underline-offset:4px; font-size:14px; }
.back { padding-left:0; margin-bottom:16px; text-decoration:none; font-size:15px; }
.form-panel,.notes-panel,.history-panel { background:#fff; border:1px solid var(--line); border-radius:16px; padding:26px; margin:20px 0; }
.field { display:block; margin-bottom:20px; }
.field > span { display:block; font-weight:650; margin-bottom:7px; }
.hint { font-size:13px; color:var(--muted); display:block; margin:6px 0 0; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.section-choices { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.chip { background:var(--soft); color:var(--brand); border:1px solid #cedde6; padding:10px 14px; min-height:44px; border-radius:9px; }
.chip[aria-pressed=true] { background:var(--brand); color:#fff; border-color:var(--brand); }
.form-actions { display:flex; gap:12px; margin-top:26px; }
.form-actions .primary { flex:1; }
.error { padding:12px 16px; margin-bottom:16px; background:#fce9e7; color:#8a2824; border-radius:8px; }
.panel-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:18px; }
.panel-heading .count { font-size:13px; color:var(--muted); }
.note { border-left:3px solid #b9d0df; padding:4px 0 4px 14px; margin:20px 0; }
.note-head { display:flex; justify-content:space-between; gap:12px; margin-bottom:7px; font-size:13px; }
.note-body,.history-note { white-space:pre-wrap; overflow-wrap:anywhere; }
.note-head strong { font-size:14px; }
.note-head time { color:var(--muted); }
.note-context { font-size:12px; color:var(--muted); margin-top:6px; }
.note-compose { padding-top:20px; border-top:1px solid var(--line); margin-top:22px; }
.note-compose .button { margin-top:10px; }
.history-item { border-top:1px solid var(--line); padding:18px 0; }
.history-item:first-of-type { border-top:0; }
.history-meta { color:var(--muted); font-size:13px; margin:4px 0 8px; }
.history-note { color:var(--muted); font-size:14px; margin-top:8px; }
.attachment { max-width:100%; max-height:240px; object-fit:contain; border-radius:10px; display:block; margin-top:12px; border:1px solid var(--line); }
.empty { color:var(--muted); padding:18px 0; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:#163d2c; color:#fff; padding:14px 22px; border-radius:12px; box-shadow:0 5px 24px #172d3b22; max-width:90%; text-align:center; z-index:10; display:none; }
.toast.visible { display:block; }
footer { font-size:12px; text-align:center; padding:16px 24px 30px; color:var(--muted); }
@media(max-width:640px) {
  .demo-banner { padding:10px 16px; flex-direction:column; align-items:flex-start; gap:8px; }
  .demo-banner span { display:block; }
  .demo-banner label { width:100%; justify-content:space-between; }
  .demo-banner select { max-width:210px; }
  .header-inner { padding:16px; gap:8px; }
  .brand-logo-crop { width:180px; height:36px; }
  .user-name { font-size:12px; max-width:115px; text-align:right; }
  main { padding:0 16px; margin:26px auto 30px; }
  h1 { font-size:27px; }
  .intro { margin-bottom:18px; }
  .intro p { font-size:15px; }
  .tools { flex-direction:column; align-items:stretch; gap:10px; }
  .tools select { width:100%; }
  .object { padding:16px; gap:14px; align-items:flex-start; flex-direction:column; }
  .object-title { font-size:18px; }
  .object-address { margin-bottom:8px; }
  .object-actions { display:flex; width:100%; gap:8px; align-items:center; }
  .object-actions .button { flex:1; font-size:15px; padding:11px; }
  .object-actions .text-button { flex:1; font-size:13px; padding:8px 0; }
  .form-panel,.notes-panel,.history-panel { padding:20px 16px; }
  .form-row { gap:12px; }
  .form-row input { padding:12px 8px; min-width:0; }
  .note-head { flex-wrap:wrap; gap:3px 10px; }
  .form-actions { flex-direction:column; }
}

[hidden]{display:none!important;}
.header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.header-actions .text-button{font-size:13px;}
.login-panel{max-width:600px;margin:40px auto;}
.login-panel h1{margin-bottom:20px;}
.login-help{margin:18px 0 24px;}
.local-options{display:grid;gap:12px;margin-top:24px;}
.detail-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;}
.access-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:20px 0;}
.access-row>div{display:grid;gap:6px;}
.export-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px;}
.invite-box{margin-top:20px;padding:20px;background:var(--soft);border-radius:12px;}
.invite-box p{margin:10px 0;}
.button:disabled{opacity:.55;cursor:wait;}
@media(max-width:640px){.header-actions{gap:0;max-width:155px;}.header-actions .user-name{width:100%;max-width:none;}.access-row{flex-direction:column;align-items:stretch;gap:12px;}.export-actions{flex-direction:column;}}
