/* Primeview Sales Team — light theme, Primeview red as accent */
:root {
  --red: #e31e24;
  --red-d: #c11216;
  --red-soft: #fdecec;
  --red-line: #f5c2c3;
  --bg: #f5f5f3;
  --panel: #ffffff;
  --panel-2: #f8f8f6;
  --sunk: #f1f1ee;
  --line: #e7e5e1;
  --line-2: #d9d6d0;
  --text: #2b2b2b;
  --muted: #74716b;
  --hi: #141414;
  --ok: #1f9d57;
  --ok-soft: #e8f6ee;
  --warn: #b7791f;
  --warn-soft: #fbf3e4;
  --link: #c4161c;
  --radius: 10px;
  --side: 248px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 1px 3px rgba(20, 20, 20, .05);
  --shadow-lg: 0 10px 30px rgba(20, 20, 20, .08);
  font-size: 15px;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; line-height: 1.5; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--hi); text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--hi); line-height: 1.2; }
h1 { font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.nowrap { white-space: nowrap; }
.strong { color: var(--hi); font-weight: 600; }
.accent { color: var(--link); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
code { background: var(--sunk); padding: 1px 6px; border-radius: 4px; font-size: .9em; }

/* ---------------- Shell ---------------- */
.shell { display: flex; min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--panel);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 50;
}
.side-brand { padding: 22px 20px 18px; border-bottom: 2px solid var(--red); }
.side-brand img { height: 26px; width: auto; max-width: 180px; object-fit: contain; }
.side-brand .site { margin-top: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px;
  color: #4a4844; font-weight: 600; font-size: .92rem; border-left: 2px solid transparent;
}
.nav a svg { width: 18px; height: 18px; flex: 0 0 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { background: var(--panel-2); color: var(--hi); }
.nav a.on { background: var(--red-soft); color: var(--red-d); border-left-color: var(--red); }
.nav .sep { margin: 12px 12px 6px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #a29f98; font-weight: 800; }
.nav .ext::after { content: '↗'; margin-left: auto; color: #b0ada6; font-size: .8rem; }
.side-user { border-top: 1px solid var(--line); padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.side-user .who { flex: 1; min-width: 0; }
.side-user .who b { display: block; color: var(--hi); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who a { font-size: .78rem; color: var(--muted); }
.side-user form button { background: none; border: 1px solid var(--line-2); color: var(--muted); border-radius: 6px; padding: 5px 8px; cursor: pointer; font-size: .75rem; font-family: inherit; }
.side-user form button:hover { color: var(--red); border-color: var(--red); }

.main { margin-left: var(--side); flex: 1; min-width: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 32px 32px 64px; }
.top-mobile { display: none; }

@media (max-width: 900px) {
  .side { transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  body.nav-open .side { transform: none; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(20,20,20,.35); z-index: 40; }
  .main { margin-left: 0; }
  .top-mobile {
    display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 30;
    background: var(--panel); border-bottom: 2px solid var(--red); padding: 12px 16px;
  }
  .top-mobile img { height: 22px; width: auto; }
  .top-mobile button { background: none; border: 0; color: var(--hi); cursor: pointer; padding: 4px; }
  .wrap { padding: 22px 16px 48px; }
  h1 { font-size: 1.4rem; }
}

/* ---------------- Common ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 4px; }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-title h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.card-title h2 span { color: var(--red); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff;
  border: 1px solid var(--red); border-radius: 6px; padding: 9px 16px; font-weight: 600; font-size: .9rem; cursor: pointer;
  font-family: inherit; transition: background .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn:hover { background: var(--red-d); border-color: var(--red-d); color: #fff; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.ghost { background: var(--panel); border-color: var(--line-2); color: var(--hi); }
.btn.ghost:hover { border-color: var(--red); color: var(--red); background: var(--panel); }
.btn.sm { padding: 6px 11px; font-size: .8rem; }
.btn.danger { background: var(--panel); border-color: var(--red-line); color: var(--red); }
.btn.danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

label { display: block; font-size: .8rem; font-weight: 600; color: #55524d; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=search], input[type=date], input[type=time], input[type=number], input[type=tel], input[type=url], select, textarea {
  width: 100%; background: var(--panel); color: var(--hi); border: 1px solid var(--line-2); padding: 10px 12px; border-radius: 6px;
  font-size: .95rem; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,30,36,.12); }
input::placeholder, textarea::placeholder { color: #a9a6a0; }
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field { margin-bottom: 16px; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text); font-weight: 500; cursor: pointer; margin: 0; }
.check input { accent-color: var(--red); width: 16px; height: 16px; }
input[type=file] { color: var(--muted); font-size: .85rem; }

.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 18px; font-size: .9rem; border: 1px solid; }
.alert.ok { background: var(--ok-soft); border-color: #b6e2c8; color: #17663b; }
.alert.bad { background: var(--red-soft); border-color: var(--red-line); color: #9b1217; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: .72rem; font-weight: 700; background: var(--sunk); color: #5c5953; border: 1px solid var(--line); white-space: nowrap; }
.pill.red { background: var(--red-soft); color: var(--red-d); border-color: var(--red-line); }
.pill.green { background: var(--ok-soft); color: #17663b; border-color: #b6e2c8; }
.pill.amber { background: var(--warn-soft); color: #8a5a12; border-color: #ecd5a8; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c9c6c0; display: inline-block; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(31,157,87,.15); }

.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #ece9e4; flex: 0 0 auto; display: grid; place-items: center; color: #3b3935; font-weight: 700; font-size: .9rem; overflow: hidden; }
.avatar.lg { width: 112px; height: 112px; font-size: 2rem; border: 3px solid var(--panel); box-shadow: 0 0 0 2px var(--red); }
.avatar.md { width: 56px; height: 56px; font-size: 1.1rem; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--panel); }

table.t { width: 100%; border-collapse: collapse; font-size: .88rem; }
.t th { text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 10px 10px; border-bottom: 1px solid var(--line); }
.t td { padding: 10px; border-bottom: 1px solid #efede9; vertical-align: middle; }
.t tr:hover td { background: var(--panel-2); }
.table-wrap { overflow-x: auto; }

/* ---------------- Home ---------------- */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.hero h1 { font-size: 2rem; }
.hero .clock { text-align: right; }
.hero .clock b { font-size: 1.6rem; color: var(--hi); font-weight: 600; display: block; }
.tool {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color .15s, transform .15s, box-shadow .15s; color: var(--text); box-shadow: var(--shadow);
}
.tool:hover { border-color: var(--red-line); color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.tool .ic { width: 42px; height: 42px; border-radius: 9px; background: var(--red-soft); display: grid; place-items: center; flex: 0 0 42px; }
.tool .ic svg { width: 21px; height: 21px; stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool b { display: block; color: var(--hi); font-size: .98rem; }
.tool span { font-size: .82rem; color: var(--muted); }
.nl-feature { overflow: hidden; padding: 0; }
.nl-feature:hover { border-color: var(--red-line); }
.nl-feature .cover { aspect-ratio: 21/8; background: var(--sunk) center/cover no-repeat; border-bottom: 2px solid var(--red); }
.nl-feature .body { padding: 22px; }
.nl-feature h3 { font-size: 1.3rem; margin: 4px 0 8px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumbs a { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--sunk); position: relative; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.thumbs a:hover img { transform: scale(1.05); }
.people-mini { display: flex; flex-direction: column; gap: 2px; }
.people-mini a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; color: var(--text); }
.people-mini a:hover { background: var(--panel-2); color: var(--text); }
.people-mini .avatar { width: 34px; height: 34px; font-size: .78rem; }
.people-mini .n { flex: 1; min-width: 0; }
.people-mini .n b { display: block; color: var(--hi); font-size: .88rem; }
.people-mini .n span { font-size: .76rem; color: var(--muted); }

/* ---------------- Newsletter ---------------- */
.issue { display: flex; gap: 18px; align-items: center; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow); }
.issue + .issue { margin-top: 10px; }
.issue:hover { border-color: var(--red-line); color: var(--text); }
.issue .date { width: 64px; flex: 0 0 64px; text-align: center; border-right: 1px solid var(--line); padding-right: 14px; }
.issue .date b { display: block; font-size: 1.5rem; color: var(--red); line-height: 1; }
.issue .date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.issue .txt { flex: 1; min-width: 0; }
.issue .txt b { color: var(--hi); }
.prose { max-width: 720px; font-size: 1.04rem; line-height: 1.72; color: #33312d; }
.prose h1, .prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose h2 { font-size: 1.3rem; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.prose h2::before { content: ''; display: inline-block; width: 4px; height: .9em; background: var(--red); margin-right: 10px; vertical-align: -1px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .25em 0; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: 8px; margin: 1em 0; border: 1px solid var(--line); }
.prose blockquote { border-left: 3px solid var(--red); padding: 6px 16px; color: #55524d; background: var(--panel-2); border-radius: 0 8px 8px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.prose th { background: var(--panel-2); }
.article-cover { aspect-ratio: 21/8; border-radius: var(--radius); background: var(--sunk) center/cover; margin-bottom: 28px; border-bottom: 3px solid var(--red); }

/* ---------------- Media ---------------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters input[type=search] { flex: 1 1 240px; }
.filters select { flex: 0 1 200px; width: auto; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px; flex-wrap: wrap; }
.seg a { padding: 6px 12px; border-radius: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.seg a:hover { color: var(--hi); }
.seg a.on { background: var(--red-soft); color: var(--red-d); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tile .pic { aspect-ratio: 4/3; background: var(--sunk); position: relative; cursor: zoom-in; display: grid; place-items: center; color: var(--muted); }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tile .pic .play { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: rgba(20,20,20,.55); border: 2px solid #fff; display: grid; place-items: center; }
.tile .pic .play::after { content: ''; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.tile .pic .ext { font-weight: 800; font-size: 1.2rem; letter-spacing: .06em; color: var(--red); }
.tile .meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tile .meta b { color: var(--hi); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .meta .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.tile.pending .pic { cursor: default; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.drop {
  border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 26px; text-align: center; background: var(--panel-2);
  transition: border-color .15s, background .15s; cursor: pointer; font-weight: 400;
}
.drop.over { border-color: var(--red); background: var(--red-soft); }
.drop svg { width: 34px; height: 34px; stroke: var(--red); fill: none; stroke-width: 1.6; margin: 0 auto 8px; }
.drop b { color: var(--hi); }
.progress { height: 6px; background: var(--sunk); border-radius: 99px; overflow: hidden; margin-top: 12px; display: none; }
.progress > i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s; }
.lightbox { position: fixed; inset: 0; background: rgba(250,250,248,.97); z-index: 100; display: none; align-items: center; justify-content: center; padding: 50px 20px 80px; }
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lightbox .bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--panel); border-top: 1px solid var(--line); }
.lightbox .x { position: absolute; top: 12px; right: 18px; background: none; border: 0; color: var(--hi); font-size: 2rem; cursor: pointer; line-height: 1; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pager a { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 6px; font-size: .85rem; background: var(--panel); }
.pager a.on { border-color: var(--red); background: var(--red); color: #fff; }

/* ---------------- Brochures ---------------- */
.broch { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.broch .cover { aspect-ratio: 3/4; background: var(--sunk); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.broch .cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.broch .cover .ext { font-size: 1.4rem; font-weight: 800; color: var(--red); letter-spacing: .08em; }
.broch .info { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.broch .info b { color: var(--hi); }
.broch .info .btn-row { margin-top: auto; padding-top: 8px; }
.cat-title { margin: 28px 0 14px; display: flex; align-items: center; gap: 12px; }
.cat-title:first-of-type { margin-top: 0; }
.cat-title::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.cat-title h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------------- Team ---------------- */
.person { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; color: var(--text); transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow); }
.person:hover { border-color: var(--red-line); box-shadow: var(--shadow-lg); }
.person .head { display: flex; gap: 14px; align-items: center; }
.person .head b { display: block; color: var(--hi); font-size: 1rem; }
.person .head span { font-size: .82rem; color: var(--muted); }
.person .time { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.person .time b { color: var(--hi); font-weight: 600; }
.contacts { display: flex; gap: 8px; flex-wrap: wrap; }
.cbtn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; background: var(--panel);
  border: 1px solid var(--line-2); color: var(--hi); font-weight: 600; font-size: .86rem; transition: border-color .15s, background .15s;
}
.cbtn:hover { border-color: var(--red); color: var(--hi); background: var(--panel-2); }
.cbtn svg { width: 17px; height: 17px; }
.cbtn.wa svg { fill: #1faa53; }
.cbtn.teams svg { fill: #5b5fc7; }
.cbtn.mail svg, .cbtn.tel svg { stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cbtn.icon { padding: 8px; }
.profile-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.profile-head .who { flex: 1; min-width: 240px; }
.profile-head h1 { font-size: 2rem; }
.profile-head .role { color: var(--muted); font-size: 1.05rem; margin: 2px 0 14px; }
.localtime { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; text-align: right; min-width: 200px; box-shadow: var(--shadow); }
.localtime .clock { font-size: 2.1rem; color: var(--hi); font-weight: 600; line-height: 1.1; }
.localtime .diff { font-size: .8rem; color: var(--muted); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--hi); word-break: break-word; }

.cal-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.cal-day { flex: 0 0 auto; min-width: 66px; text-align: center; padding: 9px 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; color: var(--text); font-family: inherit; }
.cal-day:hover { border-color: var(--red); }
.cal-day b { display: block; font-size: 1.15rem; color: var(--hi); }
.cal-day span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cal-day small { display: block; font-size: .68rem; color: var(--ok); margin-top: 2px; }
.cal-day.on { border-color: var(--red); background: var(--red-soft); }
.cal-day.none { opacity: .45; cursor: default; }
.cal-day.none:hover { border-color: var(--line-2); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { padding: 9px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--hi); font-weight: 600; cursor: pointer; font-family: inherit; font-size: .88rem; }
.slot:hover { border-color: var(--red); color: var(--red-d); }
.slot.on { background: var(--red); border-color: var(--red); color: #fff; }
.slot[disabled] { cursor: default; }
.slot[disabled]:hover { border-color: var(--line-2); color: var(--hi); }
.slot small { display: block; font-weight: 400; font-size: .68rem; color: var(--muted); }
.slot.on small { color: #ffe1e2; }
.book-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: none; }
.book-form.open { display: block; }

/* ---------------- Suggestion box ---------------- */
.anon-badge { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--ok-soft); border: 1px solid #b6e2c8; margin-bottom: 20px; }
.anon-badge svg { width: 26px; height: 26px; flex: 0 0 26px; stroke: var(--ok); fill: none; stroke-width: 1.8; }
.anon-badge b { color: #17663b; }

/* ---------------- Login ---------------- */
.gate { display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100dvh; padding: 24px;
  background: radial-gradient(ellipse at top, #fdeeee 0%, var(--bg) 55%); }
.gate-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 12px; padding: 34px; box-shadow: var(--shadow-lg); text-align: center; }
.gate-card img { height: 30px; width: auto; margin: 0 auto 22px; }
.gate-card h1 { font-size: 1.4rem; margin-bottom: 8px; }
.gate-card p.lead { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; border-radius: 6px; padding: 12px 16px; font-size: .95rem; font-weight: 600; }
.btn-google:hover { background: #f7f8f8; color: #1f1f1f; border-color: #c4c7c5; }
.gate-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }

/* ---------------- Admin ---------------- */
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--text); display: block; box-shadow: var(--shadow); }
a.stat:hover { border-color: var(--red-line); color: var(--text); }
.stat b { display: block; font-size: 1.8rem; color: var(--hi); font-weight: 600; line-height: 1.2; }
.stat span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stat .alert-n { color: var(--red); }
.bar { height: 8px; background: var(--sunk); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.bar > i { display: block; height: 100%; background: var(--red); }
.bar > i.neutral { background: #a9a6a0; }
.big-num { color: var(--hi); font-size: 1.4rem; font-weight: 600; }
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.editor textarea { min-height: 520px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; }
.editor .preview { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 18px 22px; max-height: 620px; overflow-y: auto; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } }
.toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.toolbar button { background: var(--panel); border: 1px solid var(--line-2); color: var(--hi); border-radius: 5px; padding: 5px 10px; cursor: pointer; font-size: .8rem; font-family: inherit; }
.toolbar button:hover { border-color: var(--red); color: var(--red-d); }
.sugg { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.sugg + .sugg { margin-top: 12px; }
.sugg .body { white-space: pre-wrap; color: var(--hi); margin: 10px 0 14px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select, .inline-form input { width: auto; padding: 6px 8px; font-size: .82rem; }
details.row-edit summary { cursor: pointer; color: var(--muted); font-size: .8rem; list-style: none; }
details.row-edit summary::-webkit-details-marker { display: none; }
details.row-edit[open] summary { color: var(--red); }
.sugg-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sugg-item:last-child { border-bottom: 0; }
.reply { color: var(--red-d); }
