/* Стиль Life Planner (10.11.2026): тёмная основа, фиолетовый акцент. Те же цвета — в /lib/kit/kit.css */
:root {
  --bg: #191919; --panel: #202020; --line: #2c2c2c; --text: #ececec; --dim: #9a9a9a;
  --violet: #9b6bff; --violet-2: #c3a5ff; --violet-card: #8a5bd6; --chip: #3b2a63;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
main { max-width: 1100px; margin: 0 auto; padding: 32px 16px 64px; }
main.narrow { max-width: 400px; padding-top: 10vh; }
h1 { font-size: clamp(28px, 4vw, 52px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 6px; line-height: 1.1; }
h2 { font-size: 17px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
h2::before { content: ""; width: 14px; height: 2px; background: var(--dim); }
.sub { border-left: 3px solid var(--violet); padding-left: 10px; color: var(--dim); margin: 0 0 22px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
input:not([type=checkbox]) { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
input:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.pill { display: inline-block; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--violet); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pill.primary { padding: 13px 20px; }
.pill.small { padding: 6px 14px; font-size: .85rem; }
.pill.ghost { background: #0009; backdrop-filter: blur(6px); }
.pill:disabled { opacity: .4; cursor: default; }
.check { color: var(--dim); display: flex; gap: 8px; align-items: center; }
.error { color: #ff6b6b; margin: 0; }
.empty { color: var(--dim); }

/* Вход */
.login-art { width: 100%; height: 34vh; object-fit: cover; display: block; mask-image: linear-gradient(#000 60%, transparent); }
body.login main.narrow { padding-top: 0; margin-top: -40px; position: relative; }

/* Главная */
.cover { position: relative; height: clamp(170px, 26vw, 440px); overflow: hidden; }
.cover::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--bg)); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover form { position: absolute; top: 12px; right: 12px; }
main.wide { max-width: 1480px; padding: 0 clamp(16px, 4vw, 48px) 80px; }
.avatar { width: clamp(64px, 6vw, 96px); height: clamp(64px, 6vw, 96px); border-radius: 50%; background: var(--violet); border: 5px solid var(--bg); margin: calc(-1 * clamp(32px, 3vw, 48px)) 0 0 4px; position: relative; z-index: 1; }
.search { margin-bottom: 30px; max-width: 420px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px 16px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.thumb { display: block; position: relative; aspect-ratio: 16 / 8; border-radius: 12px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumb:hover img { transform: scale(1.05); }
.thumb span { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; padding: 8px; font-weight: 800; font-size: clamp(17px, 1.6vw, 24px); color: #fff; text-shadow: 0 2px 14px #000c; background: linear-gradient(#0000, #0005); }
.links { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13.5px; }
.links li a { display: flex; gap: 8px; padding: 3px 4px; border-radius: 6px; color: #d6d6d6; }
.links li a:hover { background: #2a2a2a; color: #fff; }
.links .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kind { flex: none; width: 16px; text-align: center; color: var(--violet-2); font-size: 12px; }
.project details summary, #overview details summary { cursor: pointer; color: var(--dim); font-size: 13px; padding: 3px 4px; }
.found { max-width: 640px; font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: 26px; margin: 34px 0; align-items: start; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.table th { text-align: left; color: var(--dim); font-weight: 500; font-size: 12px; padding: 6px; border-bottom: 1px solid var(--line); }
.table td { padding: 7px 6px; border-bottom: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table td a { display: flex; gap: 8px; overflow: hidden; }
.table td a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--violet); }
.table th:nth-child(2), .table td:nth-child(2) { width: 150px; }
.table th:nth-child(3), .table td:nth-child(3) { width: 64px; }
.date { color: var(--dim); }
.chip { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 5px; background: var(--chip); color: var(--violet-2); }

.widget { background: linear-gradient(160deg, #a77bf0, var(--violet-card)); border-radius: 14px; padding: 16px; color: #fff; box-shadow: 0 18px 40px -18px #9b6bff88; }
.widget h2::before { background: #fff; }
.widget ol { list-style: none; margin: 0; padding: 0; }
.widget li a { display: flex; gap: 10px; padding: 8px 4px; border-top: 1px solid #ffffff2a; }
.widget li a:hover { background: #ffffff1a; border-radius: 8px; }
.widget .n { flex: none; width: 18px; color: #ffffffaa; font-size: 12px; padding-top: 2px; }
.widget .t { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.widget small { display: block; font-weight: 400; color: #ffffffb0; font-size: 11.5px; }
.widget .done { margin: 0; font-weight: 600; }


@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  #waiting { order: -1; }
  .m-hide { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .thumb { aspect-ratio: 16 / 10; }
  .thumb span { font-size: 15px; }
}
@media (max-width: 420px) { .gallery { grid-template-columns: 1fr; } }

/* Шапка страницы */
body.shell { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.bar { height: 44px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar .back { font-size: 1.3rem; padding: 0 6px; color: var(--violet-2); }
.bar .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.bar .name::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); margin-right: 8px; }
.bar .pill, .bar select { flex: none; white-space: nowrap; }
.bar .pill { background: #2a2a2a; color: var(--text); font-weight: 600; }
.bar .pill:hover { background: var(--chip); }
.bar select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .85rem; }
.bar .full-icon { display: none; }
@media (max-width: 600px) {
  .bar { gap: 8px; padding: 0 8px; }
  .bar .full-text { display: none; }
  .bar .full-icon { display: inline; font-size: 1.1rem; line-height: 1; }
}
#frame { flex: 1; width: 100%; border: 0; background: var(--bg); }
.hidden { display: none; }
dialog { width: min(92vw, 460px); padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
.row { display: flex; justify-content: flex-end; gap: 10px; }
.notice { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--dim); }

/* ===== Движение (10.11.2026, приёмы из Threads/Instagram: /root/research/web-design-trends/REPORT.md) ===== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
.read-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 50; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #4b2a8f, var(--violet), var(--violet-2)); pointer-events: none; }
@supports not (animation-timeline: scroll()) { .read-progress { display: none; } }
.split-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.split-title .w > span { display: inline-block; }
.thumb, .widget { isolation: isolate; }
.thumb::after, .widget::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(280px circle at var(--x, 50%) var(--y, 50%), #c3a5ff55, transparent 60%); opacity: 0; transition: opacity .3s; }
.thumb:hover::after, .widget:hover::after { opacity: 1; }
.widget { position: relative; }
.thumb { box-shadow: 0 0 0 1px #ffffff10; transition: box-shadow .3s, translate .3s cubic-bezier(.2, .8, .2, 1); }
.thumb:hover { box-shadow: 0 0 0 1px #c3a5ff88, 0 18px 40px -16px #9b6bffaa; translate: 0 -3px; }
.links li a { transition: background .2s, color .2s, padding .2s; }
.links li a:hover { padding-left: 8px; }
.pill { transition: transform .2s, background .2s; } .pill:active { transform: scale(.97); }
:root { interpolate-size: allow-keywords; }
details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s cubic-bezier(.2, .8, .2, 1), content-visibility .35s allow-discrete; }
details[open]::details-content { block-size: auto; }
details > summary { list-style: none; display: flex; align-items: center; gap: 6px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "›"; color: var(--violet-2); font-weight: 800; transition: transform .25s; }
details[open] > summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .project, #overview tr, .widget li, h2 { animation: home-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    @keyframes home-reveal { from { opacity: 0; translate: 0 30px; scale: .97; } }
  }
  @supports (animation-timeline: scroll()) {
    .read-progress { animation: home-read linear both; animation-timeline: scroll(root); }
    @keyframes home-read { to { transform: scaleX(1); } }
    .cover img { animation: home-cover linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    @keyframes home-cover { to { translate: 0 25%; scale: 1.1; filter: brightness(.5) saturate(1.3); } }
  }
  .split-title .w > span { animation: home-word .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 80ms); }
  @keyframes home-word { from { transform: translateY(110%); } }
  .avatar { animation: home-pop .6s cubic-bezier(.3, 1.6, .5, 1) both .1s; }
  @keyframes home-pop { from { scale: 0; } }
  .sub, .search { animation: home-fade .6s ease both .35s; }
  @keyframes home-fade { from { opacity: 0; translate: 0 10px; } }
  .widget { animation: home-glow 4s ease-in-out infinite alternate; }
  @keyframes home-glow { to { box-shadow: 0 22px 60px -14px #9b6bffcc; } }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  details::details-content { transition: none; }
  .thumb:hover { translate: none; }
}
