:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --border: #e3e8ec;
  --border-strong: #cfd6dc;
  --text: #17212b;
  --text-2: #4a5764;
  --muted: #7a8794;
  --brand: #0f6b5c;
  --brand-2: #0b5448;
  --brand-soft: #e5f3f0;
  --side: #10231f;
  --side-2: #183530;
  --side-text: #c9d8d4;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --warn: #b7791f;
  --warn-soft: #fdf4e3;
  --info: #2563a8;
  --info-soft: #e8f0fa;
  --ok: #1e8a52;
  --ok-soft: #e6f5ec;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 35, 31, .06), 0 1px 3px rgba(16, 35, 31, .05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14.5px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
.icon { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 1rem; }
.mb { margin-bottom: 1rem; }
.pre { white-space: pre-wrap; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; flex: none; background: var(--side); color: var(--side-text);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40;
}
.brand { display: flex; gap: .7rem; align-items: center; padding: 1.1rem 1rem 1rem; color: #fff; text-decoration: none !important; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #1aa38b, #0f6b5c); display: grid; place-items: center; color: #fff; flex: none; }
.brand-mark .icon { width: 22px; height: 22px; }
.brand-mark.big { width: 56px; height: 56px; border-radius: 14px; }
.brand-mark.big .icon { width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: #8fb0a8; font-size: .76rem; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: .4rem .6rem; overflow-y: auto; flex: 1; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 8px; color: var(--side-text); font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.active { background: #1f4a42; color: #fff; }
.nav a.active .icon { color: #5fd3bb; }
.nav-badge { margin-left: auto; font-style: normal; background: #2b8a76; color: #fff; font-size: .72rem; font-weight: 700; padding: 0 .45rem; border-radius: 99px; line-height: 1.5; }
.sidebar-foot { display: flex; align-items: center; gap: .4rem; padding: .75rem; border-top: 1px solid #23413b; }
.sidebar-foot form { margin: 0; }
.me { display: flex; gap: .6rem; align-items: center; flex: 1; min-width: 0; color: var(--side-text); text-decoration: none !important; padding: .3rem; border-radius: 8px; }
.me:hover, .me.active { background: var(--side-2); }
.me-text { display: flex; flex-direction: column; min-width: 0; }
.me-text strong { color: #fff; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text small { font-size: .74rem; color: #8fb0a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #2b8a76; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: .7rem; }
.sidebar .icon-btn { color: var(--side-text); }
.sidebar .icon-btn:hover { background: var(--side-2); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { padding: 1.75rem 2rem 3rem; max-width: 1240px; width: 100%; margin: 0 auto; }
.content-wide { max-width: none; padding: 1.25rem 1.5rem 1.5rem; }
.scrim { display: none; }

@media (max-width: 960px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 30; }
  .topbar { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
  .topbar-title { font-weight: 650; }
  .content { padding: 1.1rem 1rem 2.5rem; }
  .content-wide { padding: 1rem; }
}

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-head p { margin: .15rem 0 0; color: var(--muted); }
.page-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .88rem; margin-bottom: .5rem; }
.back .icon { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .5rem .95rem;
  border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 550; cursor: pointer; text-decoration: none !important; white-space: nowrap; line-height: 1.3;
}
.btn:hover { background: var(--surface-2); border-color: #b8c1c9; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: #f0b8b1; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: rgba(0,0,0,.04); border-color: transparent; }
.btn-sm { padding: .3rem .6rem; font-size: .85rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: rgba(0,0,0,.05); }
.inline-form { display: inline; margin: 0; }
button:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 1.15rem 1.25rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.card-head h2 .icon { color: var(--brand); }
.card-head a { font-size: .85rem; }
.card-body { padding: 1rem 1.25rem; }
.card + .card { margin-top: 1rem; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .grid-2, .grid-3, .split { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr 1fr; } }

.stat { padding: 1rem 1.15rem; display: flex; gap: .85rem; align-items: center; color: inherit; text-decoration: none !important; }
.stat:hover { border-color: var(--border-strong); }
.stat-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.stat-icon .icon { width: 22px; height: 22px; }
.stat strong { display: block; font-size: 1.45rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: .8rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; gap: .75rem; align-items: flex-start; }
.list > li:last-child { border-bottom: 0; }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 600; color: var(--text); display: block; }
a.list-title:hover { color: var(--brand); text-decoration: none; }
.list-meta { color: var(--muted); font-size: .83rem; margin-top: .1rem; }
.list-side { flex: none; text-align: right; }
.empty { padding: 1.5rem 1.25rem; color: var(--muted); text-align: center; }
.empty-page { text-align: center; padding: 4rem 1rem; }
.empty-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); display: grid; place-items: center; margin: 0 auto 1rem; }
.empty-icon .icon { width: 28px; height: 28px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border-radius: 99px; font-size: .74rem; font-weight: 650; background: #eef1f4; color: var(--text-2); white-space: nowrap; text-transform: capitalize; }
.badge .icon { width: 12px; height: 12px; }
.badge-ok, .badge-approved, .badge-closed, .badge-done, .badge-departed { background: var(--ok-soft); color: var(--ok); }
.badge-warn, .badge-pending, .badge-on_hold, .badge-important, .badge-high, .badge-expected, .badge-processing { background: var(--warn-soft); color: var(--warn); }
.badge-danger, .badge-urgent, .badge-emergency, .badge-error, .badge-rejected { background: var(--danger-soft); color: var(--danger); }
.badge-info, .badge-open, .badge-in_progress, .badge-arrived { background: var(--info-soft); color: var(--info); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-low, .badge-cancelled, .badge-disabled { background: #eef1f4; color: var(--muted); }

/* ---------- Flash ---------- */
.flash { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }
.flash span { flex: 1; }
.flash-success { background: var(--ok-soft); border-color: #bfe3cd; color: #145c37; }
.flash-error { background: var(--danger-soft); border-color: #f2c2bc; color: #8c2a1f; }
.flash-info { background: var(--info-soft); border-color: #c6d8ef; color: #1d4f86; }
.flash-x { background: none; border: 0; color: inherit; cursor: pointer; opacity: .6; padding: 0; display: grid; }
.flash-x:hover { opacity: 1; }

/* ---------- Forms ---------- */
.form { max-width: 720px; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .95rem; }
.field > span { font-weight: 600; font-size: .88rem; color: var(--text-2); }
.field small { color: var(--muted); font-size: .8rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=search], input[type=tel], select, textarea {
  font: inherit; color: var(--text); background: #fff; border: 1px solid var(--border-strong); border-radius: 8px; padding: .5rem .7rem; width: 100%; min-width: 0;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(15,107,92,.25); border-color: var(--brand); }
.check { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; font-weight: 500; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 1rem; }
.form-actions { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; flex-wrap: wrap; }
.form-actions .spacer { flex: 1; }

.toolbar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 0; }
.search { position: relative; }
.search .icon { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search input { padding-left: 2rem; width: 240px; }
.tabs { display: inline-flex; background: #e9edf0; border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.tabs a { padding: .35rem .8rem; border-radius: 7px; color: var(--text-2); font-weight: 550; font-size: .88rem; text-decoration: none; }
.tabs a.active { background: #fff; color: var(--text); box-shadow: var(--shadow); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcfc; }
.table .num { text-align: right; }
.table td.actions { text-align: right; white-space: nowrap; }

/* ---------- Auth ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(circle at 20% 10%, #1b4d44 0, #10231f 55%); }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; max-width: 900px; width: 100%; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.auth-side { background: linear-gradient(160deg, #0f6b5c, #0b4038); color: #e0efeb; padding: 2.5rem; display: flex; flex-direction: column; gap: .9rem; }
.auth-side h2 { color: #fff; font-size: 1.5rem; margin: .5rem 0 0; }
.auth-side p { color: #bcd9d2; }
.auth-points { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-direction: column; gap: .7rem; }
.auth-points li { display: flex; gap: .6rem; align-items: center; }
.auth-points .icon { color: #7fe0c9; }
.auth-card { padding: 2.5rem; background: var(--surface); }
.auth-body > .auth-card { border-radius: 14px; max-width: 420px; }
.auth-card h1 { margin-bottom: .25rem; }
.auth-card .btn-block { margin: .5rem 0 1rem; padding: .65rem; }
@media (max-width: 760px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { padding: 1.75rem; } .auth-points { display: none; } .auth-card { padding: 1.75rem; } }

/* ---------- Announcements ---------- */
.announcement { padding: 1.15rem 1.25rem; }
.announcement + .announcement { border-top: 1px solid var(--border); }
.announcement-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .35rem; }
.announcement-head h3 { margin: 0; font-size: 1.05rem; }
.announcement-body { color: var(--text-2); }
.announcement-body p:last-child { margin-bottom: 0; }
.announcement.urgent { border-left: 4px solid var(--danger); }
.announcement.important { border-left: 4px solid var(--warn); }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Documents library ---------- */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } }
.folder-list { list-style: none; margin: 0; padding: .4rem; }
.folder-list a { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border-radius: 7px; color: var(--text-2); font-weight: 500; text-decoration: none; }
.folder-list a:hover { background: var(--surface-2); }
.folder-list a.active { background: var(--brand-soft); color: var(--brand); }
.folder-list .count { margin-left: auto; font-size: .76rem; color: var(--muted); }
.folder-list .icon { width: 17px; height: 17px; }
.folder-new { padding: .6rem; border-top: 1px solid var(--border); }
.folder-new form { display: flex; gap: .35rem; }
.folder-new input { padding: .35rem .55rem; font-size: .88rem; }
.doc-row { display: flex; align-items: center; gap: .9rem; }
.doc-icon { width: 38px; height: 44px; border-radius: 6px; background: #fdecea; color: #c0392b; display: grid; place-items: center; flex: none; font-size: .62rem; font-weight: 800; letter-spacing: .03em; position: relative; }
.doc-icon::after { content: ""; position: absolute; top: 0; right: 0; border-width: 0 9px 9px 0; border-style: solid; border-color: var(--bg) var(--bg) #f5c6c0 #f5c6c0; border-radius: 0 0 0 3px; }
.doc-title { font-weight: 600; color: var(--text); }
.doc-title:hover { color: var(--brand); }
.doc-sub { color: var(--muted); font-size: .82rem; }
.ai-chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 650; color: #6b46c1; background: #f1ebfd; padding: .1rem .45rem; border-radius: 99px; }
.ai-chip .icon { width: 12px; height: 12px; }

/* ---------- Document viewer ---------- */
body.viewer-page .content { display: flex; flex-direction: column; height: 100vh; }
@media (max-width: 960px) { body.viewer-page .content { height: calc(100vh - 55px); } }
.viewer-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .85rem; }
.viewer-head h1 { font-size: 1.2rem; margin: 0; flex: 1; min-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-head select { width: auto; max-width: 260px; }
.viewer { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: 1rem; flex: 1; min-height: 0; }
.pdf-pane { background: #525659; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 0; display: flex; }
.pdf-pane iframe { border: 0; width: 100%; height: 100%; flex: 1; background: #525659; }
.summary-pane { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.summary-scroll { overflow-y: auto; padding: 1.1rem 1.25rem 1.5rem; flex: 1; }
.summary-head { display: flex; align-items: center; gap: .6rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, #f6f1ff, #fff); border-radius: var(--radius) var(--radius) 0 0; }
.summary-head h2 { margin: 0; font-size: 1rem; flex: 1; display: flex; align-items: center; gap: .45rem; }
.summary-head h2 .icon { color: #7c4dff; }
.summary-section { margin-bottom: 1.2rem; }
.summary-section h3 { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .45rem; }
.summary-section ul { margin: 0; padding-left: 1.15rem; }
.summary-section li { margin-bottom: .35rem; }
.summary-overview { font-size: .98rem; color: var(--text); }
.summary-impact { background: var(--brand-soft); border-radius: 8px; padding: .75rem .9rem; color: #0b4a40; }
.kv { width: 100%; border-collapse: collapse; font-size: .9rem; }
.kv td { padding: .4rem 0; border-bottom: 1px dashed var(--border); vertical-align: top; }
.kv td:first-child { padding-right: .75rem; color: var(--text-2); }
.kv td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.kv.dates td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.kv.dates td:last-child { text-align: left; font-weight: 400; white-space: normal; }
.doc-meta { display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; font-size: .86rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.doc-meta dt { color: var(--muted); }
.doc-meta dd { margin: 0; }
.summary-loading { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem; padding: 2.5rem 1rem; color: var(--text-2); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #e6dcfb; border-top-color: #7c4dff; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #eef1f4 25%, #f6f8fa 50%, #eef1f4 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; margin: .45rem 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
.summary-foot { font-size: .78rem; color: var(--muted); margin-top: 1rem; }
@media (max-width: 1000px) {
  body.viewer-page .content { height: auto; }
  .viewer { grid-template-columns: 1fr; }
  .pdf-pane { height: 75vh; }
  .summary-pane { overflow: visible; }
}

.audio-bar { display: flex; flex-direction: column; gap: .3rem; padding: .6rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.audio-bar audio { width: 100%; height: 36px; }
.audio-bar .muted:empty { display: none; }

/* ---------- Upload ---------- */
.dropzone { border: 2px dashed var(--border-strong); border-radius: 12px; padding: 2rem 1rem; text-align: center; background: var(--surface-2); cursor: pointer; transition: .15s; display: block; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .icon { width: 36px; height: 36px; color: var(--brand); }
.dropzone input { display: none; }
.dropzone strong { display: block; margin-top: .5rem; }
.file-list { list-style: none; padding: 0; margin: .75rem 0 0; }
.file-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem .6rem; border-bottom: 1px solid var(--border); font-size: .9rem; }

/* ---------- Requests ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: .75rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); }
.timeline li.internal { background: #fffaf0; }
.timeline li.system { color: var(--muted); font-size: .88rem; padding: .55rem 1.25rem; }
.timeline .bubble { flex: 1; min-width: 0; }
.timeline .who { font-weight: 600; }
.desc { white-space: pre-wrap; color: var(--text-2); }
.props { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; font-size: .9rem; margin: 0; }
.props dt { color: var(--muted); }
.props dd { margin: 0; font-weight: 500; }

/* ---------- Amenities ---------- */
.amenity-card { display: flex; flex-direction: column; }
.amenity-card .card-body { flex: 1; }
.amenity-art { height: 90px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(135deg, #0f6b5c, #2fb39a); display: grid; place-items: center; color: rgba(255,255,255,.9); }
.amenity-art .icon { width: 40px; height: 40px; }
.amenity-facts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.slots { display: grid; grid-template-columns: 64px 1fr; font-size: .82rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.slots .hour { padding: .45rem .5rem; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.slots .cell { border-bottom: 1px solid var(--border); padding: .45rem .6rem; }
.slots .cell.busy { background: var(--info-soft); color: var(--info); font-weight: 600; }
.slots .cell.pending { background: var(--warn-soft); color: var(--warn); font-weight: 600; }

/* ---------- Calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.cal-dow { padding: .5rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; background: var(--surface-2); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cal-day { min-height: 106px; padding: .35rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; overflow: hidden; }
.cal-day.out { background: var(--surface-2); color: var(--muted); }
.cal-day.today .cal-num { background: var(--brand); color: #fff; }
.cal-num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 99px; font-size: .8rem; font-weight: 600; margin-bottom: .2rem; }
.cal-item { display: block; font-size: .74rem; padding: .1rem .35rem; border-radius: 4px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important; }
.cal-item.event { background: var(--brand-soft); color: var(--brand-2); }
.cal-item.booking { background: var(--info-soft); color: var(--info); }
@media (max-width: 700px) { .cal-day { min-height: 64px; } .cal-item { font-size: 0; height: 6px; padding: 0; } }

/* ---------- Polls ---------- */
.poll-option { position: relative; display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border: 1px solid var(--border); border-radius: 8px; margin-bottom: .45rem; overflow: hidden; }
.poll-option .bar { position: absolute; inset: 0 auto 0 0; background: var(--brand-soft); z-index: 0; }
.poll-option > *:not(.bar) { position: relative; z-index: 1; }
.poll-option .pct { margin-left: auto; font-weight: 650; font-size: .88rem; }
.poll-option.mine { border-color: var(--brand); }
label.poll-option { cursor: pointer; }
label.poll-option:hover { background: var(--surface-2); }

/* ---------- Misc ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .9rem; }
.contact-list li { display: flex; gap: .55rem; align-items: center; }
.contact-list .icon { color: var(--brand); width: 16px; height: 16px; }
details.collapse summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: .4rem; }
details.collapse summary::-webkit-details-marker { display: none; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
