/* Шрифты лежат на самом сайте: не зависим от Google */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/inter-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/inter-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/inter-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/inter-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/inter-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/inter-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/inter-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/inter-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Caveat; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/caveat-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Caveat; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/caveat-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Caveat; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/caveat-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Caveat; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/caveat-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #F5F5F7;
  --card: #FFFFFF;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --line: #E5E5EA;
  --blue: #0071E3;
  --blue-dark: #0058B0;
  --red: #FF3B30;
  --red-text: #D70015;
  --orange: #FF9500;
  --orange-text: #A05A00;
  --green-text: #1E7B34;
  --curve: #B4B9C4;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(30,50,100,.08);
  --pop: 0 2px 6px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.16);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
b { font-weight: 600; }

/* ---------- каркас */
.shell { display: flex; min-height: 100vh; }
.side { flex: 0 0 236px; padding: 20px 12px; background: rgba(236,236,240,.7); border-right: 1px solid rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.brand i { width: 30px; height: 30px; border-radius: 8px; display: flex; overflow: hidden; box-shadow: 0 2px 6px rgba(30,43,107,.35); }
.brand i img { display: block; }
.nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 14px; text-decoration: none !important; }
.nav:hover { background: rgba(0,0,0,.04); color: var(--text); }
.nav.on { background: rgba(0,0,0,.07); font-weight: 600; }
.nav .soon { margin-left: auto; font-size: 11px; color: var(--muted); }
.nav.off { color: var(--muted); }
.side .who { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(0,0,0,.06); font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.main { flex: 1 1 auto; min-width: 0; padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.tabbar { display: none; }

h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.8px; }
h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1 1 auto; }

.btn { height: 34px; padding: 0 14px; border-radius: 17px; border: 0; background: rgba(0,0,0,.06); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { background: rgba(0,0,0,.10); }
.btn.primary { background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; padding: 0 18px; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.danger { color: var(--red-text); }
.btn.small { height: 28px; padding: 0 10px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: default; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.av { width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 2px solid #fff; }
.avs { display: inline-flex; align-items: center; }
.avs .av + .av { margin-left: -7px; }
.av.plus { background: #fff; color: var(--blue); font-size: 16px; font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,.14); margin-left: 4px !important; cursor: pointer; }

/* ---------- вход */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login form { width: 100%; max-width: 360px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- формы */
.f { display: flex; flex-direction: column; gap: 4px; }
.f > span { font-size: 12px; color: var(--muted); }
.f input:not([type=checkbox]), .f select, .f textarea { height: 38px; border-radius: 10px; border: 0; background: #F2F2F7; padding: 0 12px; font-size: 14px; outline: none; width: 100%; }
.f textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { box-shadow: 0 0 0 2px rgba(0,113,227,.35); }
.f .hint { font-size: 12px; color: var(--muted); }
.f.check { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 14px; }
.f.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--blue); }
.err { color: var(--red-text); font-size: 13px; min-height: 0; }

/* ---------- окна и меню */
.veil { position: fixed; inset: 0; background: rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.dialog { width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 18px; box-shadow: var(--pop); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.dialog h3 { margin: 0; font-size: 17px; font-weight: 700; }
.dialog .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.menu { position: fixed; z-index: 40; min-width: 210px; max-width: 280px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: var(--pop); display: flex; flex-direction: column; font-size: 14px; }
.menu button { text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; }
.menu button:hover { background: rgba(0,113,227,.10); color: var(--blue-dark); }
.menu button.danger { color: var(--red-text); }
.menu button.danger:hover { background: rgba(255,59,48,.08); }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 4px 6px; }
.menu .mtitle { font-size: 12px; color: var(--muted); padding: 6px 10px 4px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: rgba(29,29,31,.92); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; max-width: calc(100vw - 32px); }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; }
.sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor; }

/* ---------- список проектов */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pcard { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none !important; }
.pcard:hover { box-shadow: 0 0 0 2px rgba(0,113,227,.25), var(--shadow); color: var(--text); }
.pcard .name { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.badge { font-size: 12px; font-weight: 600; border-radius: 10px; padding: 2px 8px; }
.badge.hot { color: var(--orange-text); background: #FFF2E0; }
.badge.over { color: var(--red-text); background: #FDECEA; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ---------- схема */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-right: auto; min-width: 0; }
.crumbs b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zoom { display: inline-flex; align-items: center; height: 34px; border-radius: 17px; background: rgba(0,0,0,.06); font-size: 13px; padding: 0 4px; }
.zoom button { width: 26px; height: 26px; border: 0; background: transparent; font-size: 16px; }
.field { position: relative; flex: 1 1 auto; min-height: 520px; background: #FBFBFD; border-radius: 22px; overflow: auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); background-image: radial-gradient(rgba(0,0,0,.07) 1px, transparent 1px); background-size: 22px 22px; }
.board { position: relative; transform-origin: 0 0; }
.board svg.curves { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.curves path { fill: none; stroke: var(--curve); stroke-width: 2; stroke-linecap: round; }
.curves path.dash { stroke-dasharray: 4 5; }

.info { position: absolute; left: 24px; top: 24px; width: 330px; padding: 16px 18px; border-radius: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; z-index: 2; }
.info .ttl { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.info .ttl b { font-size: 22px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
.info .ln { font-size: 13px; color: #4A5060; }
.info .ln.old { color: #8E8E93; }
.info .ln.cur { color: var(--text); font-weight: 600; }
.chipl { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 12px; background: rgba(0,113,227,.12); text-decoration: none !important; display: inline-flex; align-items: center; gap: 4px; }
.chipl.ghost { background: rgba(0,0,0,.06); color: #4A5060; border: 0; }

.dhead { position: absolute; width: 236px; height: 56px; border-radius: 16px; padding: 0 8px 0 10px; display: flex; align-items: center; gap: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.05); cursor: grab; user-select: none; touch-action: none; z-index: 3; }
.dhead.drag { cursor: grabbing; box-shadow: var(--pop); }
.dhead .t { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.25; }
.dhead .t small { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(0,0,0,.06); font-size: 15px; font-weight: 700; letter-spacing: 1px; line-height: 1; flex: 0 0 auto; }
.dots:hover { background: rgba(0,0,0,.12); }
.addb { position: absolute; height: 32px; padding: 0 12px; border-radius: 16px; border: 1.5px dashed; background: rgba(255,255,255,.6); font-size: 13px; font-weight: 500; white-space: nowrap; z-index: 3; }
.addb:hover { background: #fff; }
.more { position: absolute; height: 36px; border-radius: 18px; border: 0; font-size: 13px; font-weight: 600; z-index: 3; }

.node { position: absolute; border-radius: 14px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; z-index: 2; background: var(--fill); }
.node:hover { box-shadow: 0 0 0 2px var(--ring, rgba(0,113,227,.25)); }
.node .lab { font-size: 10px; font-weight: 600; letter-spacing: .5px; color: var(--lab); text-transform: uppercase; }
.node .tt { font-size: 14px; font-weight: 600; line-height: 1.3; display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; }
.node .ln { font-size: 13px; line-height: 17px; }
.node .ln.muted { color: #5A5F6B; font-size: 12px; }
.node .ln.hot { color: var(--orange-text); font-weight: 600; }
.node .ln.over { color: var(--red-text); font-weight: 600; }
.node .ln.check { font-size: 12px; }
.node .ln.check::first-letter { color: var(--green-text); font-weight: 700; }
.node .ln.ok { color: var(--green-text); font-weight: 600; font-size: 12px; }
.node .amt { font-size: 15px; font-weight: 700; }
.node .lot { font-size: 12px; line-height: 16px; color: #3A3F4B; }
.node .lot b { color: var(--lab); }
.node .chips { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.node .chip { align-self: flex-start; font-size: 11px; line-height: 15px; padding: 2px 7px; border-radius: 7px; background: rgba(255,255,255,.75); color: #5A5F6B; }
.node .chip.ok { color: var(--green-text); }
.node .chip.tag { color: #6B4FA0; background: #EFE6FB; font-weight: 600; }
.node .links { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.node .links a { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 10px; background: rgba(0,113,227,.12); }
.node.root { padding: 10px 12px; }
.node.st-hot { background: #fff; box-shadow: 0 0 0 1.5px var(--orange), 0 4px 14px rgba(255,149,0,.18); }
.node.st-hot .lab { color: var(--orange-text); }
.node.st-overdue { background: #fff; box-shadow: 0 0 0 1.5px var(--red), 0 4px 14px rgba(255,59,48,.18); }
.node.st-overdue .lab { color: var(--red-text); }
.node.st-off { opacity: .6; }
.node.st-off .ln { color: var(--muted); }
.node.st-dash { background: transparent; border: 1.5px dashed var(--dash); }
.node.st-done { opacity: .75; }
.sticker { position: absolute; width: 180px; cursor: grab; touch-action: none; user-select: none; z-index: 4; filter: drop-shadow(0 1px 1px rgba(0,0,0,.10)) drop-shadow(0 6px 8px rgba(0,0,0,.12)); }
.sticker.tilt-l { transform: rotate(-1.6deg); }
.sticker.tilt-r { transform: rotate(1.4deg); }
.sticker .paper { position: relative; min-height: 64px; padding: 14px 14px 18px 12px; background: var(--paper, #C4C9FF); background-image: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 40%); font-family: Caveat, cursive; font-size: 20px; line-height: 21px; color: #2B2A26; white-space: pre-wrap; word-break: break-word;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); }
.sticker .paper::after { content: ""; position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; background: linear-gradient(315deg, transparent 50%, rgba(0,0,0,.16) 50%, rgba(0,0,0,.05) 100%); border-top-left-radius: 3px; }
.sticker::before { content: ""; position: absolute; left: 50%; top: -7px; width: 54px; height: 16px; margin-left: -27px; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.04); transform: rotate(-3deg); z-index: 1; }
.sticker.demo { position: relative; margin-top: 18px; cursor: default; }
.setbox { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.setbox p { margin: 0; font-size: 14px; }
.stsw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #8E8E93; }
.gear { width: 34px; padding: 0; justify-content: center; color: #3A3F4B; flex: 0 0 auto; }
.gear:hover { color: var(--text); }

/* список вместо схемы (телефон) */
.list { display: flex; flex-direction: column; gap: 16px; }
.lsec { display: flex; flex-direction: column; gap: 8px; }
.lsec .dhead { position: relative; width: 100%; cursor: default; }
.lsec .addrow { display: flex; gap: 8px; flex-wrap: wrap; }
.lsec .addb { position: relative; }
.lchain { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 16px; padding: 8px; box-shadow: var(--shadow); }
.lchain .node { position: relative; width: auto !important; left: auto !important; top: auto !important; }
.lchain .node.d1 { margin-left: 14px; }
.lchain .node.d2 { margin-left: 28px; }
.linfo { position: relative; left: auto; top: auto; width: 100%; }

/* ---------- админ */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table th { font-size: 12px; color: var(--muted); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table tr.excl td { color: var(--muted); }

/* ---------- телефон */
@media (max-width: 760px) {
  .side { display: none; }
  .main { padding: 14px 16px 100px; gap: 12px; }
  h1 { font-size: 30px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); position: fixed; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding: 8px 4px env(safe-area-inset-bottom); background: rgba(249,249,251,.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(0,0,0,.08); z-index: 30; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 500; color: #8E8E93; text-decoration: none; }
  .tabbar a.on { color: var(--blue); }
  .field { min-height: 70vh; border-radius: 16px; }
  .toolbar .hide-m { display: none; }
  .dialog { max-width: none; }
  .table th:nth-child(2), .table td:nth-child(2) { display: none; }
}

/* ---------- задачи, календарь, главная, справочник */
.upper { text-transform: uppercase; font-size: 13px; font-weight: 600; letter-spacing: .3px; }
h2.red { color: var(--red-text); }
h2.orange { color: var(--orange-text); }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { height: 30px; padding: 0 12px; border-radius: 15px; border: 0; background: rgba(0,0,0,.06); font-size: 13px; font-weight: 500; color: #3A3F4B; }
.fchip.on { background: var(--blue); color: #fff; }
.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: rgba(118,118,128,.12); }
.seg button { height: 30px; padding: 0 12px; border-radius: 7px; border: 0; background: transparent; font-size: 13px; }
.seg button.on { background: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.psel { height: 34px; border-radius: 10px; border: 0; background: rgba(0,0,0,.06); padding: 0 10px; max-width: 240px; }
.tlist { display: flex; flex-direction: column; padding: 2px 0; }
.trow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: rgba(0,113,227,.04); }
.trow.done .ttitle { text-decoration: line-through; color: var(--muted); }
.tcirc { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C7C7CC; background: transparent; flex: 0 0 auto; padding: 0; font-size: 12px; color: var(--green-text); font-weight: 700; }
.tcirc:not([disabled]):hover { background: rgba(52,199,89,.15); }
.tbody { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ttitle { font-size: 15px; line-height: 1.3; }
.tsub { font-size: 13px; color: var(--muted); }
.tst { font-weight: 600; }
.tst.overdue { color: var(--red-text); }
.tst.hot, .tst.awaiting { color: var(--orange-text); }
.pay { color: var(--orange-text); }
.tempty { padding: 12px 14px; color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 640px; }
.stat { padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; color: var(--text); text-decoration: none !important; }
.stat .dot { width: 28px; height: 28px; border-radius: 50%; }
.stat b { font-size: 24px; justify-self: end; }
.stat span:last-child { grid-column: 1 / -1; font-size: 14px; font-weight: 600; color: var(--muted); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wcol { min-height: 160px; display: flex; flex-direction: column; overflow: hidden; }
.wcol.today { box-shadow: 0 0 0 2px var(--blue), var(--shadow); }
.whead { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px 6px; font-size: 13px; color: var(--muted); }
.whead b { font-size: 18px; color: var(--text); }
.whead.off b, .whead.off span { color: var(--red-text); }
.wcol .trow { padding: 8px 10px; gap: 8px; align-items: flex-start; }
.wcol .ttitle { font-size: 13px; }
.wcol .tsub { font-size: 11px; }
.wcol .tcirc { width: 18px; height: 18px; margin-top: 1px; }
.wcol .av { display: none; }
.cal { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.cgrid { padding: 8px; }
.cwd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; font-size: 12px; font-weight: 600; color: #8E8E93; padding: 4px 0 6px; }
.cdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cday { min-height: 92px; border: 0; background: #FAFAFC; border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 2px; text-align: left; overflow: hidden; }
.cday:hover { background: #F0F4FB; }
.cday.other { opacity: .45; }
.cday.off .cnum { color: var(--red-text); }
.cday.today .cnum { background: var(--blue); color: #fff; border-radius: 12px; padding: 0 7px; }
.cday.sel { box-shadow: 0 0 0 2px var(--blue); background: #fff; }
.cnum { font-size: 14px; font-weight: 600; align-self: flex-start; line-height: 22px; }
.citem { font-size: 11px; line-height: 14px; padding: 1px 5px 1px 6px; border-left: 3px solid var(--c); border-radius: 3px; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.citem.done { text-decoration: line-through; color: var(--muted); }
.cmore { font-size: 11px; color: var(--muted); padding-left: 6px; }
.cdots { display: flex; gap: 3px; justify-content: center; }
.cdots i { width: 5px; height: 5px; border-radius: 50%; }
.cday-list { display: flex; flex-direction: column; gap: 10px; }
.search { flex: 1 1 260px; height: 40px; border-radius: 12px; border: 0; background: #fff; box-shadow: var(--shadow); padding: 0 14px; font-size: 15px; outline: none; }
.search:focus { box-shadow: 0 0 0 2px rgba(0,113,227,.35), var(--shadow); }
.rsec { background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.rsec summary { padding: 14px 16px; display: flex; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; font-size: 15px; }
.rsec summary::-webkit-details-marker { display: none; }
.rsec[open] summary { border-bottom: 1px solid var(--line); }
.rlist { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #FAFAFC; border-radius: 0 0 16px 16px; }
.rcard { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.rid { font-size: 12px; font-weight: 700; color: var(--blue-dark); background: #E8F1FD; border-radius: 8px; padding: 2px 8px; }
.ract { font-size: 15px; }
.rrow { display: grid; grid-template-columns: 140px 1fr; gap: 10px; font-size: 14px; line-height: 1.4; }
.rrow > span { font-weight: 600; color: var(--muted); font-size: 13px; }
@media (max-width: 1100px) { .cal { grid-template-columns: 1fr; } .week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cday { min-height: 48px; align-items: center; padding: 4px 2px; background: transparent; }
  .cday .cnum { align-self: center; }
  .cdays { gap: 2px; }
  .rrow { grid-template-columns: 1fr; gap: 2px; }
  .stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .stat { padding: 10px; }
  .stat b { font-size: 20px; }
  .stat .dot { width: 22px; height: 22px; }
  .stat span:last-child { font-size: 12px; }
}
.over-banner { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; color: var(--red-text); text-decoration: none !important; background: #FDECEA; box-shadow: none; }
.over-banner span { font-size: 13px; }

/* масштаб и сворачивание */
.fieldwrap { position: relative; flex: 1 1 auto; display: flex; min-height: 520px; }
.fieldwrap .field { flex: 1 1 auto; }
.sizer { position: relative; overflow: hidden; }
.zoombox { position: absolute; right: 16px; bottom: 16px; z-index: 10; display: flex; align-items: center; gap: 2px; height: 40px; padding: 0 6px; border-radius: 20px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--pop); font-size: 13px; font-weight: 500; }
.zoombox button { height: 30px; min-width: 30px; border: 0; border-radius: 15px; background: transparent; font-size: 17px; }
.zoombox button.txt { font-size: 13px; font-weight: 600; color: var(--blue); padding: 0 10px; }
.zoombox button:hover { background: rgba(0,0,0,.06); }
.zoombox span { min-width: 42px; text-align: center; }
.zoombox i { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.fold { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(0,0,0,.06); font-size: 18px; font-weight: 600; line-height: 1; flex: 0 0 auto; }
.fold:hover { background: rgba(0,0,0,.12); }
@media (max-width: 760px) { .fieldwrap { min-height: 70vh; } .zoombox { right: 10px; bottom: 10px; } }
.main.mapmode { height: 100vh; }
.main.mapmode .fieldwrap { min-height: 0; }
.fieldwrap .field { position: absolute; inset: 0; min-height: 0; }
.dhead .fold, .dhead .dots { width: 24px; height: 24px; font-size: 14px; }
.dhead .fold { font-size: 16px; }
@media (max-width: 760px) { .main.mapmode { height: auto; } .main.mapmode .fieldwrap { min-height: 72vh; } }

.main { position: relative; }
@media (max-width: 760px) {
  .main > .hashead { padding-right: 44px; }
  .main > .hashead > [data-gear] { position: absolute; top: 14px; right: 16px; }
}
.setbox .seg { align-self: flex-start; flex-wrap: wrap; }

.ptools { gap: 10px; }
.psearch { flex: 1 1 260px; max-width: 420px; height: 36px; font-size: 14px; }
.pcard { user-select: none; }
.pcard.pplace { opacity: .35; }
.pghost { position: fixed; z-index: 70; pointer-events: none; transform: rotate(1.5deg); box-shadow: var(--pop); }
.archbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #FFF7E6; box-shadow: none; flex-wrap: wrap; }

.setlink { flex-direction: row; align-items: center; justify-content: space-between; color: var(--text); text-decoration: none !important; }
.setlink:hover { box-shadow: 0 0 0 2px rgba(0,113,227,.25), var(--shadow); color: var(--text); }
.setlink h2 { margin-bottom: 6px; }
.setlink .chev { font-size: 26px; color: #C7C7CC; }
.clog { display: flex; flex-direction: column; padding: 0 16px; max-width: 900px; }
.clrow { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.clrow:last-child { border-bottom: 0; }
.clwhen { font-size: 13px; color: var(--muted); padding-top: 2px; }
.clbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.clhead { font-size: 15px; }
.cldet { font-size: 13px; color: #4A5060; line-height: 1.45; word-break: break-word; }
.clico { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700; margin-right: 6px; background: #EEF0F5; color: #4A5060; vertical-align: 1px; }
.clico.add { background: #E5F4EA; color: var(--green-text); }
.clico.remove { background: #FDECEA; color: var(--red-text); }
.clico.done { background: #E8F1FD; color: var(--blue-dark); }
@media (max-width: 760px) { .clrow { grid-template-columns: 1fr; gap: 4px; } }

/* «Мои настройки»: группы строк, как в настройках iPhone */
.gwrap { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.gsec { display: flex; flex-direction: column; gap: 6px; }
.ghead { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; padding: 0 16px; }
.gfoot { font-size: 12px; color: #8E8E93; padding: 0 16px; line-height: 16px; }
.gfoot:empty { display: none; }
.glist { background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; margin: 0; }
.grow { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; font-size: 15px; color: var(--text); text-decoration: none !important; width: 100%; box-sizing: border-box; }
.grow:last-child { border-bottom: 0; }
button.grow:hover, a.grow:hover { background: #F7F7F9; color: var(--text); }
.gtxt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.gtxt small { font-size: 12.5px; color: var(--muted); }
.gval { color: var(--muted); }
.gchev { color: #C7C7CC; font-size: 20px; line-height: 1; }
.gblue { color: var(--blue); font-weight: 600; }
.gred { color: var(--red-text); }
.gform input { flex: 1 1 auto; height: 36px; border-radius: 9px; border: 0; background: #F2F2F7; padding: 0 12px; font-size: 14px; outline: none; min-width: 0; }
.gform input:focus { box-shadow: 0 0 0 2px rgba(0,113,227,.35); }
.gchips { flex-wrap: wrap; gap: 6px; padding: 12px 16px; }
.gchips .fchip { height: 28px; font-size: 12.5px; }
.tog { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 16px; background: #E9E9EB; position: relative; cursor: pointer; flex: 0 0 auto; margin: 0; transition: background .2s; }
.tog::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: left .2s; }
.tog:checked { background: #34C759; }
.tog:checked::after { left: 22px; }
.tog:disabled { opacity: .5; cursor: default; }
.glist .grow { background: #fff; }
.glist button.grow:hover, .glist a.grow:hover { background: #F7F7F9; }

/* ===== выполненные и снятые блоки: плотные, с тонким контуром, бледнеет только текст */
.node.st-done, .node.st-off { opacity: 1; box-shadow: 0 0 0 1px color-mix(in srgb, var(--lab) 35%, transparent); }
.node.st-done > *, .node.st-off > * { opacity: .5; }
[data-theme="minimal"] .node.st-done, [data-theme="minimal"] .node.st-off { box-shadow: none; border-color: #D2CEC6; border-left-color: var(--lab); }

/* ===== поле схемы: цвет и узор из «Моих настроек» (переменные ставит страница) */
.field { background-color: var(--field-bg, #FBFBFD); background-image: var(--field-pat, radial-gradient(rgba(0,0,0,.07) 1px, transparent 1px)); background-size: var(--field-size, 22px 22px); }

/* ===== ползунки вместо галочек */
.f.tgl { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.f.tgl > span { font-size: 14px; color: var(--text); }
.tglrow { cursor: pointer; }
.tog.tog-s { width: 40px; height: 24px; border-radius: 12px; }
.tog.tog-s::after { width: 20px; height: 20px; }
.tog.tog-s:checked::after { left: 18px; }

/* ===== выпадающий список по образцу: значок, текст, галочка у выбранного */
.pick { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--text); cursor: pointer; max-width: 100%; min-width: 0; }
.pick:hover { border-color: #C7C7CC; }
.pick:focus-visible { outline: 2px solid rgba(0,113,227,.45); outline-offset: 1px; }
.pick .pl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .pc { color: var(--muted); font-size: 12px; margin-left: 2px; }
.pick[disabled] { opacity: .45; cursor: default; }
.pico { width: 20px; height: 20px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.pico .swc { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.pickmenu { position: fixed; z-index: 45; min-width: 220px; max-width: 320px; max-height: 60vh; overflow: auto; padding: 6px; border-radius: 14px; background: #fff; box-shadow: var(--pop); display: flex; flex-direction: column; }
.pickmenu button { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--text); }
.pickmenu button:hover { background: #F2F2F7; }
.pickmenu button.on { background: color-mix(in srgb, var(--blue) 9%, #fff); color: var(--blue-dark); font-weight: 600; }
.pickmenu button .ok { margin-left: auto; color: var(--blue); }
.grow .pick { margin-left: auto; border: 0; background: transparent; padding-right: 0; color: var(--muted); }
.grow .pick:hover { color: var(--text); }
.gtxt.off { opacity: .45; }

/* ===== стикер: размер тянется за уголок */
.sticker .paper { height: 100%; overflow: hidden; }
.sticker .sgrip { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; cursor: nwse-resize; z-index: 3; touch-action: none; opacity: 0; transition: opacity .15s; }
.sticker .sgrip::before { content: ""; position: absolute; right: 7px; bottom: 7px; width: 9px; height: 9px; border-right: 2px solid rgba(0,0,0,.35); border-bottom: 2px solid rgba(0,0,0,.35); }
.sticker:hover .sgrip, .sticker.resizing .sgrip { opacity: 1; }
@media (hover: none) { .sticker .sgrip { opacity: .8; } }
.sticker.demo.square { width: 150px; height: 150px; }
.sticker.demo.rect { width: 200px; height: auto; }

/* ===== живой логотип */
.brand i svg { display: block; width: 30px; height: 30px; }

/* ===== анимация схемы: направление по нажатию раскрывает ветку */
.board.animode .dhead { cursor: pointer; }
.board.animode .dhead.drag { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { .board * { animation: none !important; transition: none !important; } }

/* ================= ТЕМА «МИНИМАЛИЗМ» ================= */
@font-face { font-family: Jost; font-style: normal; font-weight: 300; font-display: swap; src: url(/static/fonts/jost-cyrillic-300-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Jost; font-style: normal; font-weight: 300; font-display: swap; src: url(/static/fonts/jost-latin-300-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Jost; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/jost-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Jost; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/jost-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Jost; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/jost-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Jost; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/jost-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* ===== Тема «Минимализм» ===== */
:root[data-theme="minimal"] {
  --bg: #F6F5F2; --card: #FFFFFF; --text: #1B1B1B; --muted: #8B877F; --line: #E6E3DD;
  --blue: #1B1B1B; --blue-dark: #000; --accent: #3F5BA9;
  --red: #C24A30; --red-text: #B23F27; --orange: #D9A03A; --orange-text: #9C6B12; --green-text: #3E7A4E;
  --radius: 3px; --shadow: none; --pop: 0 12px 40px rgba(0,0,0,.10);
}
[data-theme="minimal"] body, [data-theme="minimal"] html { font-family: Jost, Inter, sans-serif; font-size: 15px; letter-spacing: .1px; background: var(--bg); }
[data-theme="minimal"] .card { border: 1px solid var(--line); box-shadow: none; border-radius: 3px; }
[data-theme="minimal"] h1 { font-weight: 300; font-size: 40px; letter-spacing: -.2px; position: relative; }
[data-theme="minimal"] .main > .row:first-child h1::before, [data-theme="minimal"] .hashead h1::before { content: ""; display: block; width: 36px; height: 2px; background: var(--accent); margin: 2px 0 14px; }
[data-theme="minimal"] h2 { font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: 2.2px; }
[data-theme="minimal"] .upper, [data-theme="minimal"] .muted { letter-spacing: .3px; }
/* меню слева */
[data-theme="minimal"] .side { background: #FFFFFF; border-right: 1px solid var(--line); padding: 28px 0; }
[data-theme="minimal"] .brand { padding: 0 28px 34px; font-weight: 500; font-size: 18px; letter-spacing: 1.5px; }
[data-theme="minimal"] .brand i { border-radius: 2px; box-shadow: none; }
[data-theme="minimal"] .nav { border-radius: 0; padding: 11px 28px; font-size: 13px; text-transform: uppercase; letter-spacing: 1.8px; color: var(--muted); border-left: 2px solid transparent; }
[data-theme="minimal"] .nav svg { opacity: .7; }
[data-theme="minimal"] .nav:hover { background: transparent; color: var(--text); }
[data-theme="minimal"] .nav.on { background: #F6F5F2; color: var(--text); font-weight: 500; border-left-color: var(--accent); }
[data-theme="minimal"] .main { padding: 36px 48px; gap: 18px; }
/* кнопки, фильтры */
[data-theme="minimal"] .btn { border-radius: 2px; background: transparent; border: 1px solid var(--line); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; }
[data-theme="minimal"] .btn.primary { background: #1B1B1B; color: #fff; border-color: #1B1B1B; font-size: 12px; font-weight: 500; padding: 0 20px; height: 38px; }
[data-theme="minimal"] .btn.primary:hover { background: var(--accent); border-color: var(--accent); }
[data-theme="minimal"] .gear { border: 0; border-radius: 50%; }
[data-theme="minimal"] .fchip { border-radius: 2px; background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; letter-spacing: .4px; }
[data-theme="minimal"] .fchip.on { background: transparent; color: var(--text); border-color: #1B1B1B; box-shadow: inset 0 -2px 0 var(--accent); }
[data-theme="minimal"] .seg { background: transparent; border-radius: 0; padding: 0; gap: 18px; border-bottom: 1px solid var(--line); }
[data-theme="minimal"] .seg button { border-radius: 0; padding: 0 2px; height: 34px; color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: 1.5px; }
[data-theme="minimal"] .seg button.on { background: transparent; box-shadow: inset 0 -2px 0 var(--accent); color: var(--text); font-weight: 500; }
[data-theme="minimal"] .search, [data-theme="minimal"] .psel { border-radius: 0; box-shadow: none; background: transparent; border: 0; border-bottom: 1px solid #CFCBC3; padding: 0 2px; }
[data-theme="minimal"] .search:focus { box-shadow: none; border-bottom-color: var(--accent); }
/* главная: счетчики */
[data-theme="minimal"] .stat { padding: 18px 20px 16px; border-top: 2px solid var(--line) !important; gap: 2px 10px; }
[data-theme="minimal"] .stat .dot { width: 8px; height: 8px; align-self: start; margin-top: 10px; }
[data-theme="minimal"] .stat b { font-size: 40px; font-weight: 300; line-height: 1; }
[data-theme="minimal"] .stat span:last-child { font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.8px; color: var(--muted); }
[data-theme="minimal"] .stat:nth-child(1) { border-top-color: var(--red) !important; }
[data-theme="minimal"] .stat:nth-child(2) { border-top-color: var(--orange) !important; }
[data-theme="minimal"] .stat:nth-child(3) { border-top-color: #CBBF9F !important; }
[data-theme="minimal"] .stat:nth-child(1) .dot { background: var(--red) !important; }
[data-theme="minimal"] .stat:nth-child(2) .dot { background: var(--orange) !important; }
[data-theme="minimal"] .stat:nth-child(3) .dot { background: #CBBF9F !important; }
[data-theme="minimal"] .trow { padding: 12px 18px; }
[data-theme="minimal"] .trow:hover { background: #FAF9F7; }
[data-theme="minimal"] .tcirc { border-width: 1px; border-color: #B9B4AA; }
[data-theme="minimal"] .ttitle { font-size: 15px; }
[data-theme="minimal"] .tst { font-weight: 500; }
[data-theme="minimal"] .wcol.today { box-shadow: none; border: 1px solid #1B1B1B; }
[data-theme="minimal"] .whead { text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; }
[data-theme="minimal"] .whead b { font-weight: 300; font-size: 24px; letter-spacing: 0; }
/* проекты */
[data-theme="minimal"] .pcard { padding: 20px 22px 18px; border-left: 3px solid #D9D5CD; gap: 8px; }
[data-theme="minimal"] .pcard:has(.badge.hot) { border-left-color: var(--orange); }
[data-theme="minimal"] .pcard:has(.badge.over) { border-left-color: var(--red); }
[data-theme="minimal"] .pcard:hover { box-shadow: 0 10px 30px rgba(0,0,0,.06); border-color: #CFCBC3; }
[data-theme="minimal"] .pcard .name { font-size: 19px; font-weight: 400; letter-spacing: 0; }
[data-theme="minimal"] .badge { border-radius: 0; background: transparent !important; padding: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 500; }
[data-theme="minimal"] .av { border-radius: 50%; border-color: #fff; font-weight: 500; filter: saturate(.55); }
/* настройки */
[data-theme="minimal"] .setbox { padding: 22px 24px; gap: 12px; }
[data-theme="minimal"] .setlink:hover { box-shadow: none; border-color: #1B1B1B; }
[data-theme="minimal"] .setlink .chev { font-weight: 300; color: #B9B4AA; }
[data-theme="minimal"] .sticker .paper { font-family: Caveat, cursive; }
[data-theme="minimal"] .sw { border-radius: 50%; }
/* телефон */
@media (max-width: 760px) {
  [data-theme="minimal"] .main { padding: 18px 18px 100px; }
  [data-theme="minimal"] h1 { font-size: 32px; }
  [data-theme="minimal"] .tabbar { background: rgba(255,255,255,.94); border-top: 1px solid var(--line); }
  [data-theme="minimal"] .tabbar a { color: #A9A49B; text-transform: uppercase; letter-spacing: 1px; font-size: 9px; position: relative; }
  [data-theme="minimal"] .tabbar a.on { color: #1B1B1B; }
  [data-theme="minimal"] .tabbar a.on::before { content: ""; position: absolute; top: -8px; left: 30%; right: 30%; height: 2px; background: var(--accent); }
  [data-theme="minimal"] .stat { padding: 12px 12px 10px; }
  [data-theme="minimal"] .stat b { font-size: 30px; }
  [data-theme="minimal"] .stat span:last-child { font-size: 10px; letter-spacing: 1.2px; }
}
/* схема проекта */
[data-theme="minimal"] .info { border-radius: 3px; border: 1px solid var(--line); border-top: 2px solid var(--accent); }
[data-theme="minimal"] .info .ttl b { font-weight: 300; font-size: 26px; letter-spacing: 0; }
[data-theme="minimal"] .info .ln.cur { font-weight: 500; }
[data-theme="minimal"] .chipl { border-radius: 2px; background: transparent; border: 1px solid var(--line); color: var(--text); text-transform: uppercase; letter-spacing: 1px; font-size: 10.5px; }
[data-theme="minimal"] .curves path { stroke: #CFCAC0; stroke-width: 1; stroke-linecap: square; }
[data-theme="minimal"] .dhead { background: #fff !important; color: var(--text) !important; border-radius: 2px; border: 1px solid var(--line); border-top: 3px solid var(--dhc, #1B1B1B); box-shadow: none; }
[data-theme="minimal"] .dhead .t { font-weight: 500; text-transform: uppercase; letter-spacing: 1.2px; font-size: 12px; }
[data-theme="minimal"] .dhead .t small { text-transform: none; letter-spacing: .2px; color: var(--muted); font-weight: 400; }
[data-theme="minimal"] .dhead svg { display: none; }
[data-theme="minimal"] .dots, [data-theme="minimal"] .fold { border-radius: 2px; background: transparent; color: var(--muted); }
[data-theme="minimal"] .dots:hover, [data-theme="minimal"] .fold:hover { background: #F2F0EC; }
[data-theme="minimal"] .node { background: #fff; border-radius: 2px; border: 1px solid var(--line); border-left: 3px solid var(--lab); padding: 10px 12px 10px 12px; }
[data-theme="minimal"] .node:hover { box-shadow: 0 8px 22px rgba(0,0,0,.07); }
[data-theme="minimal"] .node .lab { font-weight: 500; letter-spacing: 1.4px; font-size: 9.5px; }
[data-theme="minimal"] .node .tt { font-weight: 500; font-size: 14.5px; }
[data-theme="minimal"] .node .ln.hot, [data-theme="minimal"] .node .ln.over { font-weight: 500; }
[data-theme="minimal"] .node .amt { font-weight: 400; font-size: 17px; }
[data-theme="minimal"] .node .chip { border-radius: 2px; background: #F4F2EE; }
[data-theme="minimal"] .node .links a { border-radius: 2px; background: transparent; border: 1px solid var(--line); color: var(--accent); }
[data-theme="minimal"] .node.st-hot { box-shadow: none; border-color: var(--orange); border-left-color: var(--orange); }
[data-theme="minimal"] .node.st-overdue { box-shadow: none; border-color: var(--red); border-left-color: var(--red); }
[data-theme="minimal"] .node.st-dash { background: transparent; border: 1px dashed #BDB7AC; }
[data-theme="minimal"] .addb { border-radius: 2px; border: 1px dashed #8C8578 !important; color: #4F4A42 !important; background: rgba(255,255,255,.7); font-weight: 500; text-transform: uppercase; letter-spacing: 1.2px; font-size: 11px; }
[data-theme="minimal"] .addb:hover { color: var(--text) !important; border-color: #1B1B1B !important; }
[data-theme="minimal"] .more { border-radius: 2px; text-transform: uppercase; letter-spacing: 1.2px; font-size: 11px; font-weight: 500; }
[data-theme="minimal"] .zoombox { border-radius: 2px; border: 1px solid var(--line); box-shadow: none; }
[data-theme="minimal"] .zoombox button { border-radius: 2px; }
[data-theme="minimal"] .zoombox button.txt { color: var(--text); text-transform: uppercase; letter-spacing: 1.2px; font-size: 11px; font-weight: 500; }
/* стикеры: плоский квадрат бумаги, без скотча и наклона, тонкая тень */
[data-theme="minimal"] .sticker { filter: drop-shadow(0 8px 14px rgba(0,0,0,.08)); }
[data-theme="minimal"] .sticker.tilt-l, [data-theme="minimal"] .sticker.tilt-r { transform: none; }
[data-theme="minimal"] .sticker::before { display: none; }
[data-theme="minimal"] .sticker .paper { background-image: none; border-radius: 0; border-top: 3px solid rgba(0,0,0,.18); font-family: Jost, sans-serif !important; font-weight: 400; font-size: 14px !important; line-height: 1.4 !important; padding: 14px 16px 18px; }
[data-theme="minimal"] .sticker .paper::after { width: 14px; height: 14px; background: linear-gradient(315deg, var(--bg) 50%, rgba(0,0,0,.10) 50%); border-radius: 0; }

[data-theme="minimal"] .info { background: #fff !important; box-shadow: none; }
[data-theme="minimal"] .lchain, [data-theme="minimal"] .lsec, [data-theme="minimal"] .list .card { border-radius: 3px; }
[data-theme="minimal"] .field { border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="minimal"] .curves path { stroke: #BDB7AC; stroke-width: 1; stroke-linecap: square; }
[data-theme="minimal"] .dialog, [data-theme="minimal"] .menu, [data-theme="minimal"] .glist, [data-theme="minimal"] .pickmenu { border-radius: 3px; }
[data-theme="minimal"] .dialog h3 { font-weight: 400; font-size: 22px; }
[data-theme="minimal"] .f input:not([type=checkbox]), [data-theme="minimal"] .f select, [data-theme="minimal"] .f textarea { border-radius: 2px; }
[data-theme="minimal"] .ghead { letter-spacing: 1.8px; font-weight: 500; }
[data-theme="minimal"] .grow, [data-theme="minimal"] .grow .gtxt { font-size: 15px; }
[data-theme="minimal"] .login form { border-radius: 3px; }
[data-theme="minimal"] .cday, [data-theme="minimal"] .stat, [data-theme="minimal"] .wcol { border-radius: 3px; }
[data-theme="minimal"] #toast { border-radius: 3px; }
[data-theme="minimal"] .zoombox { background: #fff; }
[data-theme="minimal"] .pick { border-radius: 2px; }
.f > .pick { align-self: flex-start; }
/* телефон: часы-логотип слева в шапке каждой страницы; дата над «Неделей» убрана */
.mlogo { display: none; }
@media (max-width: 760px) {
  .hashead > .mlogo { display: flex; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; align-self: center; }
  .hashead > .mlogo svg, .hashead > .mlogo img { width: 32px; height: 32px; display: block; }
  #hdate { display: none; }
  .hashead { flex-wrap: wrap; column-gap: 12px; }
}

/* ===== главная на телефоне: лента дней (вариант 4) */
.btn.ibtn { width: 34px; padding: 0; justify-content: center; font-size: 20px; font-weight: 500; }
.fpop { padding: 10px; gap: 8px; min-width: 240px; }
.fpop .fchips { flex-direction: column; align-items: stretch; }
.fpop .fchip { height: 34px; justify-content: flex-start; padding: 0 12px; display: flex; align-items: center; }
.dstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 8px 6px; }
.dday { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 7px; border: 0; border-radius: 12px; background: transparent; font-size: 11px; color: var(--muted); }
.dday b { font-size: 18px; color: var(--text); font-weight: 600; }
.dday.off, .dday.off b { color: var(--red-text); }
.dday.today:not(.on) b { color: var(--blue); }
.dday.on { background: var(--blue); color: #fff; }
.dday.on b { color: #fff; }
.ddots { display: flex; gap: 2px; height: 5px; font-style: normal; }
.ddots i { width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.dday.on .ddots i { background: #fff; }
.halarm { display: flex; align-items: center; gap: 4px; padding: 11px 14px; border-radius: 12px; background: #FDECEA; color: var(--red-text); font-size: 14px; text-decoration: none !important; }
.halarm .o { color: var(--orange-text); font-weight: 600; }
.halarm .w { color: var(--muted); font-weight: 500; }
.halarm .go { margin-left: auto; font-size: 13px; color: var(--red-text); }
.halarm.calm { background: #E8F5EC; color: var(--green-text); font-weight: 600; }
.hday { font-size: 17px; font-weight: 700; margin-top: 2px; }
.hday span { font-size: 14px; font-weight: 500; color: var(--muted); }
[data-theme="minimal"] .dstrip { border-radius: 3px; }
[data-theme="minimal"] .dday { border-radius: 2px; text-transform: uppercase; letter-spacing: 1px; font-size: 10px; }
[data-theme="minimal"] .dday b { font-weight: 300; font-size: 21px; letter-spacing: 0; }
[data-theme="minimal"] .dday.on { background: #1B1B1B; box-shadow: inset 0 -2px 0 var(--accent); }
[data-theme="minimal"] .dday.today:not(.on) b { color: var(--accent); font-weight: 400; }
[data-theme="minimal"] .ddots i { background: #8B877F; }
[data-theme="minimal"] .dday.on .ddots i { background: #fff; }
[data-theme="minimal"] .halarm { border-radius: 2px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); text-transform: uppercase; letter-spacing: 1.2px; font-size: 11.5px; font-weight: 500; }
[data-theme="minimal"] .halarm b { font-weight: 500; }
[data-theme="minimal"] .halarm .go { letter-spacing: 1px; font-size: 11px; }
[data-theme="minimal"] .hday { font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; }
[data-theme="minimal"] .hday span { text-transform: none; letter-spacing: .3px; font-size: 13px; }
[data-theme="minimal"] .btn.ibtn { font-size: 18px; letter-spacing: 0; }
/* телефон, «Минимализм»: заголовок на одной линии с часами, как в «Классике» */
@media (max-width: 760px) {
  [data-theme="minimal"] .hashead h1::before, [data-theme="minimal"] .main > .row:first-child h1::before { display: none; }
  [data-theme="minimal"] .hashead .btn.primary { height: 34px; }
}
/* «Минимализм»: у шрифта Jost своя линия зачеркивания стоит слишком высоко – рисуем ее сами посередине строчных букв */
[data-theme="minimal"] .trow.done .ttitle, [data-theme="minimal"] .citem.done { text-decoration: none; }
[data-theme="minimal"] .trow.done .ttitle .tx, [data-theme="minimal"] .citem.done .tx { background: linear-gradient(currentColor, currentColor) 0 64% / 100% 1px no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ===== описи */
.node .chip.draft { color: var(--orange-text); }
.invopts { display: flex; flex-direction: column; gap: 6px; }
.invopt { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: left; }
.invopt.on { border-color: var(--blue); background: rgba(0,113,227,.05); }
.invopt b { font-size: 13.5px; } .invopt small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.invopt .code { width: 54px; flex: 0 0 auto; font-size: 11.5px; font-weight: 700; color: #3F2775; background: #EEEAFB; border-radius: 8px; padding: 5px 0; text-align: center; }
.invtop { align-items: flex-end; }
.invh { font-size: 26px; }
.invst { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 10px; background: #FFF2E0; color: var(--orange-text); }
.invst.done { background: #E8F5EC; color: var(--green-text); }
.invwrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; align-items: start; }
.invmain { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.isec { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.isec h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); display: flex; gap: 8px; }
.isec h4 i { font-style: normal; text-transform: none; letter-spacing: 0; margin-left: auto; color: var(--blue); }
.igrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.igrid .f.wide { grid-column: span 2; }
.igrid .ghd { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.iin { height: 34px; border-radius: 9px; border: 0; background: #F2F2F7; padding: 0 10px; font-size: 13.5px; width: 100%; min-width: 0; outline: none; }
textarea.iin { height: auto; padding: 8px 10px; resize: vertical; }
.iin:focus, .cell:focus { box-shadow: 0 0 0 2px rgba(0,113,227,.4); background: #fff; }
.mem { display: grid; grid-template-columns: 130px 1.1fr 1fr 28px; gap: 8px; align-items: center; font-size: 12.5px; }
.ix { width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: #AEAEB2; font-size: 16px; }
.ix:hover { background: #FDECEA; color: var(--red-text); }
.itable { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.itable th { font-size: 11px; font-weight: 600; color: var(--muted); text-align: left; padding: 6px 5px; border-bottom: 1px solid var(--line); vertical-align: bottom; background: #FAFAFC; }
.itable th.g { text-align: center; }
.itable td { padding: 3px 4px; border-bottom: 1px solid #F0F0F3; }
.itable td.num { color: var(--muted); text-align: center; width: 30px; }
.cell { width: 100%; height: 30px; border: 0; border-radius: 7px; background: #F5F5F8; padding: 0 7px; font-size: 12.5px; outline: none; }
.cell.n { text-align: right; font-variant-numeric: tabular-nums; }
.calc { display: block; text-align: right; font-weight: 600; padding: 0 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.invsum { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 12px; }
.invsum h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.invsum .k { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.invsum .k b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.invsum .words { font-size: 12px; color: var(--muted); line-height: 1.45; background: #F5F5F8; border-radius: 9px; padding: 8px 10px; }
.invsum .bad { font-size: 12.5px; color: var(--red-text); background: #FDECEA; border-radius: 9px; padding: 7px 10px; }
.invsum .pg { font-size: 12px; color: var(--muted); line-height: 1.45; margin: 0; }
.icard { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; border: 0; border-radius: 12px; background: #F7F7FA; margin-bottom: 6px; width: 100%; }
.icard span { font-size: 12px; color: var(--muted); }
.icard .isum { color: var(--text); font-weight: 600; align-self: flex-end; }
.srow { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--line); background: #fff; font-size: 14px; width: 100%; text-align: left; }
.srow b { font-weight: 600; }
.srow .sc { margin-left: auto; font-size: 12.5px; color: #3A3F4B; background: #F2F2F7; padding: 3px 9px; border-radius: 9px; white-space: nowrap; }
.srow .sc.ok { color: var(--green-text); background: #E8F5EC; }
.srow .sc.mt { color: #8E8E93; background: transparent; }
.srow .ch { color: #C7C7CC; font-size: 18px; width: 14px; text-align: center; }
.srow.open { background: #F7F9FD; }
.sbody { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); background: #FBFCFE; }
.grp2 { border: 1px solid #EDEDF0; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.grp2 .gh { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.grp2 .gh small { font-weight: 500; color: #8E8E93; }
.grp2.empty .gh { color: #8E8E93; }
.citem2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) 28px; gap: 8px; align-items: end; padding: 8px; border-radius: 10px; background: #F7F7FA; }
.citem2 .f > span { font-size: 11px; }
@media (max-width: 1000px) { .invwrap { grid-template-columns: 1fr; } .invsum { position: static; } }
@media (max-width: 760px) {
  .igrid { grid-template-columns: 1fr; } .igrid .f.wide { grid-column: auto; }
  .mem { grid-template-columns: 1fr 1fr 28px; } .mem > span.muted { grid-column: 1 / -1; }
  .invh { font-size: 21px; }
  .citem2 { grid-template-columns: 1fr 28px; } .citem2 .f { grid-column: 1; }
}
[data-theme="minimal"] .invopt, [data-theme="minimal"] .isec, [data-theme="minimal"] .grp2, [data-theme="minimal"] .citem2, [data-theme="minimal"] .iin, [data-theme="minimal"] .cell, [data-theme="minimal"] .invsum, [data-theme="minimal"] .icard { border-radius: 2px; }
[data-theme="minimal"] .invh { font-weight: 300; }
[data-theme="minimal"] .srow b { font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 12.5px; }
.itbl .tblw { overflow-x: auto; max-width: 100%; } .itbl { min-width: 0; max-width: 100%; }
.citem2 { grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; padding-right: 36px; }
.citem2 .ix { position: absolute; right: 6px; top: 6px; }
@media (max-width: 760px) { .citem2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .isec .hide-m { display: none; } }
/* огонек «горит»: правый верхний угол блока; в списках – перед словом */
.node .fire { position: absolute; right: -9px; top: -13px; width: 24px; height: 24px; display: flex; pointer-events: none; z-index: 1; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff); }
.node .fire svg, .fire-s svg { width: 100%; height: 100%; }
.lchain .node { position: relative; }
.fire-s { display: inline-flex; width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }

/* карточка проекта: смена судьи и управляющего */
.info .ln .chg { color: var(--blue); font-size: 12px; font-weight: 500; }
.info .ln.mgr.old { color: #A1A1A6; }
/* «₽ Финансы» в карточке проекта */
.mchip { margin-top: 8px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 14px; border: 0; background: rgba(255,255,255,.75); font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.mchip i { font-style: normal; color: #8E8E93; font-weight: 500; }
.mpanel { margin-top: 8px; background: #fff; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.mpanel .k { display: flex; justify-content: space-between; font-size: 12.5px; gap: 10px; }
.mpanel .k b, .tile b, .num { font-variant-numeric: tabular-nums; }
.g { color: #1E7B34; } .r { color: #B42318; } .o { color: #A05A00; }
/* страницы финансов */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile span { font-size: 12px; color: var(--muted); font-weight: 600; }
.tile b { font-size: 20px; letter-spacing: -.3px; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }
.fsel { height: 32px; border-radius: 10px; border: 1px solid #E5E5EA; background: #fff; padding: 0 10px; font-size: 13px; }
.tblw { overflow-x: auto; padding: 0; }
.ftable { border-collapse: collapse; width: 100%; font-size: 13px; }
.ftable th { font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: left; padding: 9px 10px; border-bottom: 1px solid #E5E5EA; background: #FAFAFC; white-space: nowrap; }
.ftable td { padding: 9px 10px; border-bottom: 1px solid #F0F0F3; vertical-align: top; }
.ftable td.num { text-align: right; white-space: nowrap; font-weight: 600; }
.ftable tr.click { cursor: pointer; }
.ftable tr.click:hover td { background: rgba(0,113,227,.04); }
.ftable tr.tot td { background: #FAFAFC; font-weight: 700; border-top: 1px solid #E5E5EA; }
.ftable:has(td:nth-child(7)) { min-width: 980px; }
.kind { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 8px; white-space: nowrap; }
.kind.e { background: #FDECEA; color: #B42318; } .kind.i { background: #E8F5EC; color: #1E7B34; }
.ref { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 8px; white-space: nowrap; border: 0; cursor: pointer; }
.ref.y { background: #E8F5EC; color: #1E7B34; } .ref.n { background: #FFF2E0; color: #A05A00; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.f2[hidden], .plist[hidden] { display: none; }
.f.tgl { flex-direction: row; align-items: center; justify-content: space-between; height: 38px; }
.plist { border: 1px solid #E5E5EA; border-radius: 12px; max-height: 280px; overflow: auto; }
.chk { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-bottom: 1px solid #F0F0F3; font-size: 13.5px; }
.chk:last-child { border-bottom: 0; }
.chk .tog { margin-left: auto; flex: 0 0 auto; }
/* «О проекте» */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.about .wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.abox { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.abox h4, .acc h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.abox h4 .lnk { margin-left: auto; }
.abox h4.ahead { font-size: 13px; }
.abox h4.ahead .btn { margin-left: auto; text-transform: none; letter-spacing: 0; }
section.abox.wide { padding: 0; }
.lnk { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 600; font-size: 13px; text-transform: none; letter-spacing: 0; cursor: pointer; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 5px 12px; font-size: 13.5px; }
.kv > span:nth-child(odd) { color: var(--muted); }
.kv > span { min-width: 0; overflow-wrap: anywhere; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; max-width: 100%; }
.hist { display: flex; flex-direction: column; gap: 2px; }
.hrow { display: grid; grid-template-columns: 170px 1fr; gap: 12px; text-align: left; border: 0; background: none; padding: 5px 6px; margin: 0 -6px; border-radius: 8px; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; }
.hrow:hover { background: rgba(0,0,0,.04); }
.hrow .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.hrow .now { font-weight: 600; }
.hrow.sub { font-size: 12.5px; }
.pblock { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pblock:last-child { border-bottom: 0; padding-bottom: 0; }
.accs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.acc { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.acc h4 .dots { margin-left: auto; }
.acc.closed { opacity: .7; }
.acc .badge { background: #F2F2F7; color: var(--muted); text-transform: none; letter-spacing: 0; }
@media (max-width: 760px) { .kv { grid-template-columns: 1fr; gap: 0 0; } .kv > span:nth-child(odd) { margin-top: 6px; font-size: 12px; } .hrow { grid-template-columns: 1fr; gap: 0; } .f2 { grid-template-columns: 1fr; } }
[data-theme="minimal"] .mchip, [data-theme="minimal"] .mpanel, [data-theme="minimal"] .tile, [data-theme="minimal"] .abox, [data-theme="minimal"] .acc { border-radius: 2px; }
[data-theme="minimal"] .mchip { border: 1px solid var(--line); background: transparent; }
