/* «Контент» v3 · the single app: the top bar, the list of clients, the header with tabs, the card of a client.
   Mockups: wt-design/mockups/content-v3/K-*.png (drawn in Manrope, dark only: structure and colours from them, sizes and the font from tokens). */

/* ---------- shell ---------- */
.v3shell { min-height: 100vh; display: flex; flex-direction: column; }
.v3top { height: var(--bar-h); flex: none; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.v3logo { display: flex; align-items: center; padding-right: 4px; }
.v3sw { margin: 0; width: 168px; }
.v3sw .switcher { height: 40px; }
.v3sw .menu { top: 44px; }
.v3sp { flex: 1; }
.v3spend { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.v3seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sunken); border: 1px solid var(--line); }
.v3seg button { width: 32px; height: 28px; border: 0; border-radius: 999px; background: none; color: var(--faint); display: grid; place-items: center; }
.v3seg button.on { background: var(--raised); color: var(--text); box-shadow: var(--shadow-sm); }
.v3seg .ic { width: 15px; height: 15px; }
.btn.round { border-radius: 50%; }
.v3me { margin: 0; }
.v3me .menu { top: 44px; left: auto; right: 0; width: 250px; }
.v3av { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--raised); display: grid; place-items: center; font-weight: 600; }
.v3cols { flex: 1; display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 0; }
.v3list { border-right: 1px solid var(--line); padding: 18px 14px 24px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); overflow-y: auto; }
.v3right { min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - var(--bar-h)); }
.v3right > .main { flex: 1; }
.v3shell .main { min-width: 0; }

/* ---------- the list ---------- */
.v3list-h { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.v3list-h .h2 { font-size: 18px; font-weight: 600; }
.v3list-h .sub { font-weight: 400; margin-left: 4px; }
.v3flt { width: 100%; }
.v3flt button { flex: 1; }
.v3q { height: 34px; }
.v3cls { display: flex; flex-direction: column; gap: 6px; }
.v3none { padding: 8px 6px; }
.v3cl { display: flex; gap: 12px; padding: 12px; border-radius: 14px; text-decoration: none; color: inherit; border: 1px solid transparent; }
.v3cl:hover { background: var(--panel); }
.v3cl.on { background: var(--raised); border-color: var(--line); }
.v3cl .cl-av { width: 40px; height: 40px; border-radius: 11px; }
.v3cl-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.v3cl-n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.v3cl-n b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3me-b { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--text); color: var(--bg); font: 600 11px/20px var(--sans); text-align: center; font-style: normal; }
.v3cl-p { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12px; }
.v3pf { display: inline-flex; color: var(--muted); }
.v3pf .ic { width: 13px; height: 13px; }
.v3cl-s { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v3cl-c { font-size: 11.5px; line-height: 1.25; text-align: left; }
.v3cl-bar { height: 4px; border-radius: 2px; background: var(--sunken); overflow: hidden; }
.v3cl-bar i { display: block; height: 100%; background: var(--text); border-radius: 2px; }
.v3cl .num.sub { font-size: 12px; }

/* ---------- the header of a client ---------- */
.v3ch { display: flex; align-items: center; gap: 14px; padding: 18px 24px 4px; flex-wrap: wrap; }
.v3ch .cl-av.big { width: 48px; height: 48px; border-radius: 12px; }
.v3ch-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; flex: 1 1 280px; }
.v3ch-t .h1 { display: flex; align-items: center; gap: 10px; }
.v3brand { font: 600 11px/1 var(--sans); padding: 5px 8px; border-radius: 999px; background: var(--text); color: var(--bg); letter-spacing: 0; }
.v3tabs { display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.v3tabs::-webkit-scrollbar { display: none; }
.v3tabs a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.v3tabs a:hover { color: var(--text); }
.v3tabs a.on { background: var(--raised); color: var(--text); border-color: var(--line); }
.v3tabs .ic { width: 16px; height: 16px; }

/* ---------- the card ---------- */
.v3card { padding: 12px 24px 48px; display: flex; flex-direction: column; gap: 16px; }
.v3about { padding: 4px 22px 18px; }
.v3about-h { display: flex; align-items: center; gap: 12px; padding: 14px 0; flex-wrap: wrap; }
.v3about-h .h1 { font-size: 20px; }
.v3about-b { width: 80px; }
.v3row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.v3row > span:first-child { padding-top: 1px; }
.v3empty { margin: 4px 0 8px; }
.v3about-a { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.v3sech { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.v3sech .h2 { font-size: 17px; }
.v3accs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: stretch; }
.v3acc { position: relative; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.v3acc.add { border-style: dashed; background: transparent; }
.v3acc-h { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.v3acc-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.v3f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v3f.wide { grid-column: 1 / -1; }
.v3sel { position: relative; display: block; }
.v3sel .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; width: 15px; height: 15px; }
.v3sel select { width: 100%; height: 38px; padding: 0 10px 0 34px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--sunken); }
textarea.field.v3ta { min-height: 56px; height: 56px; resize: none; }
.v3rh { text-align: left; cursor: pointer; display: flex; align-items: center; }
.v3acc-x { position: absolute; top: 10px; right: 10px; opacity: 0; }
.v3acc:hover .v3acc-x, .v3acc-x:focus-visible { opacity: .8; }
.v3aw { display: flex; flex-direction: column; gap: 12px; }
.v3aw-r { display: flex; align-items: center; gap: 16px; }
.v3ring { width: var(--s, 92px); height: var(--s, 92px); flex: none; }
.v3aw-l { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 13px; min-width: 0; }
.v3aw-l li { display: flex; align-items: center; gap: 8px; }
.v3aw-l li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3aw-l i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.v3aw-l b { font-weight: 500; color: var(--faint); }
.v3aw-f { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.v3aw.none { align-items: flex-start; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r); gap: 8px; }
.v3aw.none b { font-size: 14px; }
.v3pfs { display: flex; flex-wrap: wrap; gap: 8px; }
.v3pfb { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--sunken); color: var(--muted); font-size: 13px; }
.v3pfb:hover { color: var(--text); border-color: var(--line-strong); }
.v3pfb .ic { width: 14px; height: 14px; }
.v3loose { display: flex; flex-wrap: wrap; gap: 10px; }
.v3lw { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.v3par { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding: 18px 22px; }
.v3par-c { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.v3own { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.v3own i { width: 24px; height: 24px; border-radius: 50%; background: #3B9AD6; color: #fff; font: 600 11px/24px var(--sans); text-align: center; font-style: normal; }
.v3slim { height: 34px; max-width: 100%; }
.v3lim { width: 64px; height: 28px; padding: 0 6px; display: inline-block; }
.v3par-c .num { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.v3fold { display: inline-flex; align-items: center; gap: 8px; }
.v3par-c .bar { width: 100%; }
.v3wk { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.v3wk-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.v3wk-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 28px; }
.v3wk-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v3time { width: 74px; text-align: center; }
.v3time.bad { border-color: var(--st-error); }
.v3pl { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.v3pl > span { display: inline-flex; align-items: center; gap: 8px; }
.v3two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.v3foot { display: flex; justify-content: flex-end; }
.sw { position: relative; width: 38px; height: 22px; border-radius: 11px; border: 0; background: var(--line-strong); padding: 0; flex: none; }
.sw i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); transition: transform var(--t) var(--ease); }
.sw[aria-pressed="true"] { background: var(--st-published); }
.sw[aria-pressed="true"] i { transform: translateX(16px); }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .v3top { padding: 0 12px; gap: 8px; }
  .v3spend, .v3sw { display: none; }
  .v3cols { grid-template-columns: 1fr; }
  .v3list { position: static; height: auto; border-right: 0; padding: 14px 12px 24px; }
  .v3shell[data-view="client"] .v3list, .v3shell[data-view="page"] .v3list { display: none; }
  .v3shell[data-view="list"] .v3right { display: none; }
  .v3right { min-height: 0; }
  .v3ch { padding: 12px 14px 0; gap: 10px; }
  .v3ch-t { flex-basis: calc(100% - 70px); }
  .v3tabs { width: 100%; }
  .v3tabs a { padding: 0 12px; height: 36px; }
  .v3card { padding: 10px 14px 120px; }
  .v3row { grid-template-columns: 1fr; gap: 2px; }
  .v3par { grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; }
  .v3accs { grid-template-columns: 1fr; }
  .v3acc-x { opacity: .7; }
}

/* ---------- the week ---------- */
.v3week { padding: 8px 24px 40px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.w3-ctl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 6px; }
.w3-nav { display: flex; align-items: center; gap: 10px; }
.w3-range { margin: 0; font: 600 21px/1.2 var(--sans); letter-spacing: -.01em; min-width: 150px; text-align: center; }
.w3-track { max-width: 100%; }
.w3-track button { display: inline-flex; align-items: center; gap: 7px; }
.w3-track button .ic { width: 14px; height: 14px; }
.w3-track button i { font-style: normal; color: var(--faint); font-size: 12px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.w3-sp { flex: 1; }
.w3-prog { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.w3-prog .bar { width: 70px; }
.btn-sub { margin-left: 4px; opacity: .7; font-size: 12px; }
.w3-note { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--faint); }
.w3-note > span { flex: 1; }
.w3-grey { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.w3-grey i, .w3-dir i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.w3-banner { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--panel); }
.w3-banner.warn { border-color: color-mix(in srgb, var(--st-publishing) 45%, var(--line)); }
.w3-banner.bad { border-color: color-mix(in srgb, var(--st-error) 50%, var(--line)); }
.w3-bn-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.w3-gen { padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--panel); display: flex; flex-direction: column; gap: 10px; }
.w3-gen-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.w3-gen-st { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
.w3-gen-st li { display: inline-flex; align-items: center; gap: 6px; }
.w3-gen-st li.done { color: var(--muted); } .w3-gen-st li.cur { color: var(--text); }
.w3-gs { width: 14px; height: 14px; display: inline-grid; place-items: center; }
.w3-gs .ic { width: 13px; height: 13px; color: var(--st-published); }
.spin { width: 11px; height: 11px; border: 2px solid var(--line-strong); border-top-color: var(--text); border-radius: 50%; animation: w3spin .8s linear infinite; }
@keyframes w3spin { to { transform: rotate(360deg); } }
.w3-cycle { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); flex-wrap: wrap; }
.w3-cycle-t { display: flex; flex-direction: column; min-width: 120px; }
.w3-segs { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.w3-seg { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--sunken); font-size: 13px; color: var(--muted); }
.w3-seg i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.w3-seg.now { color: var(--text); border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.w3-seg b { font-weight: 500; font-size: 12px; color: var(--c); }
.w3-trends { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.w3-tr-h { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border: 0; background: none; text-align: left; }
.w3-tr-h .chev { margin-left: auto; transition: transform var(--t); } .w3-trends.open .chev { transform: rotate(180deg); }
.w3-tr-b { padding: 0 16px 12px; display: flex; flex-direction: column; }
.tr-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.tr-s { color: var(--muted); } .tr-l a { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.tr-l .ic { width: 13px; height: 13px; }

.w3-grid { display: flex; flex-direction: column; gap: 14px; }
.w3-days, .w3-row { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 14px; align-items: start; }
.w3-dh, .w3-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.w3-gd { font-size: 14px; color: var(--muted); padding: 2px 2px 0; }
.w3-gd b { font-size: 17px; font-weight: 500; color: var(--text); }
.w3-gd.today b { color: var(--accent); }
.w3-lh { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding-top: 4px; min-width: 0; }
.w3-lh-n { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.w3-lh-n .ic { width: 16px; height: 16px; }
.w3-lh-s { overflow-wrap: anywhere; font-size: 12.5px; }
.w3-lh-d { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.w3-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 26px; padding: 0 10px; border-radius: 9px; font-size: 12.5px; font-weight: 500; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w3-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.w3-cell { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 220px; border-radius: 12px; }
.w3-cell.over { outline: 2px dashed var(--accent-line); outline-offset: -2px; background: var(--accent-soft); }
.w3-add { flex: 1; min-height: 44px; border: 1px dashed var(--line); border-radius: 12px; background: none; color: var(--faint); font-size: 12.5px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.w3-add:hover { color: var(--text); border-color: var(--line-strong); }
.w3-add.more { flex: none; min-height: 28px; opacity: 0; } .w3-cell:hover .w3-add.more { opacity: 1; }
.w3-add .ic { width: 14px; height: 14px; }
.w3-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; cursor: pointer; min-width: 0; text-align: left; }
.w3-card:hover { border-color: var(--line-strong); }
.w3-card.dragging { opacity: .4; }
.w3-card.req { border-color: var(--st-ready); box-shadow: 0 0 0 1px var(--st-ready); }
.w3-cover { position: relative; aspect-ratio: 5 / 3; background: var(--sunken); }
.w3-cover img, .w3-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w3-ph { background: linear-gradient(145deg, color-mix(in srgb, var(--c) 30%, var(--sunken)), color-mix(in srgb, var(--c) 8%, var(--sunken))); }
.w3-fmt { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; background: rgb(15 15 14 / .72); color: #fff; font-size: 11.5px; font-weight: 500; backdrop-filter: blur(4px); }
.w3-fmt .ic { width: 12px; height: 12px; }
.w3-fmt.solo { position: static; background: var(--sunken); color: var(--muted); }
.w3-by { position: absolute; right: 8px; top: 8px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--st-ready); color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; }
.w3-body { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.w3-dir { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--c); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w3-dir i { background: var(--c); flex: none; }
.w3-dir.off { color: var(--muted); }
.w3-title { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.w3-foot { margin-top: auto; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.w3-time { font-size: 12.5px; color: var(--muted); }
.w3-st { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); white-space: nowrap; }
.w3-st i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.w3-card.sk .w3-body i { display: block; height: 10px; border-radius: 5px; background: var(--line); animation: w3pulse 1.2s ease-in-out infinite; }
.w3-card.sk .w3-body i.s { width: 60%; }
@keyframes w3pulse { 50% { opacity: .45; } }
.w3-card.ep { flex-direction: row; grid-column: 1 / -1; cursor: pointer; min-height: 120px; }
.w3-ep-wrap { display: grid; }
.w3-ep-cover { width: 190px; flex: none; background: var(--sunken); display: grid; place-items: center; color: var(--faint); font-size: 12.5px; }
.w3-ep-cover img { width: 100%; height: 100%; object-fit: cover; }
.w3-ep-b { flex: 1; min-width: 0; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.w3-ep-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.w3-ep-r { margin-left: auto; display: flex; gap: 8px; align-items: baseline; }
.w3-ep-t { font: 600 18px/1.3 var(--sans); }
.w3-ep-s { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.w3-step { height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line); display: inline-flex; align-items: center; font-size: 12.5px; color: var(--muted); }
.w3-step.done { text-decoration: line-through; color: var(--faint); }
.w3-step.cur { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 500; }
.w3-hint { margin: 0; }
.w3-daylist { display: none; }
.w3-ss-m { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .w3-days, .w3-row { grid-template-columns: 130px minmax(0, 1fr); gap: 10px; }
  .w3-dh, .w3-cells { gap: 6px; }
  .w3-ep-cover { width: 120px; }
}
@media (max-width: 860px) {
  .v3week { padding: 8px 14px 120px; }
  .w3-gridwrap { display: none; }
  .w3-daylist { display: block; }
  .w3-range { font-size: 18px; min-width: 0; }
  .w3-sp { display: none; }
  .w3-dl-d h3 { margin: 18px 0 8px; font-size: 14px; font-weight: 600; }
  .w3-dl-p { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; color: inherit; margin-bottom: 8px; }
  .w3-dl-th { width: 72px; height: 72px; flex: none; border-radius: 9px; overflow: hidden; position: relative; background: var(--sunken); }
  .w3-dl-th img, .w3-dl-th .w3-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .w3-dl-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
  .w3-dl-m { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .w3-cycle { padding: 10px 12px; }
  .tr-row { grid-template-columns: 1fr; gap: 3px; }
}

/* ---------- the editor's additions (K-03) ---------- */
.w3-stages { list-style: none; margin: 0; padding: 12px 20px; display: flex; gap: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.w3-stages li { display: inline-flex; align-items: center; gap: 8px; }
.w3-stages li.done { color: var(--muted); } .w3-stages li.now { color: var(--text); font-weight: 500; }
.w3-stg-i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: inline-grid; place-items: center; }
.w3-stages li.done .w3-stg-i { background: var(--st-published); border-color: var(--st-published); color: var(--bg); }
.w3-stg-i .ic { width: 11px; height: 11px; stroke-width: 3.2; }
.w3-stg-i .half { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(90deg, var(--text) 50%, transparent 50%); }
.w3-dirline { display: flex; align-items: center; gap: 10px; padding: 10px 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.w3-grey { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.w3-grey i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.w3-rules { padding: 8px 20px; font-size: 13px; color: var(--muted); }
.w3-rules ul { margin: 6px 0 2px; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.w3-bad { color: var(--st-error); }

/* ---------- the wheel ---------- */
.v3wheel { padding: 8px 24px 48px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.w3-tabs { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow-x: auto; scrollbar-width: none; align-self: flex-start; max-width: 100%; }
.w3-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; text-decoration: none; color: var(--muted); white-space: nowrap; }
.w3-tabs a i { font-style: normal; color: var(--faint); font-size: 12.5px; }
.w3-tabs a.on { background: var(--raised); color: var(--text); box-shadow: var(--shadow-sm); }
.w3-tabs .ic { width: 15px; height: 15px; }
.w3-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.w3-mode { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg a { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; }
.seg a.on { background: var(--raised); color: var(--text); box-shadow: var(--shadow-sm); }
.w3-leads { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel); font-size: 13px; }
.w3-leads .ic { width: 14px; height: 14px; color: var(--st-published); }
.w3-ver { white-space: nowrap; }
.w3-draft { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--accent-line); background: var(--accent-soft); position: sticky; top: calc(var(--bar-h) + 6px); z-index: 12; backdrop-filter: blur(6px); }
.w3-cols { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 16px; align-items: start; }
.w3-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.w3-ringcard { padding: 22px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.w3-ring { position: relative; width: min(280px, 100%); aspect-ratio: 1; }
.w3-ring svg { width: 100%; height: 100%; overflow: visible; }
.w3-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.w3-ring-c b { font: 600 34px/1 var(--sans); }
.w3-ring-cap { margin: 0; text-align: center; }
.w3-cycle-card { padding: 16px 16px 12px; }
.w3-cc-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.w3-cc-h .h2 { font-size: 16px; }
.w3-manual { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; margin-bottom: 8px; border: 1px dashed var(--line-strong); border-radius: 10px; font-size: 13px; }
.w3-cys { list-style: none; margin: 0; padding: 0; }
.w3-cy { display: grid; grid-template-columns: 16px 28px minmax(0, 1fr) auto auto 34px; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.w3-cy.over { background: var(--accent-soft); } .w3-cy.dragging { opacity: .4; }
.w3-grip { color: var(--faint); cursor: grab; } .w3-grip.off { opacity: .3; cursor: default; } .w3-grip .ic { width: 14px; height: 14px; }
.w3-sq { width: 26px; height: 26px; border-radius: 8px; border: 0; background: var(--c); }
.w3-cy-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.w3-cy-t b { font-size: 15px; cursor: text; } .w3-cy-t .sub { cursor: text; font-size: 12.5px; }
.w3-cy-n { white-space: nowrap; font-size: 12px; }
.w3-wk { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--sunken); border: 1px solid var(--line); }
.w3-wk button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; }
.w3-wk button:disabled { opacity: .3; } .w3-wk button .ic { width: 12px; height: 12px; }
.w3-wk b { font-weight: 500; font-size: 13px; min-width: 44px; text-align: center; }
.w3-lock { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--faint); display: grid; place-items: center; }
.w3-lock.on { background: var(--text); color: var(--bg); } .w3-lock .ic { width: 15px; height: 15px; }
.w3-cy-f { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 2px; font-size: 12.5px; }
.w3-cy-f span { display: flex; align-items: center; gap: 8px; } .w3-cy-f .ic { width: 13px; height: 13px; }
.w3-in { width: 100%; font-size: 14px; }
.w3-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.w3-fbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .w3-fh { margin-left: auto; }
.w3-colwrap { display: flex; gap: 14px; overflow-x: auto; align-items: flex-start; padding-bottom: 10px; }
.w3-col { flex: 0 0 258px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.w3-col.over { outline: 2px dashed var(--accent-line); outline-offset: -2px; }
.w3-col-h { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: color-mix(in srgb, var(--c) 10%, var(--panel)); border-bottom: 1px solid var(--line); }
.w3-col-t { display: flex; align-items: flex-start; gap: 8px; } .w3-col-t i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-top: 5px; flex: none; }
.w3-col-t b { flex: 1; font-size: 15px; } .w3-col-t .sub { margin-left: auto; }
.w3-t { position: relative; padding: 12px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; }
.w3-col-b .w3-t:first-child { border-top: 0; }
.w3-t:hover { background: var(--raised); } .w3-t.dragging { opacity: .4; }
.w3-t-b { display: flex; gap: 6px; } .w3-t-t { font-size: 13.5px; line-height: 1.4; flex: 1; }
.w3-t-l { color: var(--faint); } .w3-t-l .ic { width: 13px; height: 13px; }
.w3-t-s { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.w3-ts { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); } .w3-ts i { width: 6px; height: 6px; border-radius: 50%; background: var(--st-ready); }
.w3-ts.work i, .w3-ts.this i { background: var(--st-publishing); } .w3-ts.done i { background: var(--st-published); } .w3-ts.bank i { background: var(--st-draft); }
.w3-t-act { position: absolute; top: 8px; right: 8px; display: none; gap: 2px; padding: 2px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line-strong); }
.w3-t:hover .w3-t-act, .w3-t:focus-within .w3-t-act { display: flex; }
.w3-t-act button { width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--muted); display: grid; place-items: center; } .w3-t-act button:hover { color: var(--text); background: var(--sunken); }
.w3-t-act .ic { width: 13px; height: 13px; }
.w3-t.editing { background: var(--sunken); gap: 8px; } .w3-t-a { display: flex; gap: 8px; }
.w3-col-f { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-top: 1px solid var(--line); }
.w3-more { border: 0; background: none; cursor: pointer; } .w3-none { padding: 12px 14px; margin: 0; }
.w3-pop { position: fixed; z-index: 45; width: 252px; padding: 12px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.w3-pop-t { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 10px; } .w3-pop-t .ic { width: 14px; height: 14px; }
.w3-sw { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.w3-sw button { aspect-ratio: 1; border-radius: 10px; border: 2px solid transparent; background: var(--c); } .w3-sw button.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg) inset; }
.w3-ver-row .t { display: flex; flex-direction: column; gap: 3px; } .w3-vd { margin-top: 4px; } .w3-vd-l { font-size: 12.5px; padding: 2px 0; color: var(--muted); }
@media (max-width: 1100px) { .w3-cols { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .v3wheel { padding: 8px 14px 120px; } .w3-cy { grid-template-columns: 14px 26px minmax(0,1fr) 34px; } .w3-cy-n, .w3-wk { grid-column: 3 / 5; } .w3-col { flex-basis: 82vw; } }

/* ---------- compare ---------- */
.cmp-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cmp-side { padding: 22px; display: flex; align-items: center; gap: 22px; }
.cmp-side h3 { margin: 0 0 4px; font-size: 17px; }
.cmp-ring { position: relative; width: 130px; height: 130px; flex: none; } .cmp-ring svg { width: 100%; height: 100%; }
.cmp-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .cmp-ring b { font: 600 26px/1 var(--sans); }
.cmp-leg { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.cmp-leg li { display: flex; align-items: center; gap: 8px; } .cmp-leg i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); } .cmp-leg span { flex: 1; } .cmp-leg b { font-weight: 500; color: var(--faint); }
.cmp-ai { padding: 20px; display: flex; flex-direction: column; gap: 10px; } .cmp-ai p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.cmp-ai-h { display: flex; align-items: center; gap: 10px; } .cmp-ai-i { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; } .cmp-re { margin-left: auto; }
.cmp-ai-a { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.cmp-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.cmp-col header { padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 3px; } .cmp-col h3 { margin: 0; font-size: 16px; }
.cmp-t { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.cmp-m { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .cmp-r { margin-left: auto; }
.cmp-sel { height: 28px; border: 0; background: none; color: var(--muted); font-size: 12.5px; max-width: 150px; }
.cmp-got { margin-left: auto; color: var(--st-published); } .cmp-m .btn:last-child { margin-left: auto; }
.cmp-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
@media (max-width: 1100px) { .cmp-top, .cmp-cols { grid-template-columns: 1fr; } }

/* ---------- «Попросить Claude» (K-04) ---------- */
#v3bar { position: sticky; bottom: 0; z-index: 25; pointer-events: none; }
.as-bar { pointer-events: auto; display: flex; align-items: center; gap: 12px; margin: 0 24px 16px; padding: 8px 8px 8px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.as-bar.off { opacity: .7; }
.as-ic { width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; } .as-ic.sm { width: 32px; height: 32px; }
.as-ic .ic { width: 17px; height: 17px; }
.as-in { flex: 1; min-width: 0; height: 36px; border: 0; background: none; font-size: 14px; outline: none; }
.as-in::placeholder { color: var(--muted); }
.as-ch { display: flex; gap: 6px; flex: none; } .as-ch i { font-style: normal; font-size: 12.5px; color: var(--muted); background: var(--raised); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.as-go { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; flex: none; } .as-go:disabled { opacity: .4; }
.as-panel { pointer-events: auto; position: fixed; top: var(--bar-h); right: 0; bottom: 0; width: 520px; max-width: 100vw; z-index: 40; display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.as-panel > header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); } .as-panel > header > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.as-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; padding-bottom: 96px; }
.as-item { display: flex; flex-direction: column; gap: 8px; }
.as-me { align-self: flex-end; max-width: 86%; padding: 9px 14px; border-radius: 16px 16px 4px 16px; background: var(--raised); border: 1px solid var(--line); font-size: 14px; }
.as-ai { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.45; } .as-ai.bad { color: var(--st-error); }
.as-plan { border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--sunken); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.as-plan-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.as-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.as-plan li { display: flex; gap: 12px; align-items: flex-start; } .as-plan li > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.as-pi { width: 28px; height: 28px; border-radius: 9px; background: var(--raised); display: grid; place-items: center; flex: none; color: var(--muted); } .as-pi .ic { width: 15px; height: 15px; }
.as-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.as-done { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 12px; border-radius: var(--r); background: color-mix(in srgb, var(--st-published) 12%, transparent); font-size: 13.5px; } .as-done.part { background: color-mix(in srgb, var(--st-publishing) 14%, transparent); }
.as-done > span { display: flex; gap: 8px; align-items: flex-start; } .as-done .ic { width: 15px; height: 15px; color: var(--st-published); flex: none; margin-top: 2px; }
.as-draft { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 8px; } .as-draft pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: 13.5px; max-height: 240px; overflow: auto; }
.as-empty { margin: 8px 0; }
@media (max-width: 760px) {
  #v3bar { position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .as-bar { margin: 0 10px 8px; } .as-ch { display: none; }
  .as-panel { top: 0; width: 100vw; border-left: 0; }
  .as-panel[role] { z-index: 70; }
}

#v3bar[data-open="1"] .as-bar { margin-right: 544px; }
@media (max-width: 760px) { #v3bar[data-open="1"] .as-bar { margin-right: 10px; } }
.w3-st { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
