.panel { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 18px; margin-bottom: 18px; }
.panel[hidden] { display: none; }
.narrow { max-width: 420px; margin: 30px auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; }
h2 { margin: 0 0 10px; }
h3 { margin: 22px 0 8px; font-size: 19px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
input, select, textarea { font: 16px var(--body); color: var(--ink); background: var(--blush); border: 2px solid transparent; border-radius: 10px; padding: 9px 11px; width: 100%; }
select { width: auto; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--rose); outline: none; }
button { font: 700 15px var(--body); background: var(--rose); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer; }
button.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
button.small { padding: 6px 10px; font-size: 14px; }
label { display: block; font-weight: 600; font-size: 15px; }
#loginForm label + input { margin: 6px 0 12px; }
.err { color: #B00020; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; }
.tabs button { background: transparent; color: var(--ink); border: 2px solid var(--rose); }
.tabs button[aria-pressed="true"] { background: var(--rose); color: #fff; }
#newCount:not(:empty) { background: var(--mango); color: var(--ink); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.status { min-height: 1.4em; color: var(--leaf); font-weight: 600; }
.hint { color: var(--muted); font-size: 15px; max-width: 75ch; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { border-left: 5px solid var(--rose); padding: 6px 12px; }
.kpi b { display: block; font: 800 30px/1.1 var(--display); }
.kpi span { font-size: 14px; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 2px solid var(--ink); }
.bars div { flex: 1; background: var(--rose); min-height: 2px; border-radius: 3px 3px 0 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid rgba(142, 18, 69, .2); vertical-align: top; }
th { font-weight: 700; }
td.num { text-align: right; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.form input { margin-top: 4px; }
.form .wide, .form fieldset { grid-column: 1 / -1; }
fieldset { border: 2px solid var(--blush); border-radius: 10px; display: flex; gap: 18px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.check input { width: auto; }
.item { border-top: 1px solid rgba(142, 18, 69, .2); padding: 14px 0; }
.item .ref { white-space: pre-wrap; font-size: 14px; color: var(--muted); background: var(--blush); border-radius: 10px; padding: 8px 10px; max-height: 160px; overflow: auto; }
.item .key { font-weight: 700; }
.todo { color: var(--mango); font-weight: 700; }
.saved { color: var(--leaf); font-weight: 700; margin-left: 8px; }
.item textarea { margin: 6px 0; }
.who { font-size: 14px; color: var(--muted); margin-right: 6px; }
[data-coord][hidden] { display: none; }
.gps { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.gps .wide { grid-column: 1 / -1; }
.voice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.voice audio { height: 36px; max-width: 100%; }
.voice .rec { background: #B00020; }
.voice .file { font-weight: 600; font-size: 14px; }
.voice .file input { display: none; }
.voice .file span { display: inline-block; border: 2px solid var(--ink); border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.has-voice { color: var(--leaf); font-weight: 700; }
.warnbox { background: rgba(242, 162, 58, .2); border-left: 5px solid var(--mango); padding: 8px 12px; border-radius: 0 10px 10px 0; }
.thumb { width: 60px; height: 40px; object-fit: cover; border-radius: 6px; }
