@import url('/fonts/fonts.css');
:root {
  --navy: #101D35; --navy-2: #18284A; --navy-3: #22355D;
  --gold: #C5A46D; --gold-2: #B08F57; --gold-soft: #F3EBDD;
  --white: #F7F7F5; --graphite: #252A32;
  --bg: #F3F2EE; --surface: #FFFFFF; --line: #E5E2DA; --line-2: #EFEDE7;
  --muted: #6B6F78; --muted-2: #9A9DA4;
  --ok: #2F7A55; --ok-soft: #E4F2EA; --warn: #A66A12; --warn-soft: #FBF0DC; --err: #B23A3A; --err-soft: #F9E3E3; --info: #2C5C9A; --info-soft: #E3ECF8;
  --r: 14px; --r-sm: 10px; --shadow: 0 1px 2px rgba(16, 29, 53, .05), 0 6px 24px -12px rgba(16, 29, 53, .18);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --serif: 'Playfair Display', Georgia, serif;
  --side: 252px; --top: 64px; --bottom: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--graphite); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.2; }
h1 { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: -.01em; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 8px; }
button, input, select, textarea { font: inherit; color: inherit; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .b { font-weight: 700; } .r { text-align: right; } .nowrap { white-space: nowrap; }
.hide { display: none !important; } .grow { flex: 1; min-width: 0; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; } .row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; } .stack-lg > * + * { margin-top: 18px; }
.gap { margin-top: 14px; }
/* ------------------------------------------------ shell */
#app { min-height: 100vh; }
.shell { min-height: 100vh; }
.side { display: none; }
.main { min-width: 0; padding-bottom: calc(var(--bottom) + 24px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 10px; padding: 0 14px; background: rgba(243, 242, 238, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .brand-m { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); text-decoration: none; }
.topbar .brand-m img { width: 30px; height: 30px; }
.search { position: relative; flex: 1; max-width: 520px; }
.search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px 0 38px; outline: none; }
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197, 164, 109, .18); }
.search > .i { position: absolute; left: 12px; top: 10px; color: var(--muted-2); }
.search .results { position: absolute; top: 46px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); max-height: 70vh; overflow: auto; padding: 6px; }
.search .results a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--graphite); }
.search .results a:hover, .search .results a.on { background: var(--bg); }
.search .results .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px 4px; }
.iconbtn { position: relative; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; color: var(--navy); text-decoration: none; flex: none; }
.iconbtn:hover { border-color: var(--gold); }
.iconbtn .dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--err); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg); }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--gold-soft); color: var(--navy); display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.content { padding: 18px 14px; max-width: 1280px; margin: 0 auto; }
.bnav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--bottom) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--navy); display: flex; }
.bnav a, .bnav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(247, 247, 245, .62); font-size: 11px; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; }
.bnav .on { color: var(--gold); }
.morelist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.morelist a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--navy); font-size: 13px; font-weight: 600; text-align: center; }
.morelist a .i { color: var(--gold-2); width: 24px; height: 24px; }
@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: var(--side) 1fr; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--navy); color: var(--white); padding: 18px 14px; overflow-y: auto; }
  .side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; color: var(--white); }
  .side .brand img { width: 38px; height: 38px; }
  .side .brand b { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: .01em; display: block; }
  .side .brand small { color: var(--gold); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
  .side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0; border-radius: 10px; color: rgba(247, 247, 245, .72); text-decoration: none; font-weight: 600; font-size: 14px; }
  .side nav a:hover { background: var(--navy-2); color: var(--white); }
  .side nav a.on { background: var(--navy-3); color: var(--white); box-shadow: inset 3px 0 0 var(--gold); }
  .side nav a.on .i { color: var(--gold); }
  .side nav .sec { margin: 18px 12px 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 247, 245, .4); }
  .side nav a .cnt { margin-left: auto; background: var(--gold); color: var(--navy); border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 800; }
  .side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .side .me .grow b { display: block; font-size: 13px; color: var(--white); } .side .me .grow span { font-size: 12px; color: var(--gold); }
  .side .me a { color: rgba(247, 247, 245, .6); }
  .topbar { padding: 0 24px; } .topbar .brand-m { display: none; }
  .bnav { display: none; }
  .main { padding-bottom: 40px; }
  .content { padding: 26px 28px; }
}
/* ------------------------------------------------ page header */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ph .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.ph .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.back .i { width: 16px; height: 16px; }
/* ------------------------------------------------ cards / kpis */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h2 { margin-bottom: 12px; } .card .ch { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; } .card .ch h2 { margin: 0; }
.card.pad0 { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: 1fr; } .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .g-side { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: inherit; display: block; box-shadow: var(--shadow); }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kpi .v { font-size: 24px; font-weight: 800; color: var(--navy); margin-top: 4px; letter-spacing: -.02em; }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.dark { background: var(--navy); border-color: var(--navy); } .kpi.dark .l { color: rgba(247, 247, 245, .6); } .kpi.dark .v { color: var(--white); } .kpi.dark .s { color: var(--gold); }
.kpi.gold { border-color: var(--gold); background: linear-gradient(180deg, #fffdf8, #fff); }
a.kpi:hover { border-color: var(--gold); }
/* ------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--navy); background: var(--navy); color: var(--white); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--navy-2); }
.btn .i { width: 18px; height: 18px; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); } .btn.gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn.ghost { background: var(--surface); color: var(--navy); border-color: var(--line); } .btn.ghost:hover { border-color: var(--gold); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.link { background: none; border: 0; color: var(--navy); padding: 0 6px; height: auto; text-decoration: underline; text-underline-offset: 3px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.xs { height: 28px; padding: 0 9px; font-size: 12px; border-radius: 7px; gap: 5px; } .btn.xs .i { width: 15px; height: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
/* ------------------------------------------------ forms */
.f { display: block; }
.f > span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; }
.f > span em { color: var(--err); font-style: normal; }
.f input:not([type=checkbox]):not([type=radio]), .f select, .f textarea, .inp { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 12px; outline: none; }
.f textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus, .inp:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197, 164, 109, .18); }
.f .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.fgrid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fgrid { grid-template-columns: repeat(2, 1fr); } .fgrid .full { grid-column: 1 / -1; } .fgrid.c3 { grid-template-columns: repeat(3, 1fr); } }
.fsec { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-2); font-weight: 800; margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.fsec::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); margin-top: 1px; flex: none; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cfd2d8; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--navy); } .switch input:checked + span::before { transform: translateX(20px); background: var(--gold); }
.formbar { position: sticky; bottom: calc(var(--bottom) + env(safe-area-inset-bottom)); background: rgba(243, 242, 238, .95); backdrop-filter: blur(8px); padding: 12px 0; margin-top: 18px; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--line); z-index: 5; }
@media (min-width: 960px) { .formbar { bottom: 0; } }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .inp, .filters select { width: auto; height: 38px; min-width: 130px; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 10px; }
.filters input.inp[type=search] { flex: 1; min-width: 180px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--graphite); cursor: pointer; text-decoration: none; white-space: nowrap; }
.chip.on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip .n { font-size: 11px; opacity: .7; }
/* ------------------------------------------------ badges */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--line-2); color: var(--graphite); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.err { background: var(--err-soft); color: var(--err); } .badge.info { background: var(--info-soft); color: var(--info); } .badge.gold { background: var(--gold-soft); color: #7a5d2b; } .badge.navy { background: var(--navy); color: var(--white); }
/* ------------------------------------------------ lists / tables */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.li:last-child { border-bottom: 0; }
a.li:hover, .li.click:hover { background: #FBFAF7; cursor: pointer; }
.li .t { font-weight: 700; color: var(--navy); } .li .d { font-size: 13px; color: var(--muted); }
.li .meta { text-align: right; font-size: 12px; color: var(--muted); flex: none; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FBFAF7; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click:hover td { background: #FBFAF7; cursor: pointer; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tfoot td { font-weight: 800; background: #FBFAF7; }
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty .big { font-weight: 800; color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.notice { border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; background: var(--info-soft); color: #1e3f6b; display: flex; gap: 10px; align-items: flex-start; }
.notice.warn { background: var(--warn-soft); color: #6e4609; } .notice.err { background: var(--err-soft); color: #7d2323; } .notice.ok { background: var(--ok-soft); color: #1d5239; } .notice.gold { background: var(--gold-soft); color: #5a4420; }
.notice .i { margin-top: 1px; }
/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs .on { color: var(--navy); border-bottom-color: var(--gold); }
.tabs .n { font-size: 11px; background: var(--line-2); border-radius: 999px; padding: 1px 6px; margin-left: 4px; }
/* detail */
.dl { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 640px) { .dl { grid-template-columns: repeat(2, 1fr); column-gap: 24px; } }
.dl > div { padding: 9px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.dl dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.dl dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.dl .full { grid-column: 1 / -1; }
.hero-c { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.contact-acts { display: flex; gap: 8px; flex-wrap: wrap; }
/* timeline */
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl .ev { position: relative; padding: 0 0 16px; }
.tl .ev::before { content: ''; position: absolute; left: -20px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); }
.tl .ev .h { font-size: 12px; color: var(--muted); } .tl .ev .x { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* ------------------------------------------------ properties */
.pgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.pcard:hover { border-color: var(--gold); }
.pcard .ph-img { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e9e5dc, #f6f3ec); display: grid; place-items: center; color: var(--muted-2); overflow: hidden; }
.pcard .ph-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard .ph-img .i { width: 40px; height: 40px; }
.pcard .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .code { font-size: 11.5px; color: var(--gold-2); font-weight: 800; letter-spacing: .06em; }
.pcard .ttl { font-weight: 800; color: var(--navy); }
.pcard .price { font-size: 18px; font-weight: 800; color: var(--navy); margin-top: auto; padding-top: 6px; }
.pcard .facts { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.pcard .st { position: absolute; top: 10px; left: 10px; }
.pcard .fav { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 0; display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.pcard .fav.on { color: var(--gold-2); } .pcard .fav.on .i { fill: var(--gold); }
.pcard .sel { position: absolute; bottom: 10px; right: 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery .g { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--line-2); border: 1px solid var(--line); }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery .g .ga { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 4px; justify-content: flex-end; }
.gallery .g .cover { position: absolute; top: 6px; left: 6px; }
.phero { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 8; background: linear-gradient(135deg, #e9e5dc, #f6f3ec); display: grid; place-items: center; color: var(--muted-2); }
.phero img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(8, 14, 27, .92); z-index: 120; display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox .x { top: 16px; right: 16px; } .lightbox .pv { left: 14px; top: 50%; } .lightbox .nx { right: 14px; top: 50%; }
.lightbox .cnt { position: absolute; bottom: 18px; color: #fff; font-size: 13px; }
.files .li .i { color: var(--gold-2); }
.drop { border: 2px dashed var(--line); border-radius: var(--r); padding: 18px; text-align: center; color: var(--muted); cursor: pointer; background: #FBFAF7; display: block; }
.drop:hover, .drop.over { border-color: var(--gold); color: var(--navy); }
.drop input { display: none; }
.progress { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; } .progress > i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .2s; }
/* ------------------------------------------------ kanban */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; min-height: 60vh; }
.kcol { flex: 0 0 280px; background: #ECEAE4; border-radius: var(--r); display: flex; flex-direction: column; max-height: calc(100vh - 220px); scroll-snap-align: start; }
.kcol .kh { padding: 12px 12px 8px; display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); font-size: 13.5px; }
.kcol .kh .n { margin-left: auto; font-size: 12px; background: var(--surface); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.kcol .kh .bar { width: 4px; height: 16px; border-radius: 4px; background: var(--gold); }
.kcol .kv { font-size: 12px; color: var(--muted); padding: 0 12px 8px; }
.kcol .kb { padding: 0 8px 10px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kcol.over { outline: 2px dashed var(--gold); outline-offset: -4px; }
.kcard { background: var(--surface); border-radius: 10px; padding: 10px 12px; border: 1px solid var(--line); cursor: grab; box-shadow: 0 1px 2px rgba(16, 29, 53, .05); }
.kcard:active { cursor: grabbing; } .kcard.dragging { opacity: .45; }
.kcard .t { font-weight: 800; color: var(--navy); font-size: 14px; }
.kcard .p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kcard .f { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.kcard .v { font-weight: 800; color: var(--graphite); margin-left: auto; }
.kcard.stale { border-left: 3px solid var(--warn); }
@media (max-width: 959px) { .kcol { flex-basis: 84vw; } }
/* ------------------------------------------------ agenda */
.calbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.calbar .ttl { font-weight: 800; color: var(--navy); font-size: 17px; text-transform: capitalize; min-width: 160px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg button, .seg a { border: 0; background: none; padding: 0 14px; height: 36px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.seg .on { background: var(--navy); color: var(--white); }
.month { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.month .dh { padding: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #FBFAF7; border-bottom: 1px solid var(--line); text-align: center; }
.month .dc { min-height: 92px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 6px; cursor: pointer; overflow: hidden; }
.month .dc:nth-child(7n) { border-right: 0; }
.month .dc.out { background: #FAFAF8; color: var(--muted-2); }
.month .dc .n { font-size: 12px; font-weight: 800; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.month .dc.today .n { background: var(--gold); color: var(--navy); }
.month .ev { font-size: 11.5px; padding: 2px 6px; margin-top: 3px; border-radius: 5px; background: var(--info-soft); color: #1e3f6b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month .ev.done { background: var(--ok-soft); color: var(--ok); text-decoration: line-through; } .month .ev.late { background: var(--err-soft); color: var(--err); } .month .ev.canc { background: var(--line-2); color: var(--muted); text-decoration: line-through; }
.month .more { font-size: 11px; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) { .month .dc { min-height: 58px; padding: 4px; } .month .ev { display: none; } .month .dc .dots { display: flex; gap: 3px; margin-top: 4px; flex-wrap: wrap; } .month .dc .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--info); } .month .dc .dots i.late { background: var(--err); } .month .dc .dots i.done { background: var(--ok); } .month .more { display: none; } }
@media (min-width: 641px) { .month .dc .dots { display: none; } }
.week { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 900px) { .week { grid-template-columns: repeat(7, 1fr); gap: 8px; } }
.week .wd { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-height: 120px; }
.week .wd.today { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(197, 164, 109, .25); }
.week .wd .wh { font-size: 12px; font-weight: 800; color: var(--navy); text-transform: capitalize; margin-bottom: 8px; display: flex; justify-content: space-between; cursor: pointer; }
.act { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 8px; cursor: pointer; align-items: flex-start; }
.act:hover { border-color: var(--gold); }
.act .tm { font-weight: 800; color: var(--navy); font-size: 13px; min-width: 44px; font-variant-numeric: tabular-nums; }
.act .tt { font-weight: 700; font-size: 14px; } .act .ds { font-size: 12.5px; color: var(--muted); }
.act.done { opacity: .7; } .act.done .tt { text-decoration: line-through; }
.act.late { border-left: 3px solid var(--err); } .act.canc { opacity: .5; }
.week .act { padding: 7px 8px; gap: 6px; } .week .act .tm { min-width: 0; font-size: 12px; } .week .act .tt { font-size: 12.5px; }
/* ------------------------------------------------ charts */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.bars .b i { display: block; width: 100%; max-width: 34px; background: var(--navy); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bars .b i.g { background: var(--gold); }
.bars .b span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.bars .b em { font-size: 10.5px; color: var(--graphite); font-style: normal; font-weight: 700; }
.hbars .hb { display: grid; grid-template-columns: 130px 1fr 54px; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; }
.hbars .hb .tr { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; } .hbars .hb .tr i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--navy-3)); border-radius: 99px; }
.hbars .hb.g .tr i { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.hbars .hb .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--graphite); } .hbars .hb .vl { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--navy); } .legend i.g { background: var(--gold); }
/* ------------------------------------------------ modal / toast */
.overlay { position: fixed; inset: 0; background: rgba(16, 29, 53, .45); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--surface); width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
.sheet h2 { margin-bottom: 14px; font-size: 19px; }
.sheet .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.sheet .mx { float: right; margin: -6px -4px 0 0; }
@media (min-width: 720px) { .overlay { align-items: center; } .sheet { width: min(620px, 94vw); border-radius: 18px; padding: 24px; } .sheet.wide { width: min(900px, 94vw); } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } } @keyframes fade { from { opacity: 0; } }
.toast { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom) + 18px + env(safe-area-inset-bottom)); background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); max-width: 92vw; animation: up .2s; }
.toast.err { background: var(--err); }
@media (min-width: 960px) { .toast { bottom: 28px; } }
.spin { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: rot .8s linear infinite; margin: 30px auto; }
@keyframes rot { to { transform: rotate(360deg); } }
.skel { height: 14px; background: linear-gradient(90deg, #eceae4, #f6f5f1, #eceae4); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; margin: 10px 0; }
@keyframes sk { to { background-position: -200% 0; } }
/* ------------------------------------------------ login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--navy); }
.login .art { display: none; }
.login .pane { display: flex; flex-direction: column; justify-content: center; padding: 40px 26px; max-width: 460px; margin: 0 auto; width: 100%; color: var(--white); }
.login .logo { width: 64px; height: 64px; margin-bottom: 26px; }
.login h1 { color: var(--white); font-size: 34px; } .login h1 span { color: var(--gold); }
.login .lead { color: rgba(247, 247, 245, .7); margin: 10px 0 30px; font-size: 15.5px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; height: 52px; border-radius: 12px; background: #fff; color: #1f1f1f; font-weight: 700; text-decoration: none; font-size: 15px; border: 0; }
.gbtn:hover { background: #f1f1f1; }
.gbtn svg { width: 20px; height: 20px; }
.login .fine { font-size: 12.5px; color: rgba(247, 247, 245, .5); margin-top: 22px; line-height: 1.6; }
.login .notice { margin-bottom: 18px; }
@media (min-width: 960px) {
  .login { grid-template-columns: 1.1fr 1fr; }
  .login .art { display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; background: radial-gradient(1200px 600px at 20% 10%, #1c2f57 0%, transparent 60%), linear-gradient(160deg, #13213D, #0B1427); position: relative; overflow: hidden; color: var(--white); }
  .login .art::before { content: ''; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border: 1px solid rgba(197, 164, 109, .25); border-radius: 50%; }
  .login .art::after { content: ''; position: absolute; right: -40px; top: -40px; width: 360px; height: 360px; border: 1px solid rgba(197, 164, 109, .18); border-radius: 50%; }
  .login .art blockquote { font-family: var(--serif); font-size: 30px; line-height: 1.3; margin: 0 0 18px; max-width: 520px; }
  .login .art .feat { display: flex; gap: 28px; color: rgba(247, 247, 245, .65); font-size: 13.5px; }
  .login .art .feat b { display: block; color: var(--gold); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
  .login .pane { background: var(--bg); color: var(--graphite); max-width: none; padding: 56px 9vw; }
  .login .pane h1 { color: var(--navy); } .login .pane .lead { color: var(--muted); } .login .pane .fine { color: var(--muted); }
  .login .pane .gbtn { border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 380px; }
}
/* ------------------------------------------------ chat (IA) */
.chat { display: flex; flex-direction: column; height: calc(100vh - var(--top) - var(--bottom) - 140px); min-height: 420px; }
@media (min-width: 960px) { .chat { height: calc(100vh - var(--top) - 150px); } }
.chat .msgs { flex: 1; overflow-y: auto; padding: 6px 2px 14px; display: flex; flex-direction: column; gap: 12px; }
.bub { max-width: 86%; padding: 12px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.bub.u { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.bub.a { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bub.a p { margin: 0 0 8px; } .bub.a p:last-child { margin: 0; } .bub.a ul, .bub.a ol { margin: 4px 0 8px; padding-left: 20px; } .bub.a li { margin: 2px 0; }
.bub.a h4 { font-size: 14px; margin: 10px 0 4px; }
.bub .tag-c { background: var(--ok-soft); color: var(--ok); font-weight: 800; font-size: 11px; padding: 1px 6px; border-radius: 5px; }
.bub .tag-s { background: var(--gold-soft); color: #7a5d2b; font-weight: 800; font-size: 11px; padding: 1px 6px; border-radius: 5px; }
.bub .tools { font-size: 11.5px; color: var(--muted); margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 6px; }
.chat form { display: flex; gap: 8px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.chat textarea { flex: 1; border: 0; outline: none; resize: none; min-height: 42px; max-height: 160px; padding: 10px 8px; background: transparent; }
.sugs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.sugs button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 12px; font-size: 13px; cursor: pointer; color: var(--navy); font-weight: 600; text-align: left; }
.sugs button:hover { border-color: var(--gold); }
.typing { display: inline-flex; gap: 4px; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: bl 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bl { 50% { opacity: .2; } }
/* notificações */
.nt { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; cursor: pointer; }
.nt.unread { background: #FFFCF6; } .nt.unread .t::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 6px; vertical-align: 1px; }
.nt .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--navy); flex: none; }
.nt .t { font-weight: 700; color: var(--navy); font-size: 14px; } .nt .d { font-size: 13px; color: var(--muted); white-space: pre-wrap; } .nt .w { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
/* permissões */
.perm { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.perm .grow b { display: block; font-size: 14px; } .perm .grow span { font-size: 12.5px; color: var(--muted); }
.tagsedit { display: flex; flex-wrap: wrap; gap: 6px; }
.tagsedit .tg { display: inline-flex; align-items: center; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; }
.tagsedit .tg button { border: 0; background: none; cursor: pointer; color: var(--muted); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; }
.tagsedit .tg button:hover { background: var(--err-soft); color: var(--err); }
.split-row { display: grid; grid-template-columns: 1fr 90px 120px 36px; gap: 8px; align-items: end; margin-bottom: 8px; }
@media (max-width: 640px) { .split-row { grid-template-columns: 1fr 80px; } .split-row .sdate { grid-column: 1; } }
.diff { font-size: 12px; background: #FBFAF7; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; margin-top: 4px; overflow-wrap: anywhere; }
.diff b { color: var(--muted); font-weight: 700; } .diff del { color: var(--err); } .diff ins { color: var(--ok); text-decoration: none; }
.sel-bar { position: sticky; bottom: calc(var(--bottom) + 10px + env(safe-area-inset-bottom)); z-index: 6; background: var(--navy); color: var(--white); border-radius: 14px; padding: 10px 12px 10px 16px; display: flex; align-items: center; gap: 10px; margin-top: 14px; box-shadow: var(--shadow); }
@media (min-width: 960px) { .sel-bar { bottom: 16px; } }
@media print { .side, .bnav, .topbar, .no-print { display: none !important; } body { background: #fff; } }
