/**
 * TIW Client Collab — application layer.
 * Loads after app-wireframe.css (the scoped 1:1 wireframe styles) and adds
 * WordPress integration plus the components the live app needs.
 */

/* [hidden] must win over component display rules (chat page, badges). */
.tiwcc-root [hidden]{display:none !important}

/* ================================================================
   TIWCC Z-INDEX LADDER — single source of truth (audit 2026-09-23)
   ----------------------------------------------------------------
   TWO STACKING WORLDS — numbers only comparable WITHIN one world:

   A) BODY-level (appended to <body>, competes with page + WP):
        floatMenu .................. var(--z-float)  2147483646
        admin.js toast ............. 2147483646   (same tier — rule 3)
        WP admin bar (external) ......... 99999
        shell .tiwcc-app-mode ..... var(--z-shell)   99990
        theme / Bricks .................. 0–~900
      RULE 3: anything JS appends to <body> MUST use the --z-float
      tier, never a small number (it would hide behind the shell).

   B) INSIDE .tiwcc-root (isolation:isolate ⇒ children never leak;
      a positioned+z parent RE-PARENTS its children — audit the
      parent first, the child's z cannot escape it):
        micro band 0–70 — component internals, free values:
          wb-links 0 · wb-layer 1 · cover 2–3 · card/pin/more 5 ·
          chat-head/pin-guide 6 · pin-hint 7 · wb-tools 20/40 ·
          hintbtn 30 · dock-right(mobile) 45 · bars 50 ·
          dragging/rcursor 60 · board-more(mobile)/cursor 70
        inner-.wf-bar micro (cannot escape topbar unit 9000):
          search-results 120 · panel-drop (notif) 150
        chat dock ................... var(--z-chat)    8500
        topbar unit .wf-bar (carries search/notif/profile
          dropdowns as ONE unit) .... var(--z-topbar)  9000
        burger nav (≤768, inner bar) var(--z-nav)      9200
        profile menu (inner bar) .... var(--z-drop)    9500
        wb context menu ............. var(--z-wbmenu)  9600
        loading veil ................ var(--z-loading) 9650
        modals .wb-modal ............ var(--z-modal)   9700
        toast (readable over modal) . var(--z-toast)   9750
        shell (app-mode only) ....... var(--z-shell)   99990

   RULES FOR EVERY NEW OVERLAY:
     1. Pick a rung from this list — never invent a magic number.
     2. Child z never escapes a positioned+z parent: identify the
        OUTERMOST stacking context that will actually paint it.
     3. <body>-appended layer ⇒ --z-float tier.
     4. Context creators to audit every round: position+z-index,
        transform, filter, backdrop-filter, opacity<1, will-change,
        isolation, contain, mix-blend-mode.
     5. Geometry check: position:fixed children ignore the shell's
        admin-bar top offset — z alone can't fix an overlap band.
   ================================================================ */
:root{
	--z-chat:8500;
	--z-topbar:9000;
	--z-nav:9200;
	--z-drop:9500;
	--z-wbmenu:9600;
	--z-loading:9650;
	--z-modal:9700;
	--z-toast:9750;
	--z-shell:99990;
	--z-float:2147483646;
}

/* ===================== WP INTEGRATION ===================== */
.tiwcc-root{
	position:relative;
	display:flex;
	flex-direction:column;
	height:100vh;
	min-height:600px;
	overflow:hidden;
	background:
		radial-gradient(1200px 600px at 80% -10%, #ffffff 0%, transparent 60%),
		radial-gradient(900px 500px at -10% 110%, #ececee 0%, transparent 55%),
		#f4f4f5;
	color:#18181b;
	isolation:isolate;
	font-size:14px;
	line-height:1.45;
	-webkit-font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
/* kill theme typography inside the app */
.tiwcc-root h1,.tiwcc-root h2,.tiwcc-root h3,.tiwcc-root h4,.tiwcc-root h5,.tiwcc-root h6,
.tiwcc-root p,.tiwcc-root ul,.tiwcc-root ol,.tiwcc-root li,.tiwcc-root figure,.tiwcc-root blockquote{
	margin:0;padding:0;font-weight:inherit;font-size:inherit;line-height:inherit;color:inherit;list-style:none;
}
.tiwcc-root h1{font-size:20px}
.tiwcc-root h2{font-size:17px}
.tiwcc-root h3{font-size:15px}
.tiwcc-root h4{font-size:13.5px}
.tiwcc-root h5{font-size:13px;font-weight:700}
.tiwcc-root a{color:inherit;text-decoration:none;box-shadow:none}
.tiwcc-root a:hover{color:inherit}
.tiwcc-root button{box-shadow:none;text-shadow:none;outline:none}
/* r59: theme button/label/img globals (text-transform, letter-spacing, min-height,
   text-align:inherit, borders on img …) must not leak into the app. Element rules
   of a theme are (0,0,1) and always lose to these (0,1,1) resets. */
/* r60: values are the real browser defaults (auto/normal), not 0/inherit. text-align lives in a
   lower-specificity rule (0,1,0) so component rules such as .att-row / .cv-item {text-align:left}
   win again — the (0,1,1) version centred every list row that is a <button>. */
.tiwcc-root button{text-transform:none;letter-spacing:normal;min-height:auto;min-width:auto}
.tiwcc-root :where(button){text-align:center;text-decoration:none;text-indent:0}
.tiwcc-root button:focus:not(:focus-visible){outline:none}
/* r59: a save in progress — the clicked button shows a small spinner and ignores further clicks */
/* r59: the confirm dialog always stacks above the dialog that opened it */
.tiwcc-root #confirmModal.wb-modal{z-index:calc(var(--z-modal) + 10)}
.tiwcc-root button.is-saving{cursor:progress;pointer-events:none;opacity:.85}
.tiwcc-root button.is-saving::before{content:"";display:inline-block;flex:none;width:11px;height:11px;margin-right:6px;vertical-align:-1px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:tiwcc-spin .7s linear infinite}
.tiwcc-root button.is-saving:disabled{opacity:.85}
.tiwcc-root .btn-primary.is-saving:disabled,.tiwcc-root .btn-primary.is-saving[disabled]{background:var(--ink);color:#fff;cursor:progress}
.tiwcc-root .ax-btn-primary.is-saving:disabled{background:var(--ax-ink);border-color:var(--ax-ink);color:#fff;cursor:progress}
.tiwcc-root .btn-outline.is-saving:disabled,.tiwcc-root .btn-ghost.is-saving:disabled{background:transparent;color:var(--ink)}
/* r60: (0,1,0) — beats theme element rules (0,0,1) but no longer overrides component classes on labels/images */
.tiwcc-root :where(label){text-transform:none;letter-spacing:inherit;font-size:inherit;font-weight:inherit;margin:0}
.tiwcc-root :where(img){border:0;padding:0;border-radius:0;box-shadow:none}
.tiwcc-root button:focus-visible{outline:2px solid rgba(24,24,27,.35);outline-offset:2px}
/* r60: focus returned to a dialog's opener after a mouse close — no ring (keyboard close keeps it) */
.tiwcc-root .no-ring:focus,.tiwcc-root .no-ring:focus-visible{outline:none;box-shadow:none}
.tiwcc-root input,.tiwcc-root textarea,.tiwcc-root select{background:transparent;border:none;box-shadow:none;outline:none;max-width:100%}
/* theme globals love select{width:100%} — force auto inside the app; full-width
   only where the layout wants it (modal fields, specs). */
.tiwcc-root select{width:auto}
.tiwcc-root .wb-fld select,.tiwcc-root .spec-input,.tiwcc-root .set-input.wide{width:100%}
.tiwcc-root .select-mini{width:auto;max-width:180px}
.tiwcc-root input[type=checkbox],.tiwcc-root input[type=radio]{width:auto;height:auto;min-width:0}
.tiwcc-root img{max-width:100%;height:auto;display:block}
.tiwcc-root table{border-collapse:separate;border-spacing:0}
.tiwcc-root svg{display:block;flex:none}

/* full app mode: overlay the whole viewport, above the theme */
.tiwcc-root.tiwcc-app-mode{position:fixed;inset:0;z-index:var(--z-shell);height:100vh;min-height:100vh}
body.tiwcc-locked{overflow:hidden}
body.admin-bar .tiwcc-root.tiwcc-app-mode{top:32px;height:calc(100vh - 32px);min-height:calc(100vh - 32px)}
@media screen and (max-width:782px){
	body.admin-bar .tiwcc-root.tiwcc-app-mode{top:46px;height:calc(100vh - 46px);min-height:calc(100vh - 46px)}
}
/* chat dock is position:fixed → viewport coords; the shell's admin-bar
   top offset does NOT move fixed children, so clear the band explicitly. */
body.admin-bar .tiwcc-root.tiwcc-app-mode:not(.no-header) .chat-dock{top:92px}
@media screen and (max-width:782px){
	body.admin-bar .tiwcc-root.tiwcc-app-mode:not(.no-header) .chat-dock{top:100px}
}
/* embedded mode (shortcode with fullscreen="0") */
.tiwcc-root.tiwcc-embedded{position:relative;height:var(--tiwcc-h,760px);min-height:520px;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.tiwcc-root.tiwcc-login-embed{height:auto;min-height:640px;border-radius:18px;border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden}
.tiwcc-root.tiwcc-readonly .board-more-menu button[data-action="invite"],
.tiwcc-root.tiwcc-readonly .board-more-menu button[data-action="export"],
.tiwcc-root.tiwcc-readonly [data-action="new-board"],
.tiwcc-root.tiwcc-readonly [data-edit-only]{display:none !important}

/* readonly banner */
.readonly-banner{display:flex;align-items:center;gap:10px;padding:9px 18px;background:#18181b;color:#fff;font-size:12px;font-weight:600}
.readonly-banner svg{opacity:.8}
.readonly-banner b{font-weight:800}

/* notices & inline cards */
.tiwcc-notice{margin:24px auto;max-width:520px;padding:22px 24px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);font-size:13px;color:var(--ink-2);text-align:center;line-height:1.6}
.tiwcc-inline-card{display:flex;align-items:center;gap:14px;justify-content:space-between;flex-wrap:wrap;margin:18px 0;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);font-size:13px}
.tiwcc-stats-inline{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px;background:#fff;border:1px solid var(--line);border-radius:14px}
.tiwcc-stats-inline .stat{min-width:104px;padding:8px 12px;border:1px solid var(--line);border-radius:10px}
.tiwcc-stats-inline .stat b{display:block;font-size:18px;letter-spacing:-.02em}
.tiwcc-stats-inline .stat span{font-size:11px;color:var(--muted)}
.tiwcc-stats-inline .btn{margin-left:auto}
.tiwcc-link-button{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;border-radius:999px;background:#18181b;color:#fff;font-weight:600;font-size:13px;text-decoration:none}
.tiwcc-link-button:hover{background:#3f3f46;color:#fff}

/* loading veil */
.tiwcc-loading{position:absolute;inset:0;display:none;align-items:center;justify-content:center;background:rgba(244,244,245,.6);backdrop-filter:blur(2px)}
.tiwcc-loading.show{display:flex}
.spinner{width:26px;height:26px;border-radius:50%;border:2.5px solid rgba(24,24,27,.15);border-top-color:#18181b;animation:tiwcc-spin .7s linear infinite;display:inline-block}
.spinner.sm{width:14px;height:14px;border-width:2px}
@keyframes tiwcc-spin{to{transform:rotate(360deg)}}
.skeleton{background:linear-gradient(90deg,#eee,#f7f7f7,#eee);background-size:200% 100%;animation:tiwcc-skel 1.3s linear infinite;border-radius:8px}
@keyframes tiwcc-skel{0%{background-position:200% 0}100%{background-position:-200% 0}}
.tiwcc-loading-spin{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}

/* ===================== HEADER EXTRAS ===================== */
.tiwcc-root .search{position:relative}
.search-results{position:absolute;top:calc(100% + 6px);left:auto;right:0;width:380px;max-width:80vw;background:#fff;border:1px solid var(--line-strong);border-radius:14px;box-shadow:var(--shadow-lg);padding:6px;display:none;z-index:120}
.search-results.open{display:block}
.sr-group{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);padding:8px 10px 4px}
.sr-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:8px 10px;border-radius:10px;font-size:12.5px;transition:background .2s var(--ease)}
.sr-item:hover{background:rgba(24,24,27,.05)}
.sr-item b{font-weight:650}
.sr-item span{color:var(--faint);font-size:11px;margin-left:auto;white-space:nowrap}
.sr-empty{padding:14px 12px;font-size:12px;color:var(--muted)}

.panel-drop{position:absolute;top:52px;right:14px;width:360px;max-width:88vw;background:#fff;border:1px solid var(--line-strong);border-radius:16px;box-shadow:var(--shadow-lg);z-index:150;overflow:hidden}
.panel-drop[hidden]{display:none}
.pd-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 15px;border-bottom:1px solid var(--line)}
.pd-head b{font-size:13px;font-weight:700}
.pd-body{max-height:420px;overflow-y:auto}
.pd-item{display:flex;gap:10px;padding:12px 15px;border-bottom:1px solid var(--line);cursor:pointer;transition:background .2s var(--ease)}
.pd-item:hover{background:rgba(24,24,27,.03)}
.pd-item.unread{background:rgba(24,24,27,.045)}
.pd-item .body{flex:1;min-width:0}
.pd-item p{font-size:12.5px;line-height:1.5;color:var(--ink-2)}
.pd-item time{font-size:10.5px;color:var(--faint);font-weight:600}
.pd-empty{padding:22px 16px;text-align:center;font-size:12px;color:var(--muted)}
.link-sm{font-size:11.5px;font-weight:700;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.link-sm:hover{color:var(--ink)}

/* ===================== DASHBOARD EXTRAS ===================== */
.proj{cursor:pointer}
.proj-cover{display:flex;align-items:center;justify-content:center}
.proj-cover .cover-img{position:absolute;inset:0;background-size:cover;background-position:center}
.proj-cover .pat{position:absolute;inset:0}
.proj-body h3{cursor:pointer}
.dash-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:10px;padding:44px 20px;border:1px dashed var(--line-strong);border-radius:var(--r-lg);color:var(--muted);font-size:13px;text-align:center}
.dash-empty svg{opacity:.5}
.dash-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.chip-filter{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 13px;border-radius:999px;border:1px solid var(--line-strong);font-size:12px;font-weight:600;color:var(--muted);background:#fff;transition:all .25s var(--ease)}
.chip-filter.active{background:var(--ink);border-color:var(--ink);color:#fff}
.side-panel{margin-top:18px;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.mini-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:14px;box-shadow:var(--shadow)}
.mini-card h4{font-size:12.5px;font-weight:700;display:flex;align-items:center;gap:8px}
.mini-card p{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.5}
.mini-card .row{display:flex;align-items:center;gap:8px;margin-top:10px;flex-wrap:wrap}
.tpl-card{cursor:pointer;transition:all .25s var(--ease)}
.tpl-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);border-color:var(--line-strong)}
.tpl-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
.tpl-tag{font-size:10.5px;font-weight:600;color:var(--var-ink-2,#3f3f46);background:rgba(24,24,27,.05);border-radius:999px;padding:2px 8px}
.feed-item{display:flex;gap:11px;align-items:flex-start;padding:11px 4px;border-bottom:1px solid var(--line);font-size:12.5px;line-height:1.55}
.feed-item:last-child{border-bottom:none;padding-bottom:6px}
/* long activity lines (whiteboard titles, slugs) may shrink/wrap, never squeeze the row */
.feed-item>div{min-width:0;word-break:break-word}
.feed-item .av{width:28px;height:28px;font-size:11px}
.feed-item b{font-weight:700}
.feed-item time{display:block;font-size:10.5px;color:var(--faint);font-weight:600;margin-top:2px}
/* filter rail: roomier inner padding — a long activity list shouldn't feel
   cramped against the edges (same .dock-content lives only in dock-left) */
.tiwcc-root .dock-content{padding:11px 12px 16px;gap:4px}

/* ===================== KANBAN EXTRAS ===================== */
.col-empty{margin:2px 0;padding:20px 12px;text-align:center;border:1px dashed var(--line-strong);border-radius:var(--r-md);font-size:11.5px;color:var(--faint)}
.col-cards.wb-loading{opacity:.6}
.mcard.selected{border-color:var(--ink);box-shadow:var(--shadow)}
.mcard .thumb{background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;color:var(--faint);font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.mcard .thumb img{width:100%;height:100%;object-fit:cover}
.mcard .meta-ic svg{opacity:.7}
.mcard .chip svg{flex:none}
.mcard .card-actions{position:absolute;top:8px;right:8px;display:flex;gap:4px;opacity:0;transition:opacity .2s var(--ease);z-index:5}
.mcard:hover .card-actions{opacity:1}
.card-actions .mini-btn{width:24px;height:24px;border-radius:8px;background:rgba(255,255,255,.92);border:1px solid var(--line-strong);display:flex;align-items:center;justify-content:center;color:var(--ink-2)}
.card-actions .mini-btn:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.mcard .mcard-note{font-size:11px;color:var(--faint);margin-top:6px;display:flex;align-items:center;gap:6px}

/* category color dots */
.dot.ring-0{background:#a1a1aa}.dot.ring-1{background:#71717a}.dot.ring-2{background:#16a34a}.dot.ring-3{background:#d4d4d8}

/* ===================== DETAIL DOCK EXTRAS ===================== */
.detail-body{flex:1;overflow-y:auto;padding:0 16px 18px}
.detail-empty{padding:40px 20px;text-align:center;color:var(--muted);font-size:12.5px;line-height:1.6}
.detail-empty svg{opacity:.4;margin:0 auto 10px}
.spec-group{margin-top:14px}
.spec-row{margin-bottom:14px}
.spec-group .gl{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--faint);margin-bottom:8px}
.spec-custom-add{display:flex;gap:6px;margin-top:8px}
.att-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px;margin-top:8px}
.att-item{position:relative;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fafafa;aspect-ratio:1/1}
.att-item img{width:100%;height:100%;object-fit:cover}
.att-item .att-file{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:100%;padding:6px;font-size:9.5px;font-weight:700;color:var(--muted);text-align:center;word-break:break-all}
.att-item .att-del{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:6px;background:rgba(255,255,255,.92);border:1px solid var(--line-strong);display:flex;align-items:center;justify-content:center}
.att-item .att-del:hover{background:#dc2626;color:#fff;border-color:#dc2626}
.att-hint{font-size:11px;color:var(--faint);margin-top:6px}
.upload-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:16px;border:1px dashed var(--line-strong);border-radius:12px;background:rgba(255,255,255,.6);cursor:pointer;font-size:11.5px;color:var(--muted);text-align:center;margin-top:10px}
.upload-drop:hover,.upload-drop.dragover{border-color:var(--ink);color:var(--ink)}
.pin-layer{position:absolute;inset:0}
.pin.cmt-pin{position:absolute;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;background:#fff;border:2px solid var(--ink);display:flex;align-items:center;justify-content:center;font-size:9.5px;font-weight:800;cursor:pointer;transform:none;z-index:5;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.pin.cmt-pin:hover{background:var(--ink);color:#fff}
.pin.cmt-pin.draft{border-style:dashed;background:rgba(255,255,255,.7)}
.pin-guide{position:absolute;inset:0;cursor:crosshair;z-index:6;background:rgba(24,24,27,.06)}
.pin-hint{position:absolute;top:8px;left:8px;z-index:7;background:rgba(24,24,27,.88);color:#fff;font-size:10.5px;font-weight:600;padding:4px 9px;border-radius:999px}
.pc-add-row{display:flex;gap:6px;margin-top:8px}
.pc-add-row input{flex:1;padding:7px 9px;border:1px solid var(--line-strong);border-radius:8px;font-size:12px;background:#fff}
.pc-item.editable{display:flex;align-items:flex-start;gap:6px}
.pc-item.editable button{margin-left:auto;color:var(--faint);opacity:0;transition:opacity .2s}
.pc-item.editable:hover button{opacity:1}
.cmt .body p{white-space:pre-wrap}
.cmt .cmt-actions{display:flex;gap:10px;margin-top:5px;opacity:0;transition:opacity .2s}
.cmt:hover .cmt-actions{opacity:1}
.cmt.resolved{opacity:.6}
.pinref{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;font-weight:700;color:var(--muted);background:rgba(24,24,27,.05);border-radius:999px;padding:2px 8px;margin:4px 0}
/* textarea on top, action buttons below — never squeezed beside them */
.approve-bar{flex-direction:column;align-items:stretch}
/* r50: the bar is a column, so the wireframe rule `.approve-bar .btn{flex:1}` (basis 0) squashed direct-child buttons such as Deliver to ~17px. */
.tiwcc-root .approve-bar > .btn{flex:none}
.approve-bar .btn-note{display:flex;gap:8px;align-items:center;flex:none;width:100%}
.approve-bar .btn-row{display:flex;gap:8px;margin-top:8px}
.approve-bar textarea{width:100%;min-height:64px;border:1px solid var(--line-strong);border-radius:10px;padding:8px 10px;font-size:12px;resize:vertical;background:#fff}
/* r39: review lifecycle badge + delivery controls inside the approve bar. */
.rv-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;padding:4px 9px;border-radius:999px;border:1px solid;margin-bottom:8px;align-self:flex-start}
.rv-badge time{font-weight:500;opacity:.72}
.rv-badge.rv-waiting_client{color:#c2410c;background:rgba(249,115,22,.09);border-color:rgba(249,115,22,.35)}
.rv-badge.rv-revision_requested{color:#b91c1c;background:rgba(239,68,68,.07);border-color:rgba(239,68,68,.32)}
.rv-badge.rv-waiting_internal{color:#57534e;background:rgba(120,113,108,.08);border-color:rgba(120,113,108,.32)}
.rv-badge.rv-internal_changes,.rv-badge.rv-in_revision{color:#b91c1c;background:rgba(239,68,68,.07);border-color:rgba(239,68,68,.32)}
.rv-badge.rv-approved{color:#15803d;background:rgba(34,197,94,.09);border-color:rgba(34,197,94,.35)}
.rv-badge.rv-delivered{color:var(--ink);background:rgba(24,24,27,.06);border-color:var(--line-strong)}
.rv-note{font-size:11.5px;color:var(--muted);margin:0 0 8px;white-space:pre-wrap}
.rv-deliver{align-self:stretch;justify-content:center}
/* r39: "Needs Your Attention" dashboard section. */
#dashAttention{margin:0 0 18px;animation:tiwcc-fadeUp .45s var(--ease)}
#dashAttention[hidden]{display:none}
.att-head{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.att-head h3{font-size:13px;font-weight:750;letter-spacing:-.01em;margin:0}
.att-count{font-size:10.5px;font-weight:700;color:var(--muted);background:rgba(24,24,27,.06);border-radius:999px;padding:2px 7px}
.att-list{display:flex;flex-direction:column;gap:6px}
.att-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:9px 12px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:rgba(255,255,255,.72);cursor:pointer;font:inherit;transition:all .22s var(--ease);box-shadow:0 1px 2px rgba(24,24,27,.03)}
.att-row:hover{border-color:var(--ink);transform:translateY(-1px);box-shadow:var(--shadow)}
.att-ic{flex:none;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--r-sm);background:rgba(24,24,27,.05);color:var(--ink-2)}
.att-main{min-width:0;display:flex;flex-direction:column;gap:1px;flex:1}
.att-main b{font-size:12.5px;font-weight:650;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.att-sub{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.att-act{flex:none;display:inline-flex;align-items:center;gap:3px;font-size:11px;font-weight:700;color:var(--muted)}
.att-row:hover .att-act{color:var(--ink)}
.att-approve .att-ic{background:rgba(249,115,22,.12);color:#c2410c}
.att-review .att-ic,.att-delivered .att-ic{background:rgba(34,197,94,.12);color:#15803d}
.att-revision .att-ic{background:rgba(239,68,68,.1);color:#b91c1c}
.att-overdue .att-ic{background:rgba(239,68,68,.1);color:#b91c1c}
/* r40: Review Workspace + Reviews inbox. */
.att-updated .att-ic{background:rgba(249,115,22,.12);color:#c2410c}
.att-waiting .att-ic{background:rgba(24,24,27,.05);color:var(--ink-2)}
.rev-shell{flex:1;display:flex;flex-direction:column;min-height:0;width:100%;max-width:1180px;margin:0 auto;padding:18px 22px 20px;gap:13px}
.rev-topbar{display:flex;align-items:center;gap:10px;flex:none}
.rev-topbar #revBack[hidden]{display:none}
.rev-titles{display:flex;flex-direction:column;gap:1px;min-width:0}
.rev-titles h1{font-size:17px;font-weight:750;letter-spacing:-.015em;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rev-titles span{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rev-body{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:16px;padding-bottom:10px}
.rev-loading{display:flex;align-items:center;justify-content:center;gap:9px;padding:48px 0;color:var(--muted);font-size:12.5px}
.rev-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:54px 20px;color:var(--muted);border:1.5px dashed var(--line-strong);border-radius:14px;background:rgba(255,255,255,.5)}
.rev-empty h3{margin:0;font-size:14px;font-weight:700;color:var(--ink)}
.rev-empty p{margin:0;font-size:12px;max-width:380px}
.rev-allok{border-style:solid;border-color:rgba(34,197,94,.35);background:rgba(34,197,94,.05)}
.rev-allok svg{color:#15803d}
.rev-group{display:flex;flex-direction:column;gap:8px;animation:tiwcc-fadeUp .4s var(--ease)}
.rev-group h3{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:750;letter-spacing:-.01em;margin:0;color:var(--ink-2)}
.rvw{display:flex;flex-direction:column;gap:13px;animation:tiwcc-fadeUp .4s var(--ease);width:100%}
.rvw-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.rvw-top .rv-badge{margin-bottom:0}
.rvw-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11.5px;color:var(--muted);font-weight:600}
.rvw-dot{opacity:.5}
.rvw-assignee{display:inline-flex;align-items:center;gap:6px;margin-left:auto;font-size:11.5px;font-weight:650;color:var(--ink-2)}
.rvw-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.rvw-main{display:flex;flex-direction:column;gap:13px;min-width:0}
.rvw-side{display:flex;flex-direction:column;gap:12px;position:sticky;top:0}
.rvw-groups{display:flex;gap:6px;flex-wrap:wrap}
.rvw-gchip{font:inherit;font-size:11.5px;font-weight:650;padding:5px 11px;border-radius:999px;border:1px solid var(--line-strong);background:rgba(255,255,255,.7);color:var(--ink-2);cursor:pointer;transition:all .18s var(--ease)}
.rvw-gchip:hover{border-color:var(--ink)}
.rvw-gchip.active{background:var(--ink);border-color:var(--ink);color:#fff}
.rvw-stage{border:1px solid var(--line-strong);border-radius:var(--r-md);background:repeating-conic-gradient(rgba(24,24,27,.045) 0% 25%,#fff 0% 50%) 0 0/22px 22px;display:flex;align-items:center;justify-content:center;min-height:260px;max-height:62vh;overflow:hidden;padding:10px}
.rvw-img{max-width:100%;max-height:60vh;object-fit:contain;border-radius:8px;box-shadow:0 2px 14px rgba(24,24,27,.12);background:#fff}
.rvw-file{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;color:var(--ink-2);padding:26px}
.rvw-file b{font-size:13px;word-break:break-all}
.rvw-file span{font-size:11px;color:var(--muted)}
.rvw-nopreview{display:flex;flex-direction:column;align-items:center;gap:10px;padding:50px 16px;color:var(--muted);border:1.5px dashed var(--line-strong);border-radius:var(--r-md);background:rgba(255,255,255,.5);text-align:center}
.rvw-nopreview p{margin:0;font-size:12px;max-width:320px}
.rvw-vers{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.rvw-vlabel{font-size:10.5px;font-weight:750;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-right:2px}
.rvw-v{font:inherit;font-size:11px;font-weight:700;padding:4px 9px;border-radius:8px;border:1px solid var(--line-strong);background:rgba(255,255,255,.75);color:var(--ink-2);cursor:pointer;transition:all .18s var(--ease)}
.rvw-v:hover{border-color:var(--ink)}
.rvw-v.active{background:var(--ink);border-color:var(--ink);color:#fff}
.rvw-cap{display:flex;flex-direction:column;gap:2px;font-size:12px}
.rvw-cap b{color:var(--ink);font-weight:650}
.rvw-cap span{color:var(--muted);font-size:11px}
.rvw-vnote{font-style:italic}
.rvw-fb{border:1px solid var(--line);border-radius:var(--r-md);background:rgba(255,255,255,.72);padding:14px;display:flex;flex-direction:column;gap:10px}
.rvw-fb h4{margin:0;font-size:11px;font-weight:750;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.rvw-c{display:flex;gap:9px;align-items:flex-start}
.rvw-c.reply{margin-left:34px}
.rvw-c.resolved{opacity:.62}
.rvw-cb{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.rvw-ch{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.rvw-ch b{font-size:12px;font-weight:700;color:var(--ink)}
.rvw-ch time{font-size:10.5px;color:var(--faint)}
.rvw-cres{font-size:9.5px;font-weight:750;letter-spacing:.04em;text-transform:uppercase;color:#15803d;background:rgba(34,197,94,.1);border-radius:999px;padding:2px 7px}
.rvw-c p{margin:0;font-size:12.5px;color:var(--ink-2);white-space:pre-wrap;word-break:break-word}
.rvw-creply{align-self:flex-start;font-size:11px}
.rvw-cnone{margin:0;font-size:12px;color:var(--muted)}
.rvw-fbform{display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--line);padding-top:10px}
.rvw-fbform textarea{width:100%;border:1px solid var(--line-strong);border-radius:10px;padding:8px 10px;font:inherit;font-size:12.5px;resize:vertical;background:#fff}
.rvw-fbform textarea:focus{border-color:var(--ink);box-shadow:0 0 0 3px var(--ring);outline:none}
.rvw-fbform .btn{align-self:flex-end}
.rvw-replying{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:650;color:var(--muted);background:rgba(24,24,27,.05);border-radius:999px;padding:3px 6px 3px 10px;align-self:flex-start}
.rvw-replying button{border:0;background:none;cursor:pointer;font-size:13px;line-height:1;color:var(--muted);padding:0 3px}
.rvw-replying button:hover{color:var(--ink)}
.rvw-act{border:1px solid var(--line);border-radius:var(--r-md);background:rgba(255,255,255,.8);padding:13px;display:flex;flex-direction:column;gap:9px}
.rvw-act h4{margin:0;font-size:12px;font-weight:750;color:var(--ink)}
.rvw-act textarea{width:100%;border:1px solid var(--line-strong);border-radius:10px;padding:8px 10px;font:inherit;font-size:12px;resize:vertical;background:#fff}
.rvw-act textarea:focus{border-color:var(--ink);box-shadow:0 0 0 3px var(--ring);outline:none}
.rvw-row{display:flex;gap:8px}
.rvw-q{margin:0;font-size:11.5px;color:var(--ink-2);background:rgba(24,24,27,.045);border-left:2.5px solid var(--line-strong);border-radius:0 8px 8px 0;padding:7px 9px;white-space:pre-wrap}
.rvw-note{margin:0;font-size:11.5px;color:var(--muted)}
.rvw-hist{display:flex;flex-direction:column;gap:2px;border-top:1px dashed var(--line);padding-top:8px}
.rvw-hist:first-of-type{border-top:0;padding-top:0}
.rvw-hist b{font-size:11.5px;font-weight:700;color:var(--ink-2)}
.rvw-hist span{font-size:10.5px;color:var(--faint)}
.rvw-hist .rvw-q{margin-top:4px}
.rvw-hist.st-approved b{color:#15803d}
.rvw-hist.st-revision b,.rvw-hist.st-rejected b{color:#b91c1c}
.rvw-hist.st-cancelled b{color:var(--muted)}
@media (max-width:1020px){
.rvw-grid{grid-template-columns:1fr}
.rvw-side{position:static}
.rev-shell{padding:14px 14px 18px}
.rvw-assignee{margin-left:0}
}
.decided-note{margin:0 16px 14px;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.75);border:1px solid var(--line);font-size:12px;color:var(--ink-2);line-height:1.5}
.model-box{position:relative;border:1px solid var(--line);border-radius:12px;background:linear-gradient(180deg,#fafafa,#f0f0f1);height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--muted);margin-bottom:14px;overflow:hidden}
.model-box model-viewer,.model-box iframe{width:100%;height:100%;border:none;background:#fff}
.switch.clickable{cursor:pointer}
.switch.clickable:hover{opacity:.85}

/* ===================== WHITEBOARD EXTRAS ===================== */
.wb-canvas{position:relative;overflow:hidden}
/* connector lines: same transform-origin as .wb-layer (0 0) so zoom/pan stays
   pixel-locked; z 0 keeps links painted UNDER the node layer */
.wb-links{transform-origin:0 0;z-index:0}
.tiwcc-root .wb-layer{z-index:1}
/* tools rail: always above canvas nodes, safe on touch devices */
.tiwcc-root .wb-tools{z-index:40;user-select:none;-webkit-user-select:none;box-shadow:var(--shadow-lg);border:1px solid var(--line)}
.tiwcc-root .wb-tools button{touch-action:manipulation}
.tiwcc-root .filter-item .chip{border-color:rgba(24,24,27,.16)}
/* collapsed filter rail: centred chevron only — no truncated "FIL" label */
.tiwcc-root .dock-left.collapsed .dock-head{justify-content:center;padding:0;gap:0}
.tiwcc-root .dock-left.collapsed .dock-head span{display:none}
.tiwcc-root .dock-left.collapsed .dock-head .btn svg{transform:rotate(180deg)}
/* spec rows: label ON TOP, bordered input BELOW — never side by side.
   (.spec-input needs .tiwcc-root scope or .tiwcc-root input{border:none} wins) */
.tiwcc-root .spec-row{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px}
.tiwcc-root .spec-row .k{flex:none;width:100%;font-size:11.5px;font-weight:650}
.tiwcc-root .spec-row .v{width:100%;text-align:left;word-break:break-word}
.tiwcc-root .spec-input{width:100%;padding:7px 10px;border:1px solid var(--line-strong);border-radius:9px;font-size:12.5px;background:#fff}
.tiwcc-root .spec-input:focus{border-color:var(--ink);box-shadow:0 0 0 3px var(--ring)}
/* cover picker: dashed empty field → once an image is set the preview REPLACES
   the field; clicking the preview re-picks, corner trash deletes */
.cover-pick{position:relative;display:flex;align-items:center;justify-content:center;width:100%;max-width:360px;height:140px;border:1.5px dashed var(--line-strong);border-radius:12px;background:rgba(255,255,255,.55);cursor:pointer;overflow:hidden;transition:border-color .2s var(--ease),background .2s var(--ease)}
.cover-pick:hover{border-color:var(--ink);background:#fff}
.cover-pick:focus-visible{outline:2px solid rgba(24,24,27,.35);outline-offset:2px}
.cover-pick .cover-empty{display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--muted);font-size:12px;font-weight:600;padding:10px;text-align:center}
.cover-pick .cover-empty svg{opacity:.65}
.cover-pick .cover-img{position:absolute;inset:0;background-size:cover;background-position:center;display:none}
.cover-pick.has-image{border-style:solid;border-color:var(--line-strong);background:#fafafa}
.cover-pick.has-image .cover-empty{display:none}
.cover-pick.has-image .cover-img{display:block}
.cover-pick .cover-del{position:absolute;top:7px;right:7px;width:26px;height:26px;border-radius:8px;background:rgba(255,255,255,.94);border:1px solid var(--line-strong);display:none;align-items:center;justify-content:center;color:#dc2626;z-index:3;box-shadow:0 1px 4px rgba(0,0,0,.14);padding:0}
.cover-pick.has-image .cover-del{display:flex}
.cover-pick .cover-del:hover{background:#dc2626;color:#fff;border-color:#dc2626}
.cover-pick .cover-edit{position:absolute;left:7px;bottom:7px;z-index:2;font-size:10.5px;font-weight:700;background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:var(--shadow);padding:4px 9px;border-radius:999px;opacity:0;transition:opacity .2s var(--ease);pointer-events:none}
.cover-pick:hover .cover-edit{opacity:1}
/* whiteboard menu: colour swatches */
/* wb menu colours: label on its own line, circular swatches that wrap, plus a
   native colour picker for custom colours — scoped to beat .wb-menu button{width:100%} */
.tiwcc-root .wb-menu .wb-colors{display:flex;flex-wrap:wrap;gap:6px;align-items:center;width:auto;max-width:100%;padding:8px 9px 9px;border-top:1px solid var(--line);margin-top:4px}
.tiwcc-root .wb-menu .wb-colors .wb-color-label{width:100%;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);margin:0 0 2px}
.tiwcc-root .wb-menu button.wb-swatch,
.tiwcc-root .wb-menu label.wb-swatch{width:22px;height:22px;min-width:22px;flex:0 0 22px;padding:0;border-radius:50%;border:1.5px solid rgba(24,24,27,.2);display:flex;align-items:center;justify-content:center;background:#fff;cursor:pointer;overflow:hidden;margin:0}
.tiwcc-root .wb-menu button.wb-swatch:hover,
.tiwcc-root .wb-menu label.wb-swatch:hover{transform:scale(1.12);background-color:inherit}
.tiwcc-root .wb-menu .wb-swatch.active{outline:2px solid var(--ink);outline-offset:1px}
.wb-swatch input[type=color]{width:26px;height:26px;border:none;padding:0;background:none;cursor:pointer;transform:scale(1.15)}
.wb-swatch input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.wb-swatch input[type=color]::-webkit-color-swatch{border:none;border-radius:50%}
/* Custom swatch starts as a rainbow wheel (native picker hidden underneath);
   JS repaints it with the picked colour afterwards. */
.tiwcc-root .wb-menu label.wb-swatch.wb-custom{position:relative;background:conic-gradient(from 210deg,#ff3b30,#ff9500,#ffd60a,#34c759,#32ade6,#5e5ce6,#ff2d92,#ff3b30)!important;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.7),0 0 0 1px rgba(24,24,27,.14)}
.tiwcc-root .wb-menu label.wb-swatch.wb-custom input[type=color]{position:absolute;inset:0;width:100%;height:100%;opacity:0;transform:none;cursor:pointer}
/* each filter-dock section is its own block — activity/library can't squash
   status/category rows (flex children no longer shrink each other) */
.tiwcc-root .dock-sec{flex:none;min-height:0}
/* corner resize handles on the selected whiteboard node */
.wb-item .rh,.wb-zone .rh{position:absolute;width:11px;height:11px;background:#fff;border:2px solid var(--ink);border-radius:3px;z-index:60;opacity:0;pointer-events:none;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.selected .rh{opacity:1;pointer-events:auto}
.rh-nw{left:-6px;top:-6px;cursor:nwse-resize}
.rh-ne{right:-6px;top:-6px;cursor:nesw-resize}
.rh-sw{left:-6px;bottom:-6px;cursor:nesw-resize}
.rh-se{right:-6px;bottom:-6px;cursor:nwse-resize}
/* selected nodes must not clip their handles */
.wb-item.selected,.wb-zone.selected{overflow:visible}
/* chat channel switcher in the dock head */
.chat-head{position:relative;z-index:6}
.chat-head .chan-btn{display:flex;align-items:center;gap:6px;text-transform:none;letter-spacing:0;font:inherit;font-weight:700;color:var(--muted);padding:5px 7px;border-radius:8px;transition:background .15s}
.chat-head .chan-btn:hover{background:rgba(24,24,27,.06);color:var(--ink)}
.chat-head .chan-btn .chev{opacity:.7}
/* profile photo controls (modal) */
.avatar-row{display:flex;align-items:center;gap:14px;padding:4px 0 8px}
/* Every avatar image is clipped to a perfect circle (header, side user,
   profile modal…) — .av already carries border-radius:50%, just needs the
   overflow clip + img sizing for photo avatars. */
.tiwcc-root .av{overflow:hidden}
.tiwcc-root .av img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.av.av-lg{width:72px;height:72px;font-size:26px;border-width:3px;overflow:hidden;position:relative;flex:none}
.av.av-lg img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.avatar-actions{display:flex;flex-direction:column;gap:8px}
.avatar-actions .btn{justify-content:flex-start}
.wb-layer{transform-origin:0 0;will-change:transform}
.wb-links{position:absolute;left:0;top:0;width:4000px;height:2800px;pointer-events:none;overflow:visible;z-index:0;transform-origin:0 0}
.wb-item.selected,.wb-note.selected,.wb-zone.selected{outline:2px solid var(--ink);outline-offset:2px}
.wb-item{cursor:grab}
.wb-item.dragging,.wb-note.dragging,.wb-zone.dragging{cursor:grabbing;box-shadow:0 16px 40px rgba(24,24,27,.18);z-index:50}
.wb-item .t{background-size:cover!important;background-position:center!important}
/* Free text: no box — transparent, borderless, just type on the canvas */
/* (legacy .text-node rules removed — text nodes render as .wb-text) */
.wb-item .more{opacity:0;transition:opacity .2s}
.wb-item:hover .more{opacity:1}
.wb-note.sticky{background:#fffdf5;border-color:#e8e3d3}
.wb-zone.linked{outline-color:#a1a1aa}
.wb-link-path{stroke:#a1a1aa;stroke-width:1.6;fill:none;stroke-dasharray:5 4}
.wb-link-path.active{stroke:#18181b;stroke-dasharray:none}
.wb-empty{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);text-align:center;color:var(--muted);font-size:13px;max-width:340px;line-height:1.6;pointer-events:none}
.wb-empty b{display:block;font-size:14px;color:var(--ink-2);margin-bottom:4px}
.wb-tools button.link-active{background:var(--ink);color:#fff}
.wb-zoom .lvl{min-width:44px;text-align:center}
.wb-hint.show{opacity:1;transform:translateY(0)}

/* ===================== CHAT EXTRAS ===================== */
.chat-body .msg.pending{opacity:.6}
/* Day separator — pill di tengah, sticky saat scroll (gaya WhatsApp). Berlaku untuk
   dock (.chat-body) dan halaman Chat penuh (.cv-msgs). Rung z: micro band (3). */
.tiwcc-root .day-sep{position:sticky;top:6px;z-index:3;align-self:center;display:flex;justify-content:center;width:auto;max-width:100%;margin:12px 0 4px;pointer-events:none}
.tiwcc-root .day-group{display:flex;flex-direction:column;gap:9px;flex:none;min-width:0}
.tiwcc-root .day-group:first-child .day-sep{margin-top:0}
.tiwcc-root .day-sep::before,.tiwcc-root .day-sep::after{content:none;display:none}
.tiwcc-root .day-sep > span{display:inline-block;padding:4px 12px;border-radius:999px;background:rgba(255,255,255,.94);border:1px solid var(--line);box-shadow:0 1px 3px rgba(24,24,27,.06);font-size:11px;font-weight:700;line-height:1.4;color:var(--muted);letter-spacing:.01em;text-transform:none;white-space:nowrap;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.chat-empty{padding:26px 14px;text-align:center;font-size:12px;color:var(--muted)}
.chat-link{color:var(--ink);text-decoration:underline;text-underline-offset:3px;word-break:break-all}
.chat-dock .chat-body{scroll-behavior:smooth}

/* ===================== ADMIN PANEL (front-end) ===================== */
.panel-box{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);overflow:hidden}
.panel-box .panel-head{display:flex;align-items:center;gap:10px;padding:15px 18px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.panel-box .panel-head h3{font-size:14px;font-weight:700}
.panel-box .panel-head p{font-size:11.5px;color:var(--muted)}
/* heading on top, description wrapped underneath — never side by side */
.panel-box .panel-head .tt{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}
.panel-box .panel-head .tt h3{line-height:1.3}
.panel-box .panel-head .tt p{line-height:1.45;word-break:break-word}
/* topbar: title block stacks vertically; bar height follows content */
.tiwcc-root .topbar{height:auto;min-height:56px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px;row-gap:4px}
.tiwcc-root .topbar .tt{display:flex;flex-direction:column;gap:3px;min-width:0;flex:0 1 auto}
.tiwcc-root .topbar .tt h1{font-size:15px;font-weight:700;letter-spacing:-.02em}
.tiwcc-root .topbar .tt .sub-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
/* loading veil above docks/menus but below modals — canonical rung, see ladder */
.tiwcc-loading{z-index:var(--z-loading)}
.tbl{width:100%;font-size:12.5px}
.tbl th{text-align:left;font-size:10.5px;text-transform:uppercase;letter-spacing:.07em;color:var(--faint);padding:11px 16px;background:#fafafa;border-bottom:1px solid var(--line)}
.tbl td{padding:12px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
.tbl tr:last-child td{border-bottom:none}
.tbl tr:hover td{background:rgba(24,24,27,.02)}
.tbl .u{display:flex;align-items:center;gap:10px}
.tbl .u b{font-weight:650;display:block}
.tbl .u span{font-size:11px;color:var(--muted)}
.role-pill{display:inline-flex;align-items:center;height:22px;padding:0 10px;border-radius:999px;font-size:11px;font-weight:700;background:rgba(24,24,27,.06);color:var(--ink-2)}
.role-pill.agency{background:#18181b;color:#fff}
.role-pill.designer{background:#e4e4e7;color:#18181b}
.select-mini{padding:5px 8px;border:1px solid var(--line-strong);border-radius:8px;font-size:11.5px;font-weight:600;background:#fff}
.settings-grid{display:grid;grid-template-columns:190px 1fr;gap:16px;align-items:start}
.set-nav{display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:8px;box-shadow:var(--shadow);position:sticky;top:12px}
.set-card{margin-bottom:14px}
.set-card h4{font-size:13.5px;font-weight:700;display:flex;align-items:center;gap:8px}
.set-card>p{font-size:11.5px;color:var(--muted);margin-top:3px}
.set-row{display:flex;align-items:center;gap:14px;padding:13px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.set-row:first-of-type{border-top:none;margin-top:8px}
.set-row .t{flex:1;min-width:180px}
.set-row .t b{font-size:12.5px;font-weight:650;display:block}
.set-row .t span{font-size:11px;color:var(--muted);display:block;margin-top:2px;line-height:1.5}
.set-input{padding:7px 10px;border:1px solid var(--line-strong);border-radius:9px;font-size:12.5px;background:#fff;min-width:180px}
.set-input.wide{width:100%}
.check-list{display:flex;flex-direction:column;gap:6px;max-height:180px;overflow-y:auto;border:1px solid var(--line);border-radius:10px;padding:10px}
.check-list label{display:flex;align-items:center;gap:8px;font-size:12.5px;cursor:pointer}
.audit-row{display:flex;gap:12px;align-items:flex-start;padding:13px 16px;border-bottom:1px solid var(--line)}
.audit-row:last-child{border-bottom:none}
.audit-row .av{width:30px;height:30px;font-size:11px}
.audit-row .body{flex:1;min-width:0}
.audit-row .body b{font-weight:650;font-size:12.5px}
.audit-row .body p{font-size:12px;color:var(--ink-2);margin-top:2px;line-height:1.55}
.audit-row .body time{font-size:10.5px;color:var(--faint);font-weight:600;display:block;margin-top:3px}
.audit-tag{font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:3px 8px;border-radius:999px;background:rgba(24,24,27,.06);color:var(--ink-2);white-space:nowrap}
.invite-row{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line);font-size:12.5px;flex-wrap:wrap}
.invite-row:last-child{border-bottom:none}
.code-box{flex:1;min-width:200px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;background:#fafafa;border:1px solid var(--line-strong);border-radius:9px;padding:7px 10px;overflow-x:auto;white-space:nowrap}

/* ===================== MODALS & FORMS ===================== */
.modal-grid{display:flex;flex-direction:column;gap:12px}
.modal-2col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:560px){.modal-2col{grid-template-columns:1fr}}
.wb-fld textarea{border:1px solid var(--line-strong);border-radius:10px;padding:8px 10px;font-size:12.5px;background:#fff;font-family:inherit;resize:vertical}
.wb-fld select{border:1px solid var(--line-strong);border-radius:10px;padding:8px 10px;font-size:12.5px;background:#fff;width:100%}
.wb-fld input[type=date]{border:1px solid var(--line-strong);border-radius:10px;padding:7px 10px;font-size:12.5px;background:#fff;width:100%}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12.5px;font-weight:600;color:var(--ink-2)}
.wb-modal-card{max-height:86vh;overflow-y:auto}
.form-error{margin:8px 0 2px;padding:9px 12px;border-radius:10px;background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;font-size:12px;line-height:1.5}
.form-success{margin:8px 0 2px;padding:9px 12px;border-radius:10px;background:#f0fdf4;border:1px solid #bbf7d0;color:#15803d;font-size:12px;line-height:1.5}
.invite-result{margin-top:12px;padding:12px;border-radius:12px;background:#f0fdf4;border:1px solid #bbf7d0}
.invite-result b{font-size:12.5px;color:#15803d}
.profile-info{margin-top:6px;padding:12px;border-radius:12px;background:#fafafa;border:1px solid var(--line);font-size:12px;color:var(--ink-2);line-height:1.7}
.register-boards{margin-top:12px;padding:12px;border-radius:12px;background:#fafafa;border:1px solid var(--line);font-size:12px;line-height:1.7}
.register-boards b{display:block;margin-bottom:4px}
.btn.small{height:30px;padding:0 12px;font-size:11.5px}
.tiwcc-root .btn[disabled]{opacity:.45;cursor:not-allowed}

/* ===================== CURSORS (live presence) ===================== */
.cursor-layer{position:absolute;inset:0;pointer-events:none;z-index:70;overflow:hidden}
.cursor-layer .rcursor{animation:none!important;transition:transform .18s linear}
.cursor-layer .rcursor .lbl{background:var(--ink)}
.cursor-layer .rcursor.client .lbl{background:#71717a}

/* ===================== RESPONSIVE PATCHES ===================== */
@media (max-width:1100px){
	.search-results{width:300px}
	.panel-drop{right:8px}
	.settings-grid{grid-template-columns:1fr}
	.set-nav{position:static;flex-direction:row;overflow-x:auto}
}
@media (max-width:768px){
	.tiwcc-root{font-size:13.5px}
	.cursor-layer{display:none}
	.dash-grid{grid-template-columns:1fr!important}
	.wb-tools{max-width:calc(100vw - 28px);overflow-x:auto}
	.modal-2col{grid-template-columns:1fr}
}


/* ===================== CHAT PAGE (full-screen messenger) ===================== */
.tiwcc-root #tiwcc-view-chat.active{display:flex}
.tiwcc-root .cv{position:relative;flex:1;min-width:0;display:flex;height:100%;min-height:0}
.cv-list{width:330px;flex:none;display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line);background:rgba(255,255,255,.45)}
.cv-list-head{padding:14px 14px 4px}
.cv-head-row{display:flex;align-items:center;gap:8px}
.cv-head-row h2{font-size:16px;font-weight:800;letter-spacing:-.01em}
.cv-search{margin-top:10px;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:7px 10px;color:var(--faint)}
.cv-search input{flex:1;min-width:0;border:none;background:none;font-size:12.5px;color:var(--ink);outline:none}
.cv-chips{display:flex;gap:6px;padding:8px 14px;flex-wrap:wrap}
.cv-chip{border:1px solid var(--line-strong);background:#fff;border-radius:999px;padding:4px 12px;font-size:11.5px;font-weight:700;color:var(--muted);cursor:pointer;transition:all .15s var(--ease)}
.cv-chip:hover{border-color:var(--ink);color:var(--ink)}
.cv-chip.active{background:var(--ink);border-color:var(--ink);color:#fff}
.cv-threads{flex:1;min-height:0;overflow-y:auto;padding:4px 8px 10px;display:flex;flex-direction:column;gap:2px}
.cv-searchres{max-height:42%;overflow-y:auto;border-top:1px solid var(--line);padding:4px 8px 8px;background:rgba(255,255,255,.7)}
.cv-sr-h{font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--faint);padding:6px 8px 2px}
.cv-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:9px 10px;border-radius:12px;border:none;background:transparent;cursor:pointer;font:inherit;color:inherit}
.cv-item:hover{background:rgba(24,24,27,.05)}
.cv-item.active{background:rgba(24,24,27,.08)}
.cv-iav{position:relative;flex:none;width:38px;height:38px;display:block}
.cv-iav .av,.cv-iav .gav{width:38px;height:38px;font-size:13px}
.cv-iav .av-img{width:38px!important;height:38px!important}
.cv-iav-sm{flex:none;display:block}
.gav{display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e4e4e7;color:#3f3f46;flex:none}
.gav-grp{background:#e0e7ff;color:#4338ca}
.gav-ch{background:#dcfce7;color:#166534}
.cv-on{position:absolute;right:0;bottom:0;width:11px;height:11px;border-radius:50%;background:#22c55e;border:2px solid #fff}
.cv-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.cv-r1{display:flex;align-items:baseline;gap:8px;min-width:0}
.cv-r1 b{font-size:13px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cv-r2{display:flex;align-items:center;gap:8px;min-width:0}
.cv-sub{flex:1;min-width:0;font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cv-time{font-size:10px;color:var(--faint);flex:none}
.cv-badge{background:#ef4444;color:#fff;font-size:10px;font-weight:800;min-width:18px;height:18px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px;flex:none}
.cv-chev{color:var(--faint);font-size:16px;flex:none}
.cv-none{padding:18px;text-align:center;color:var(--muted);font-size:12.5px}
.cv-thread{flex:1;min-width:0;display:flex;flex-direction:column;min-height:0;position:relative}
.cv-head{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.65);backdrop-filter:blur(10px)}
.cv-back{display:none}
.cv-hmeta{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.cv-hmeta b{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cv-hmeta span{font-size:11px;color:var(--muted)}
.cv-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--muted);padding:30px;text-align:center}
.cv-empty h3{font-size:15px;color:var(--ink);margin-top:6px}
.cv-empty p{font-size:12.5px;max-width:320px;line-height:1.6}
.cv-msgs{flex:1;min-height:0;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:9px}
.msg-imglink{display:block;max-width:260px;margin-top:4px}
.msg-img{max-width:260px;max-height:220px;border-radius:10px;display:block;border:1px solid rgba(24,24,27,.1)}
.file-card{display:flex;align-items:center;gap:8px;background:rgba(24,24,27,.05);border:1px solid var(--line);border-radius:10px;padding:8px 10px;margin-top:5px;color:var(--ink);text-decoration:none;max-width:250px}
.file-card:hover{border-color:var(--line-strong)}
.msg.me .file-card{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.28);color:#fff}
.fc-meta{display:flex;flex-direction:column;min-width:0}
.fc-name{font-size:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-size{font-size:10px;opacity:.7}
.tick{font-size:9px;letter-spacing:-2px;margin-left:3px;opacity:.75}
.msg.me time{color:rgba(255,255,255,.72);display:inline-flex;align-items:center;justify-content:flex-end}
.tick.read{color:#93c5fd;opacity:1}
.cv-staged{display:flex;gap:8px;flex-wrap:wrap;padding:8px 14px 0}
/* r38: staged attachment cards with image thumbnails + upload states. */
.cv-stg{position:relative;display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line-strong);border-radius:var(--r-md);padding:6px 8px;max-width:230px;box-shadow:0 1px 2px rgba(24,24,27,.04)}
.cv-stg.err{border-color:rgba(239,68,68,.5);background:rgba(239,68,68,.04)}
.cv-thumb{flex:none;width:48px;height:48px;border-radius:var(--r-sm);object-fit:cover;background:var(--bg-soft)}
.cv-thumb-file{display:flex;align-items:center;justify-content:center;color:var(--muted);border:1px solid var(--line)}
.cv-stgmeta{min-width:0;display:flex;flex-direction:column;gap:1px}
.cv-stgmeta b{font-size:11.5px;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px}
.cv-stgsub{font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px}
.cv-stg.err .cv-stgsub{color:#dc2626}
.cv-stg button{flex:none;border:none;background:none;cursor:pointer;font-size:15px;line-height:1;color:var(--muted);padding:0 2px}
.cv-stg button:hover{color:var(--ink)}
.cv-stgspin{flex:none;width:14px;height:14px;border-radius:50%;border:2px solid var(--line-strong);border-top-color:var(--ink);animation:tiwcc-spin .7s linear infinite;margin:0 2px}
/* r38: @mention pills inside message bubbles. */
.chat-mention{display:inline;padding:1px 5px;border-radius:6px;background:rgba(24,24,27,.07);color:var(--ink);font-weight:700}
.msg.me .chat-mention{background:rgba(255,255,255,.22);color:#fff}
.chat-mention.me{background:var(--accent,#f97316);color:#fff}
.msg.me .chat-mention.me{background:rgba(255,255,255,.92);color:var(--ink)}
/* WhatsApp-style highlight for messages that mention me. */
.msg.mention-me .bub{background:rgba(249,115,22,.08);border-color:rgba(249,115,22,.38)}
/* r38: mention picker popover above the composer. */
.mention-pop{position:absolute;left:8px;right:8px;bottom:calc(100% + 6px);z-index:60;background:var(--panel-solid);border:1px solid var(--line-strong);border-radius:var(--r-md);box-shadow:var(--shadow-lg);padding:4px;max-height:260px;overflow:auto}
.mention-pop[hidden]{display:none}
.mention-row{display:flex;align-items:center;gap:8px;width:100%;border:none;background:none;text-align:left;padding:6px 8px;border-radius:var(--r-sm);cursor:pointer;font:inherit}
.mention-row:hover,.mention-row.active{background:rgba(24,24,27,.06)}
.mention-name{font-size:12.5px;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mention-role{margin-left:auto;font-size:10.5px;color:var(--faint);white-space:nowrap}
/* r38: drag & drop overlay on chat surfaces. */
.drop-hint{position:relative}
.drop-hint::after{content:attr(data-drophint);position:absolute;inset:6px;z-index:70;display:flex;align-items:center;justify-content:center;border:2px dashed var(--accent,#f97316);border-radius:var(--r-lg);background:rgba(255,255,255,.86);color:var(--ink);font-size:13px;font-weight:700;pointer-events:none}
.cv-inputrow{display:flex;align-items:center;gap:8px;padding:12px 14px;border-top:1px solid var(--line);background:rgba(255,255,255,.65)}
.chat-field{flex:1;min-width:0;height:38px;border:1px solid var(--line-strong);border-radius:999px;padding:0 14px;font-size:13px;background:#fff;outline:none}
.chat-field:focus{border-color:var(--ink)}
.cv-send{width:38px;height:38px;flex:none;border-radius:50%}
.cv-tabs{display:none}
.nav-dot:not([hidden]){display:block;position:absolute;top:5px;right:7px;width:8px;height:8px;border-radius:50%;background:#ef4444;border:1.5px solid var(--ink)}
.tiwcc-root .wf-nav button{position:relative}
.cv-gmrow{display:flex;align-items:center;gap:10px;padding:8px 4px;border-bottom:1px solid var(--line)}
.cv-gmname{flex:1;font-size:13px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
mark{background:#fde68a;color:inherit;border-radius:3px;padding:0 1px}
.cv-sr-item .cv-sub{white-space:normal}

@media (max-width:960px){
	.cv-list{width:280px}
}
@media (max-width:768px){
	.cv-list{width:100%;border-right:none;padding-bottom:54px}
	.cv-thread{position:absolute;inset:0;background:var(--bg);display:none;z-index:5}
	.cv.thread-open .cv-thread{display:flex}
	.cv.thread-open .cv-list{visibility:hidden}
	.cv-back{display:inline-flex}
	.cv-tabs{display:flex;position:absolute;left:0;right:0;bottom:0;height:54px;border-top:1px solid var(--line);background:rgba(255,255,255,.96);z-index:6}
	.cv-tabs button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:none;background:none;font-size:10px;font-weight:700;color:var(--muted);cursor:pointer}
	.cv-tabs button.active{color:var(--ink)}
	.cv-tabs button span{text-transform:none;letter-spacing:0}
	.cv-msgs{padding:12px 10px}
	.cv-inputrow{padding:10px 10px 60px}
	.cv-staged{padding:8px 10px 0}
}

/* ===================== CHAT MODALS (settings / group / new) — r16 fix =====================
   Bug: `.tiwcc-root input[type=checkbox]{width:auto;height:auto}` (spec. 0,2,1) mengalahkan
   `input[data-cv-pref]` (0,1,1) -> switch appearance:none kolaps 0x0, knob ::after "melayang"
   keluar kartu + memicu scrollbar horizontal. `.panel-head` juga hanya distyle di dalam
   `.panel-box`, jadi di modal judul & tombol X jatuh bertumpuk (display:block).
   Semua selector di bawah di-scope ke .tiwcc-root agar menang dari reset & tema. */
.tiwcc-root .wb-modal-card{overflow-x:hidden}
.tiwcc-root .wb-modal-card > .panel-head{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;padding:0 0 12px;margin:0 0 4px;border-bottom:1px solid var(--line)}
.tiwcc-root .wb-modal-card > .panel-head .tt{flex:1 1 auto;min-width:0}
.tiwcc-root .wb-modal-card > .panel-head h3{margin:0;font-size:14.5px;font-weight:750;letter-spacing:-.01em;line-height:1.3;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tiwcc-root .wb-modal-card > .panel-head .spacer{display:none}
.tiwcc-root .wb-modal-card > .panel-head .btn-icon{flex:none;margin-left:auto}

.tiwcc-root .cv-sec-h{display:block;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--faint);margin:16px 0 2px}
.tiwcc-root .cv-pref{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;margin:0;padding:11px 0;font-size:13px;font-weight:600;line-height:1.35;color:var(--ink);border-bottom:1px solid var(--line);cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.tiwcc-root .cv-pref:last-child,.tiwcc-root .cv-pref:has(+ .cv-sec-h){border-bottom:none}
.tiwcc-root .cv-pref > span{flex:1 1 auto;min-width:0;color:inherit}

/* Toggle switch — spesifisitas 0,3,1 > reset checkbox 0,2,1 */
.tiwcc-root .cv-pref input[type=checkbox][data-cv-pref]{
	-webkit-appearance:none;appearance:none;display:inline-block;flex:0 0 36px;
	width:36px;min-width:36px;max-width:36px;height:20px;min-height:20px;margin:0;padding:0;
	border:0;border-radius:999px;background:#d4d4d8;box-shadow:none;outline:none;
	position:relative;vertical-align:middle;cursor:pointer;transition:background .2s;box-sizing:border-box}
.tiwcc-root .cv-pref input[type=checkbox][data-cv-pref]::before{content:none;display:none}
.tiwcc-root .cv-pref input[type=checkbox][data-cv-pref]::after{
	content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;
	background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .2s;box-sizing:border-box}
.tiwcc-root .cv-pref input[type=checkbox][data-cv-pref]:checked{background:var(--ink)}
.tiwcc-root .cv-pref input[type=checkbox][data-cv-pref]:checked::after{transform:translateX(16px)}
.tiwcc-root .cv-pref input[type=checkbox][data-cv-pref]:focus-visible{box-shadow:0 0 0 3px var(--ring)}
.tiwcc-root .cv-pref input[type=checkbox][data-cv-pref]:disabled{opacity:.5;cursor:not-allowed}

/* Checkbox anggota grup (modal Grup) — tetap checkbox native yang terlihat */
.tiwcc-root .cv-gmrow input[type=checkbox]{-webkit-appearance:auto;appearance:auto;width:16px;height:16px;flex:none;margin:0;accent-color:var(--ink);cursor:pointer}

/* =====================================================================
 * Whiteboard nodes — per-type rendering + per-type edit modal (1.10.4)
 * ================================================================== */
/* Free text: no card — just type on the canvas */
.tiwcc-root .wb-item.wb-text{background:transparent;border:1px dashed transparent;box-shadow:none;border-radius:6px;padding:4px 6px;overflow:visible}
.tiwcc-root .wb-item.wb-text:hover{border-color:rgba(24,24,27,.18);box-shadow:none}
.tiwcc-root .wb-item.wb-text.has-bg{padding:8px 10px;border-color:transparent}
.tiwcc-root .wbn-text{line-height:1.4;color:var(--ink);white-space:pre-wrap;word-break:break-word;letter-spacing:-.01em}
.tiwcc-root .wbn-text.is-empty,.tiwcc-root .wbn-note.is-empty{color:var(--faint);font-style:italic;font-weight:500}
/* Sticky note */
.tiwcc-root .wb-note{height:auto}
.tiwcc-root .wb-note .wbn-note{font-size:13px;line-height:1.5;color:var(--ink);white-space:pre-wrap;word-break:break-word}
.tiwcc-root .wb-note h6{margin:0 0 6px}
.tiwcc-root .wb-note .more{position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:7px;background:rgba(255,255,255,.8);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s}
.tiwcc-root .wb-note:hover .more{opacity:1}
/* Zone: a real framed area, title on top */
.tiwcc-root .wb-zone{box-sizing:border-box;padding:14px 16px;border:1.5px dashed rgba(24,24,27,.22);border-radius:16px;background:rgba(255,255,255,.35)}
.tiwcc-root .wb-zone .zt{font-size:18px;white-space:normal}
.tiwcc-root .wb-zone .zd{white-space:pre-wrap;max-width:none}
.tiwcc-root .wb-zone .zc{position:absolute;right:12px;bottom:10px;font-size:11px;font-weight:700;color:var(--muted);background:rgba(255,255,255,.85);border:1px solid var(--line);padding:2px 8px;border-radius:99px}
.tiwcc-root .wb-zone .more{position:absolute;top:8px;right:8px;width:24px;height:24px;border-radius:7px;background:rgba(255,255,255,.9);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s}
.tiwcc-root .wb-zone:hover .more{opacity:1}
/* Item card */
.tiwcc-root .wb-item.wb-item .wbn-thumb{height:118px;background-size:cover;background-position:center;border-bottom:1px solid var(--line)}
.tiwcc-root .wbn-cap{padding:9px 11px 11px;display:flex;flex-direction:column;gap:3px}
.tiwcc-root .wbn-cap b{font-size:12.5px;letter-spacing:-.01em;line-height:1.3}
.tiwcc-root .wbn-cap span{font-size:11px;color:var(--muted)}
.tiwcc-root .wbn-cap .chip{align-self:flex-start;height:20px;font-size:10.5px;font-style:normal;margin-top:3px}
.tiwcc-root .wb-item.is-missing{border-style:dashed;opacity:.75}
/* Image */
.tiwcc-root .wb-item.wb-image{display:flex;flex-direction:column;background:#fff;padding:0}
.tiwcc-root .wbn-img{flex:1;min-height:40px;background-color:#f4f4f5;background-position:center;background-repeat:no-repeat}
.tiwcc-root .wbn-img.is-empty{display:flex;align-items:center;justify-content:center;color:var(--faint)}
.tiwcc-root .wbn-caption{padding:7px 10px;font-size:11.5px;color:var(--ink-2);border-top:1px solid var(--line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none}
.tiwcc-root .wbn-href{position:absolute;left:6px;top:6px;width:24px;height:24px;border-radius:7px;background:rgba(255,255,255,.92);border:1px solid var(--line);color:var(--ink-2);display:flex;align-items:center;justify-content:center}
/* Connector lines */
.tiwcc-root .wb-link-path.is-solid,.tiwcc-root .wb-link-path.is-arrow{stroke:#52525b;stroke-dasharray:none}
.tiwcc-root .wb-link-label{font-size:11px;font-weight:700;fill:#3f3f46;paint-order:stroke;stroke:#fafafa;stroke-width:4px;stroke-linejoin:round}

/* ---- edit modal ---- */
.tiwcc-root .wb-edit-card{width:min(400px,100%);max-height:calc(100vh - 36px);display:flex;flex-direction:column}
.tiwcc-root .wb-edit-body{overflow-y:auto;margin:0 -18px;padding:0 18px;flex:1;min-height:0}
.tiwcc-root .wb-edit-card [hidden]{display:none!important}
.tiwcc-root .wb-fld textarea{width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:var(--r-md);background:#fff;font:inherit;font-size:13px;line-height:1.5;color:var(--ink);outline:none;resize:vertical;min-height:64px;box-sizing:border-box}
.tiwcc-root .wb-fld textarea:focus{border-color:var(--ink-2);box-shadow:0 0 0 3px rgba(24,24,27,.08)}
.tiwcc-root .wb-fld .wbf-hint,.tiwcc-root .wbf-hint{display:block;font-size:11px;color:var(--faint);margin-top:5px;font-weight:500}
.tiwcc-root .wbf-row{display:flex;gap:8px;align-items:center;min-width:0}
.tiwcc-root .wbf-row .wbf-hint{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tiwcc-root .wbf-grid{display:grid;grid-template-columns:auto auto 1fr;gap:12px}
.tiwcc-root .wb-seg{display:inline-flex;padding:3px;gap:2px;background:rgba(24,24,27,.05);border:1px solid var(--line);border-radius:10px}
.tiwcc-root .wb-seg button{min-width:30px;height:28px;padding:0 8px;border-radius:7px;font-size:12px;font-weight:700;color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;cursor:pointer}
.tiwcc-root .wb-seg button:hover{background:rgba(255,255,255,.7)}
.tiwcc-root .wb-seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.12),0 0 0 1px rgba(24,24,27,.08)}
.tiwcc-root .wb-seg-wide{display:flex}
.tiwcc-root .wb-seg-wide button{flex:1}
.tiwcc-root .wb-swatches{display:flex;flex-wrap:wrap;gap:7px}
.tiwcc-root .wb-sw{width:26px;height:26px;border-radius:50%;border:0;padding:0;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(24,24,27,.14);position:relative;transition:transform .12s}
.tiwcc-root .wb-sw:hover{transform:scale(1.08)}
.tiwcc-root .wb-sw.on{box-shadow:inset 0 0 0 1px rgba(24,24,27,.14),0 0 0 2px #fff,0 0 0 4px var(--ink)}
.tiwcc-root .wb-sw-custom{background:conic-gradient(from 210deg,#ff3b30,#ff9500,#ffd60a,#34c759,#32ade6,#5e5ce6,#ff2d92,#ff3b30);overflow:hidden;display:inline-block;margin:0}
.tiwcc-root .wb-sw-custom input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;border:0;padding:0}
.tiwcc-root .wb-check{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:var(--ink-2);margin:-2px 0 12px;cursor:pointer}
.tiwcc-root .wb-check input{width:16px;height:16px;accent-color:var(--ink);margin:0}
.tiwcc-root .wbf-item-preview{display:flex;gap:11px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:var(--r-md);background:#fafafa}
.tiwcc-root .wbf-ip-thumb{width:64px;height:48px;border-radius:8px;flex:none;background-size:cover;background-position:center;border:1px solid var(--line)}
.tiwcc-root .wbf-ip-cap{display:flex;flex-direction:column;min-width:0}
.tiwcc-root .wbf-ip-cap b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tiwcc-root .wbf-ip-cap span{font-size:11.5px;color:var(--muted)}
.tiwcc-root .wbf-img-preview{height:120px;border-radius:var(--r-md);border:1px solid var(--line);background:#f4f4f5 center/cover no-repeat;margin-bottom:8px}
.tiwcc-root .wbf-img-preview.is-empty{background-image:none}
.tiwcc-root .wbf-links{border-top:1px solid var(--line);padding-top:12px;margin-top:4px}
.tiwcc-root .wbf-empty{font-size:12px;color:var(--faint);padding:2px 0 6px}
.tiwcc-root .wbf-link{border:1px solid var(--line);border-radius:var(--r-md);padding:8px;margin-bottom:6px;background:#fff}
.tiwcc-root .wbf-link-to{font-size:12px;font-weight:700;color:var(--ink-2);margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tiwcc-root .wbf-link-ctl{display:flex;gap:6px;align-items:center}
.tiwcc-root .wb-fld .wbf-link-ctl input,.tiwcc-root .wb-fld .wbf-link-ctl select{height:30px;font-size:12px;padding:0 8px}
.tiwcc-root .wb-fld .wbf-link-ctl input{flex:1;min-width:0}
.tiwcc-root .wb-fld .wbf-link-ctl select{width:auto;flex:none}
.tiwcc-root .wbf-link-ctl .btn-icon{flex:none;width:30px;height:30px}
.tiwcc-root #wbfAddLink{padding-left:0;font-weight:700}

/* Whiteboard undo / redo floating pill (1.10.5) */
.tiwcc-root .wb-history{position:absolute;left:14px;bottom:14px;z-index:30;display:flex;align-items:center;gap:2px;padding:5px;border-radius:var(--r-md);background:rgba(255,255,255,.92);border:1px solid var(--line);box-shadow:var(--shadow);backdrop-filter:blur(12px)}
.tiwcc-root .wb-history[hidden]{display:none}
.tiwcc-root .wb-history button{width:32px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--ink-2);background:transparent;border:0;cursor:pointer;transition:background .15s,color .15s,transform .1s}
.tiwcc-root .wb-history button:hover:not(:disabled){background:rgba(24,24,27,.07);color:var(--ink)}
.tiwcc-root .wb-history button:active:not(:disabled){transform:scale(.92)}
.tiwcc-root .wb-history button:disabled{color:var(--faint);opacity:.45;cursor:default}
.tiwcc-root .wb-history-sep{width:1px;height:18px;background:var(--line)}
@media (max-width:1100px){.tiwcc-root .wb-history{left:58px}}

/* =====================================================================
 * r20 — Agency workflow components (type selector, dynamic form,
 * workflow settings, custom type builder). Editorial / minimal:
 * warm grey + black/white, one orange accent, thin borders, no gradients.
 * Scoped to .ax-* so the existing UI keeps its current look.
 * ================================================================== */
.tiwcc-root{--ax-ink:#1c1917;--ax-ink2:#44403c;--ax-muted:#78716c;--ax-faint:#a8a29e;--ax-line:#e7e5e4;--ax-line2:#d6d3d1;--ax-bg:#fafaf9;--ax-soft:#f5f5f4;--ax-accent:#ea580c;--ax-accent-soft:#fff7ed}
.tiwcc-root .wb-modal.ax-modal{background:rgba(28,25,23,.32);backdrop-filter:blur(3px)}
.tiwcc-root .wb-modal-card.ax-card{background:#fff;border:1px solid var(--ax-line);border-radius:14px;box-shadow:0 1px 2px rgba(28,25,23,.04),0 18px 50px rgba(28,25,23,.10);padding:0;display:flex;flex-direction:column;max-height:calc(100vh - 36px);overflow:hidden;backdrop-filter:none;color:var(--ax-ink)}
.tiwcc-root .ax-card-md{width:min(640px,100%)}
.tiwcc-root .ax-card-lg{width:min(760px,100%)}
.tiwcc-root .ax-card-xl{width:min(1080px,100%)}
.tiwcc-root .ax-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 26px 16px;border-bottom:1px solid var(--ax-line)}
.tiwcc-root .ax-head h3{font-size:19px;font-weight:600;letter-spacing:-.015em;line-height:1.25;margin:2px 0 0;color:var(--ax-ink)}
.tiwcc-root .ax-sub{font-size:12.5px;color:var(--ax-muted);margin-top:4px;max-width:56ch;line-height:1.5}
.tiwcc-root .ax-eyebrow{font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--ax-muted);margin-bottom:8px}
.tiwcc-root .ax-close{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:var(--ax-muted);border:1px solid transparent;flex:none}
.tiwcc-root .ax-close:hover{border-color:var(--ax-line);color:var(--ax-ink)}
.tiwcc-root .ax-body{padding:20px 26px;overflow-y:auto;flex:1;min-height:0}
.tiwcc-root .ax-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 26px;border-top:1px solid var(--ax-line);background:var(--ax-bg)}
.tiwcc-root .ax-foot-left{justify-content:flex-start}
.tiwcc-root .ax-spacer{flex:1}
.tiwcc-root .ax-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 16px;border-radius:8px;border:1px solid var(--ax-line2);background:#fff;color:var(--ax-ink);font-size:13px;font-weight:550;transition:border-color .15s,background .15s}
.tiwcc-root .ax-btn:hover{border-color:var(--ax-ink2)}
.tiwcc-root .ax-btn-primary{background:var(--ax-ink);border-color:var(--ax-ink);color:#fff}
.tiwcc-root .ax-btn-primary:hover{background:#000;border-color:#000}
.tiwcc-root .ax-btn-sm{height:28px;padding:0 10px;font-size:12px}
.tiwcc-root .ax-link{font-size:12.5px;color:var(--ax-muted);text-decoration:underline;text-underline-offset:3px}
.tiwcc-root .ax-link:hover{color:var(--ax-ink)}
.tiwcc-root .ax-link-strong{font-size:13px;font-weight:600;color:var(--ax-ink)}
.tiwcc-root .ax-link-strong:hover{color:var(--ax-accent)}
.tiwcc-root .ax-danger{color:#b91c1c}
.tiwcc-root .ax-muted{color:var(--ax-faint);font-size:12px}
.tiwcc-root .ax-hint{font-size:12px;color:var(--ax-faint);line-height:1.5;padding:4px 0}
.tiwcc-root .ax-empty{padding:40px 0;text-align:center;color:var(--ax-muted);font-size:13px}
/* inputs */
.tiwcc-root .ax-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.tiwcc-root .ax-field > span{font-size:12px;font-weight:550;color:var(--ax-ink2)}
.tiwcc-root .ax-req{color:var(--ax-accent);font-style:normal}
.tiwcc-root .ax-card .ax-input,.tiwcc-root .ax-input{width:100%;height:38px;padding:0 12px;border:1px solid var(--ax-line2);border-radius:8px;background:#fff;font-size:13px;color:var(--ax-ink);transition:border-color .15s,box-shadow .15s}
.tiwcc-root textarea.ax-input{height:auto;padding:10px 12px;line-height:1.5;resize:vertical}
.tiwcc-root .ax-input:focus{border-color:var(--ax-ink);box-shadow:0 0 0 3px rgba(28,25,23,.06);outline:none}
.tiwcc-root .ax-input-sm{height:30px !important;font-size:12px !important;padding:0 8px !important;width:auto}
.tiwcc-root .ax-grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
.tiwcc-root .ax-wide{grid-column:1/-1}
.tiwcc-root .ax-section{margin-top:4px;padding-top:16px;border-top:1px solid var(--ax-line)}
#itemModalBody.modal-grid{display:flex;flex-direction:column;gap:16px;padding:20px 26px;overflow-y:auto;flex:1;min-height:0}
.tiwcc-root #itemModal .wb-modal-head{padding:20px 26px 14px;margin:0;border-bottom:1px solid var(--ax-line)}
.tiwcc-root #itemModal .wb-modal-head b{font-size:18px;font-weight:600;letter-spacing:-.015em}
.tiwcc-root #itemModal .wb-modal-foot{margin:0;padding:14px 26px;border-top:1px solid var(--ax-line);background:var(--ax-bg)}
.tiwcc-root #itemModal .wb-modal-foot .btn{height:36px;border-radius:8px;font-weight:550;box-shadow:none}
.tiwcc-root #itemModal .wb-modal-foot .btn-primary{background:var(--ax-ink);border-color:var(--ax-ink)}
.tiwcc-root .ax-drop{position:relative;border:1px dashed var(--ax-line2);border-radius:10px;background:var(--ax-bg);min-height:118px;cursor:pointer;overflow:hidden;transition:border-color .15s,background .15s}
.tiwcc-root .ax-drop:hover,.tiwcc-root .ax-drop.dragover{border-color:var(--ax-ink2);background:#fff}
.tiwcc-root .ax-drop.dragover{border-color:var(--ax-accent);background:var(--ax-accent-soft)}
.tiwcc-root .ax-drop-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:118px;color:var(--ax-muted);padding:16px;text-align:center}
.tiwcc-root .ax-drop-empty b{font-size:13px;font-weight:550;color:var(--ax-ink2)}
.tiwcc-root .ax-drop-empty small{font-size:11.5px;color:var(--ax-faint)}
.tiwcc-root .ax-drop-img{display:none;height:180px;background:center/cover no-repeat}
.tiwcc-root .ax-drop-actions{display:none;position:absolute;right:10px;bottom:10px;gap:6px}
.tiwcc-root .ax-drop.has-image{border-style:solid}
.tiwcc-root .ax-drop.has-image .ax-drop-empty{display:none}
.tiwcc-root .ax-drop.has-image .ax-drop-img{display:block}
.tiwcc-root .ax-drop.has-image .ax-drop-actions{display:flex}
.tiwcc-root .ax-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:38px;padding:5px 8px;border:1px solid var(--ax-line2);border-radius:8px;background:#fff;cursor:text}
.tiwcc-root .ax-tags:focus-within{border-color:var(--ax-ink);box-shadow:0 0 0 3px rgba(28,25,23,.06)}
.tiwcc-root .ax-tags input{flex:1;min-width:120px;height:26px;font-size:13px;border:none;background:transparent;outline:none}
.tiwcc-root .ax-tag{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border:1px solid var(--ax-line);border-radius:999px;background:var(--ax-soft);font-size:11.5px;font-weight:500;color:var(--ax-ink2);white-space:nowrap}
.tiwcc-root .ax-tag button{display:inline-flex;color:var(--ax-faint)}
.tiwcc-root .ax-tag button:hover{color:var(--ax-ink)}
.tiwcc-root .ax-tag.sm{height:18px;font-size:10.5px;padding:0 6px}
.tiwcc-root .ax-more{border-top:1px solid var(--ax-line);padding-top:12px}
.tiwcc-root .ax-more summary{cursor:pointer;font-size:12px;font-weight:550;color:var(--ax-muted);list-style:none;margin-bottom:0}
.tiwcc-root .ax-more summary::-webkit-details-marker{display:none}
.tiwcc-root .ax-more summary::before{content:'+';display:inline-block;width:14px;color:var(--ax-faint)}
.tiwcc-root .ax-more[open] summary::before{content:'\2212'}
.tiwcc-root .ax-more[open] summary{margin-bottom:14px}
.tiwcc-root .ax-multi{display:flex;flex-wrap:wrap;gap:6px}
.tiwcc-root .ax-chipcheck{position:relative;cursor:pointer}
.tiwcc-root .ax-chipcheck input{position:absolute;opacity:0;pointer-events:none}
.tiwcc-root .ax-chipcheck span{display:inline-flex;height:28px;align-items:center;padding:0 11px;border:1px solid var(--ax-line2);border-radius:999px;font-size:12px;color:var(--ax-ink2);background:#fff}
.tiwcc-root .ax-chipcheck input:checked + span{background:var(--ax-ink);border-color:var(--ax-ink);color:#fff}
.tiwcc-root .ax-chipcheck input:focus-visible + span{box-shadow:0 0 0 3px rgba(234,88,12,.25)}
.tiwcc-root .ax-switch,.tiwcc-root .ax-check{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--ax-ink2);cursor:pointer;height:38px}
.tiwcc-root .ax-check{height:auto}
.tiwcc-root .ax-switch input,.tiwcc-root .ax-check input{accent-color:var(--ax-ink);width:15px;height:15px}
.tiwcc-root .ax-color{display:flex;gap:8px;align-items:center}
.tiwcc-root .ax-color input[type=color]{width:38px;height:38px;border:1px solid var(--ax-line2);border-radius:8px;padding:3px;background:#fff;flex:none;cursor:pointer}
.tiwcc-root .ax-filefield{display:flex;align-items:center;gap:8px;min-height:38px;padding:4px 6px 4px 10px;border:1px dashed var(--ax-line2);border-radius:8px;background:var(--ax-bg)}
.tiwcc-root .ax-fname{flex:1;min-width:0;font-size:12.5px;color:var(--ax-ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tiwcc-root .ax-fthumb{width:28px;height:28px;border-radius:5px;background:center/cover;flex:none;border:1px solid var(--ax-line)}
.tiwcc-root .ax-fimg{max-width:120px;max-height:80px;border-radius:6px;border:1px solid var(--ax-line);display:block}
.tiwcc-root .ax-person{display:inline-flex;align-items:center;gap:6px;min-width:0}
.tiwcc-root .ax-swatch{display:inline-block;width:12px;height:12px;border-radius:3px;border:1px solid rgba(0,0,0,.1)}
/* type selector */
.tiwcc-root .ax-search{display:flex;align-items:center;gap:10px;margin:16px 26px 0;padding:0 14px;height:42px;border:1px solid var(--ax-line2);border-radius:10px;color:var(--ax-faint)}
.tiwcc-root .ax-search:focus-within{border-color:var(--ax-ink);color:var(--ax-ink)}
.tiwcc-root .ax-search input{flex:1;height:100%;border:none;background:transparent;font-size:14px;outline:none;color:var(--ax-ink)}
.tiwcc-root .ax-tpick{display:grid;grid-template-columns:190px 1fr;gap:0;min-height:100%}
.tiwcc-root .ax-trail{padding-right:18px;border-right:1px solid var(--ax-line);display:flex;flex-direction:column;gap:18px}
.tiwcc-root .ax-tcols{padding-left:22px;columns:4 170px;column-gap:22px}
.tiwcc-root .ax-tcols .ax-tgroup{break-inside:avoid;margin-bottom:20px;padding-bottom:4px}
.tiwcc-root .ax-trow{display:flex;align-items:center;gap:4px;width:100%;min-height:30px;padding:0 6px 0 8px;margin:0 -8px;border-radius:6px;font-size:13px;color:var(--ax-ink2);text-align:left;cursor:pointer;outline:none}
.tiwcc-root .ax-trow:hover,.tiwcc-root .ax-trow:focus-visible{background:var(--ax-soft);color:var(--ax-ink)}
.tiwcc-root .ax-trow:focus-visible{box-shadow:inset 0 0 0 1px var(--ax-line2)}
.tiwcc-root .ax-tlabel{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tiwcc-root .ax-tlabel em{font-style:normal;color:var(--ax-faint);font-size:11.5px;margin-left:8px}
.tiwcc-root .ax-ticon{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:5px;color:var(--ax-faint);flex:none;opacity:0;transition:opacity .12s}
.tiwcc-root .ax-trow:hover .ax-ticon,.tiwcc-root .ax-trow:focus-visible .ax-ticon,.tiwcc-root .ax-ticon.on,.tiwcc-root .ax-ticon:focus-visible{opacity:1}
.tiwcc-root .ax-ticon:hover{color:var(--ax-ink);background:#fff}
.tiwcc-root .ax-star.on{color:var(--ax-accent)}
.tiwcc-root .ax-general{color:var(--ax-muted);font-size:12.5px}
.tiwcc-root .ax-tresults{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:2px 24px;padding:0 8px}
@media (hover:none){.tiwcc-root .ax-ticon{opacity:1}}
/* workflow settings */
.tiwcc-root .ax-flow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:16px;border:1px solid var(--ax-line);border-radius:10px;background:var(--ax-bg)}
.tiwcc-root .ax-flow-sm{padding:10px 12px;gap:6px;margin-top:8px}
.tiwcc-root .ax-flowchip{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 13px;border:1px solid var(--ax-line2);border-radius:999px;background:#fff;font-size:12.5px;font-weight:500;color:var(--ax-ink)}
.tiwcc-root .ax-flowchip.sm{height:24px;padding:0 10px;font-size:11.5px}
.tiwcc-root .ax-flowchip i,.tiwcc-root .stage-pill i,.tiwcc-root .stage-dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex:none}
.tiwcc-root .ax-arrow{color:var(--ax-faint);font-size:13px}
.tiwcc-root .ax-wf-tools{display:flex;justify-content:flex-end;margin:14px 0 8px}
.tiwcc-root .ax-stages{display:flex;flex-direction:column;border:1px solid var(--ax-line);border-radius:10px;overflow:hidden}
.tiwcc-root .ax-stage{display:flex;align-items:flex-start;gap:10px;padding:12px 12px 12px 8px;background:#fff;border-bottom:1px solid var(--ax-line)}
.tiwcc-root .ax-stage:last-child{border-bottom:none}
.tiwcc-root .ax-stage.dragging{opacity:.45;background:var(--ax-soft)}
.tiwcc-root .ax-grip{color:var(--ax-line2);cursor:grab;padding:12px 4px 0;flex:none}
.tiwcc-root .ax-stage:hover .ax-grip{color:var(--ax-faint)}
.tiwcc-root .ax-stage-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.tiwcc-root .ax-stage-row{display:flex;gap:8px}
.tiwcc-root .ax-stage-row .ax-input{flex:1}
.tiwcc-root .ax-colorpick{position:relative;display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 12px;border:1px solid var(--ax-line2);border-radius:8px;cursor:pointer;flex:none}
.tiwcc-root .ax-colorpick input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.tiwcc-root .ax-colorpick span{width:14px;height:14px;border-radius:50%}
.tiwcc-root .ax-colorpick em{font-style:normal;font-size:12px;color:var(--ax-muted);font-variant-numeric:tabular-nums}
.tiwcc-root .ax-stage-opts{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px}
.tiwcc-root .ax-stage-tools{display:flex;gap:2px;padding-top:7px}
.tiwcc-root .ax-stage-tools .ax-ticon{opacity:1}
.tiwcc-root .ax-stage-tools .ax-ticon:disabled{opacity:.3;cursor:default}
.tiwcc-root .ax-addrow{display:flex;align-items:center;gap:6px;width:100%;height:40px;margin-top:10px;padding:0 14px;border:1px dashed var(--ax-line2);border-radius:10px;font-size:13px;font-weight:550;color:var(--ax-muted)}
.tiwcc-root .ax-addrow:hover{border-color:var(--ax-ink2);color:var(--ax-ink)}
.tiwcc-root .ax-reassign{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px;padding:10px 12px;border:1px solid #fed7aa;border-left:3px solid var(--ax-accent);border-radius:8px;background:var(--ax-accent-soft);font-size:12.5px;color:var(--ax-ink2)}
.tiwcc-root .ax-wfpick select{height:38px}
/* type builder */
.tiwcc-root .ax-tb{display:grid;grid-template-columns:1fr 1.3fr .9fr;gap:0;padding:0}
.tiwcc-root .ax-tb-col{padding:20px 22px;display:flex;flex-direction:column;gap:14px;min-width:0}
.tiwcc-root .ax-tb-col + .ax-tb-col{border-left:1px solid var(--ax-line)}
.tiwcc-root .ax-tb-col .ax-eyebrow{margin-bottom:0}
.tiwcc-root .ax-tb-preview{background:var(--ax-bg)}
.tiwcc-root .ax-frows{display:flex;flex-direction:column;gap:8px}
.tiwcc-root .ax-frow{display:grid;grid-template-columns:1fr 128px 28px;gap:6px;align-items:center}
.tiwcc-root .ax-frow .ax-ticon{opacity:1}
.tiwcc-root .ax-frow .ax-opts{grid-column:1/3;height:32px;font-size:12px}
.tiwcc-root .ax-frow .ax-fint{grid-column:1/-1;display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--ax-muted);cursor:pointer;width:max-content}
.tiwcc-root .ax-frow .ax-fint input{margin:0;accent-color:var(--ax-accent,#e8590c)}
.tiwcc-root .ax-pv-card{display:flex;gap:10px;align-items:center;padding:12px;border:1px solid var(--ax-line);border-radius:10px;background:#fff}
.tiwcc-root .ax-pv-thumb{width:42px;height:42px;border-radius:8px;background:var(--ax-soft);border:1px solid var(--ax-line);flex:none}
.tiwcc-root .ax-pv-card b{display:block;font-size:13.5px;font-weight:600}
.tiwcc-root .ax-pv-card span{font-size:11.5px;color:var(--ax-muted)}
.tiwcc-root .ax-pv-fields{margin-top:10px;border:1px solid var(--ax-line);border-radius:10px;background:#fff;padding:4px 12px}
.tiwcc-root .ax-pv-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--ax-line);font-size:12.5px}
.tiwcc-root .ax-pv-row:last-child{border-bottom:none}
.tiwcc-root .ax-pv-row em{font-style:normal;color:var(--ax-faint);font-size:11.5px}
/* board + detail integration (subtle — keeps existing look) */
.tiwcc-root .stage-pill{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:999px;border:1px solid var(--line-strong);background:#fff;font-size:11px;font-weight:600;color:var(--ink-2);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.tiwcc-root .stage-pill.sm{height:20px;padding:0 8px;font-size:10.5px}
.tiwcc-root .stage-pill.on-img{position:absolute;left:10px;top:10px;background:rgba(255,255,255,.94)}
.tiwcc-root .filter-item .stage-dot{margin:0 4px 0 3px}
.tiwcc-root .mcard .ax-ctype{font-weight:650;color:var(--ink-2)}
.tiwcc-root .ax-ctags{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px}
.tiwcc-root .mcard-note{display:flex;align-items:center;gap:6px}
.tiwcc-root .mcard-note .ax-person{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tiwcc-root .ax-note-due{margin-left:auto}
.tiwcc-root .ax-due{white-space:nowrap}
.tiwcc-root .ax-due.late{color:#c2410c}
.tiwcc-root .ax-hero{margin:-2px 0 14px}
.tiwcc-root .ax-hero-img{position:relative;height:150px;border-radius:12px;background:center/cover no-repeat #f4f4f5;border:1px solid var(--line)}
.tiwcc-root .ax-hero-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px;font-size:12px;color:var(--muted)}
.tiwcc-root .ax-dot{color:var(--faint)}
.tiwcc-root .ax-fold > summary{cursor:pointer;list-style:none}
.tiwcc-root .ax-fold > summary::-webkit-details-marker{display:none}
.tiwcc-root .ax-fold > summary::after{content:' +';color:var(--faint)}
.tiwcc-root .ax-fold[open] > summary::after{content:' \2212'}
.tiwcc-root .ax-spec-edit .v{flex:1;min-width:0;max-width:62%}
.tiwcc-root .ax-spec-edit .ax-input{height:32px;font-size:12.5px}
.tiwcc-root .ax-spec-edit .ax-filefield{min-height:32px}
.tiwcc-root .ax-gl-row{display:flex;justify-content:space-between;align-items:center}
.tiwcc-root .ax-activity{display:flex;flex-direction:column}
.tiwcc-root .ax-act{display:flex;gap:10px;padding:8px 0;border-bottom:1px dashed var(--line);font-size:12.5px}
.tiwcc-root .ax-act:last-child{border-bottom:none}
.tiwcc-root .ax-act p{line-height:1.45;color:var(--ink-2)}
.tiwcc-root .ax-act time{font-size:11px;color:var(--faint)}
.tiwcc-root .ax-act-dot{width:7px;height:7px;border-radius:50%;background:var(--faint);margin-top:6px;flex:none}
.tiwcc-root .ax-act-dot[data-kind="item_move"]{background:#ea580c}
.tiwcc-root .ax-act-dot[data-kind="item_approve"]{background:#16a34a}
.tiwcc-root .ax-act-dot[data-kind="item_reject"]{background:#b91c1c}
.tiwcc-root .ax-act-dot[data-kind="comment_add"]{background:#1c1917}
.tiwcc-root .dtab .n{font-size:10.5px;color:var(--faint);font-weight:600}
.tiwcc-root .dtab .n:empty{display:none}
.tiwcc-root .upload-drop.dragover{border-color:#ea580c;background:#fff7ed}
@media (max-width:900px){
.tiwcc-root .ax-tpick{grid-template-columns:1fr}
.tiwcc-root .ax-trail{padding:0 0 14px;border-right:none;border-bottom:1px solid var(--ax-line);flex-direction:row;flex-wrap:wrap;gap:14px 26px}
.tiwcc-root .ax-trail .ax-tgroup{min-width:150px}
.tiwcc-root .ax-tcols{padding:16px 0 0;columns:2 150px}
.tiwcc-root .ax-tb{grid-template-columns:1fr}
.tiwcc-root .ax-tb-col + .ax-tb-col{border-left:none;border-top:1px solid var(--ax-line)}
}
@media (max-width:600px){
.tiwcc-root .wb-modal.ax-modal{padding:0;align-items:flex-end}
.tiwcc-root .wb-modal-card.ax-card{max-height:94vh;border-radius:14px 14px 0 0;width:100%}
.tiwcc-root .ax-head,.tiwcc-root .ax-body,.tiwcc-root .ax-foot,#itemModalBody.modal-grid{padding-left:18px;padding-right:18px}
.tiwcc-root .ax-search{margin:14px 18px 0}
.tiwcc-root #itemModal .wb-modal-head,.tiwcc-root #itemModal .wb-modal-foot{padding-left:18px;padding-right:18px}
.tiwcc-root .ax-grid2{grid-template-columns:1fr}
.tiwcc-root .ax-tcols{columns:1}
.tiwcc-root .ax-stage-row{flex-direction:column}
.tiwcc-root .ax-colorpick{align-self:flex-start}
.tiwcc-root .ax-frow{grid-template-columns:1fr 110px 28px}
}
/* r20 detail: compact key/value rows (label left, value right) */
.tiwcc-root .spec-row.ax-kv{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:7px 0;min-height:44px}
.tiwcc-root .spec-row.ax-kv .k{width:34%;flex:none;font-size:12px;font-weight:550;color:var(--muted)}
.tiwcc-root .spec-row.ax-kv .v{flex:1;min-width:0;width:auto;text-align:right;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:4px}
.tiwcc-root .spec-row.ax-kv .spec-input,.tiwcc-root .spec-row.ax-kv .ax-input{width:100%;height:32px;font-size:12.5px;padding:0 10px;border:1px solid transparent;border-radius:7px;background:transparent;text-align:left;transition:border-color .15s,background .15s}
.tiwcc-root .spec-row.ax-kv textarea.ax-input{height:auto;padding:6px 10px}
.tiwcc-root .spec-row.ax-kv .spec-input:hover,.tiwcc-root .spec-row.ax-kv .ax-input:hover{border-color:var(--line)}
.tiwcc-root .spec-row.ax-kv .spec-input:focus,.tiwcc-root .spec-row.ax-kv .ax-input:focus{border-color:var(--ink);background:#fff;outline:none}
.tiwcc-root .spec-row.ax-kv .ax-multi,.tiwcc-root .spec-row.ax-kv .ax-color,.tiwcc-root .spec-row.ax-kv .ax-filefield{width:100%}
.tiwcc-root .spec-row.ax-kv .ax-switch{height:32px}
/* r60: board side-panel section titles (Stage, Category, Assignee …) had no style of their own and
   rendered as plain 14px body text. Same small-caps label as the dashboard sidebar (.side-label);
   the "Edit" action is a quiet text button that aligns with the row counts below it. */
.tiwcc-root .dock-sec > .dock-title{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px;padding:0 4px 0 10px;margin:0 0 4px;font-size:10.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--faint,#a8a29e);line-height:1.3}
.tiwcc-root .dock-sec > .dock-title > span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .dock-title .link-sm{flex:none;margin-left:auto;padding:3px 8px;border:0;border-radius:6px;background:transparent;font-size:11.5px;font-weight:600;line-height:1.3;color:var(--muted);text-decoration:none;text-transform:none;letter-spacing:0;cursor:pointer;transition:background .15s,color .15s}
.tiwcc-root .dock-title .link-sm:hover{color:var(--ink);background:rgba(24,24,27,.06)}
.tiwcc-root .dock-title .link-sm:focus-visible{outline:2px solid rgba(24,24,27,.35);outline-offset:1px}
.tiwcc-root .ax-search{flex:none}
.tiwcc-root .ax-stage-row .ax-input{flex:1 1 auto;min-height:38px}
@media (max-width:600px){.tiwcc-root .ax-stage-row .ax-input{flex:none;width:100%}.tiwcc-root .ax-search{height:42px;min-height:42px}}

/* r21 — auth / invite hardening */
.tiwcc-root.tiwcc-app-mode{max-width:none!important;width:auto!important;margin:0!important;padding:0!important}
.tiwcc-root .pw-wrap{position:relative}
.tiwcc-root .pw-wrap .input{padding-right:40px}
.tiwcc-root .pw-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--faint);border-radius:8px;cursor:pointer}
.tiwcc-root .pw-toggle:hover,.tiwcc-root .pw-toggle.on{color:var(--ink)}
.tiwcc-root .field-hint{display:block;margin-top:5px;font-size:11px;color:var(--faint)}
.tiwcc-root .form-info{margin:0 0 14px;padding:10px 12px;border-radius:10px;background:#fafaf9;border:1px solid var(--line);font-size:12px;line-height:1.55;color:var(--ink)}
.tiwcc-root .form-info .register-boards{margin-top:8px;background:#fff}
.tiwcc-root .invite-actions{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.tiwcc-root .login-submit.is-busy{opacity:.7;cursor:progress}
.tiwcc-root .login-foot-note{font-size:11.5px;color:var(--faint)}
.tiwcc-root input[readonly].input{background:#f5f5f4;color:var(--muted)}
.tiwcc-root #tiwcc-view-login.login-mode-image{background-size:cover;background-position:center}
.tiwcc-root #tiwcc-view-login.login-mode-image .login-bg-deco{display:none}
.tiwcc-root #tiwcc-view-login.login-mode-plain .login-bg-deco,.tiwcc-root #tiwcc-view-login.login-mode-solid .login-bg-deco{display:none}
.tiwcc-root #tiwcc-view-login.login-mode-pattern{background-color:#fafaf9;background-image:radial-gradient(rgba(24,24,27,.09) 1px,transparent 1px);background-size:18px 18px}
.tiwcc-root #tiwcc-view-login.login-mode-pattern .login-bg-deco{opacity:.35}

/* ================================================================
   r22 — input alignment, workflow steps, per-type cards & details
   ================================================================ */
/* inputs: text sits on the vertical centre (theme resets used to push
   it to the baseline); selects get a consistent chevron. */
.tiwcc-root .ax-card .ax-input,.tiwcc-root .ax-input{box-sizing:border-box;margin:0;line-height:1.3;padding-top:0;padding-bottom:0;font-family:inherit;vertical-align:middle}
.tiwcc-root textarea.ax-input{padding-top:10px;padding-bottom:10px;line-height:1.5}
.tiwcc-root select.ax-input,.tiwcc-root .ax-card select.ax-input,.tiwcc-root .ax-modal select.ax-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 12px;text-overflow:ellipsis;cursor:pointer}
.tiwcc-root select.ax-input::-ms-expand{display:none}
.tiwcc-root select.ax-input.ax-input-sm,.tiwcc-root .ax-modal select.ax-input.ax-input-sm{padding-right:26px !important;background-position:right 8px center}

/* numbered workflow steps (create board + workflow settings) */
.tiwcc-root .ax-steps{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px;margin-top:10px;padding:0;counter-reset:none}
.tiwcc-root .ax-steps:empty{display:none}
.tiwcc-root .ax-steps-lg{padding:14px;border:1px solid var(--ax-line);border-radius:10px;background:var(--ax-bg);grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px}
.tiwcc-root .ax-steps .ax-step,.tiwcc-root .wb-fld .ax-steps .ax-step{display:flex;align-items:center;gap:8px;min-width:0;height:34px;margin:0;padding:0 10px 0 6px;border:1px solid var(--ax-line);border-radius:8px;background:#fff;font-size:12.5px;font-weight:500;color:var(--ax-ink)}
.tiwcc-root .ax-steps .ax-step em{flex:none;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:5px;background:var(--ax-soft);font-style:normal;font-size:10.5px;font-weight:650;color:var(--ax-muted);font-variant-numeric:tabular-nums}
.tiwcc-root .ax-steps .ax-step i{flex:none;display:block;width:8px;height:8px;border-radius:50%;margin:0}
.tiwcc-root .ax-steps .ax-step b{display:block;min-width:0;margin:0;font-weight:500;font-size:inherit;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tiwcc-root .wb-fld .ax-hint{display:block;margin-top:6px}

/* create user */
.tiwcc-root .admin-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.tiwcc-root .uc-modes{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tiwcc-root .uc-mode{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;cursor:pointer;transition:border-color .15s}
.tiwcc-root .uc-mode:has(input:checked){border-color:var(--ink);box-shadow:0 0 0 3px rgba(24,24,27,.05)}
.tiwcc-root .uc-mode input{margin:2px 0 0;accent-color:#18181b;flex:none}
.tiwcc-root .uc-mode em{display:flex;flex-direction:column;gap:3px;font-style:normal;min-width:0}
.tiwcc-root .uc-mode b{font-size:12.5px;font-weight:650;color:var(--ink)}
.tiwcc-root .uc-mode small{font-size:11.5px;color:var(--muted);line-height:1.4}
.tiwcc-root .uc-pw{display:flex;gap:8px;margin-top:8px}
.tiwcc-root .uc-pw input{flex:1;min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.tiwcc-root .wb-fld .switch-row{display:flex !important;align-items:center;justify-content:space-between;gap:10px;margin:0 !important}
.tiwcc-root .wb-fld .switch-row span{display:inline;margin:0}
.tiwcc-root .wb-fld .switch-row input{width:auto;accent-color:#18181b}
@media (max-width:560px){.tiwcc-root .uc-modes{grid-template-columns:1fr}}

/* ---------- per-type cards (.mc2) ---------- */
.tiwcc-root .mcard.mc2{padding:0;overflow:hidden;display:flex;flex-direction:column;flex:none}
.tiwcc-root .mcard.mc2 .mc-body{padding:11px 12px 10px;display:flex;flex-direction:column;gap:6px;min-width:0}
.tiwcc-root .mcard.mc2 .mc-type{display:flex;align-items:center;gap:5px;font-size:10.5px;font-weight:650;letter-spacing:.05em;text-transform:uppercase;color:var(--ax-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:26px}
.tiwcc-root .mcard.mc2.has-top .mc-type{padding-right:0}
.tiwcc-root .mcard.mc2 .mc-type span{color:var(--ax-faint)}
.tiwcc-root .mcard.mc2 h5{margin:0;font-size:13.5px;line-height:1.3;word-break:break-word}
.tiwcc-root .mcard.mc2 .ax-ctags{margin:0}
.tiwcc-root .mcard.mc2 .mc-foot{display:flex;align-items:center;gap:6px;margin-top:4px;padding-top:9px;border-top:1px solid var(--ax-line);min-width:0}
.tiwcc-root .mcard.mc2 .mc-foot-r{margin-left:auto;display:flex;align-items:center;gap:8px;flex:none}
.tiwcc-root .mcard.mc2 .mc-av{display:inline-flex}
.tiwcc-root .mcard.mc2 .card-actions{top:8px;right:8px}
.tiwcc-root .mcard.mc2.has-top .card-actions .mini-btn{background:rgba(255,255,255,.92);box-shadow:0 1px 3px rgba(0,0,0,.12)}
/* media */
.tiwcc-root .mcard.mc2 .mc-img{display:block;aspect-ratio:4/3;background:center/cover no-repeat var(--ax-soft);border-bottom:1px solid var(--ax-line)}
.tiwcc-root .mcard.mc2.k-image .mc-img{aspect-ratio:auto;min-height:150px;max-height:260px;height:190px}
.tiwcc-root .mcard.mc2 .mc-img.short{aspect-ratio:auto;height:92px}
.tiwcc-root .mcard.mc2 .mc-img.square{aspect-ratio:1/1;max-height:240px}
.tiwcc-root .mc-media-empty{display:flex;align-items:center;justify-content:center;gap:7px;height:74px;background:var(--ax-bg);border-bottom:1px dashed var(--ax-line2);color:var(--ax-faint);font-size:11.5px;font-weight:500}
.tiwcc-root .mc-media-empty.big{height:120px;border:1px dashed var(--ax-line2);border-radius:12px}
.tiwcc-root .mc-gallery{display:grid;gap:2px;height:150px;background:var(--ax-line);border-bottom:1px solid var(--ax-line)}
.tiwcc-root .mc-gallery.n1{grid-template-columns:1fr}
.tiwcc-root .mc-gallery.n2{grid-template-columns:1fr 1fr}
.tiwcc-root .mc-gallery.n3{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}
.tiwcc-root .mc-gallery.n3 span:first-child{grid-row:1/3}
.tiwcc-root .mc-gallery.n4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.tiwcc-root .mc-gallery span{position:relative;background:center/cover no-repeat var(--ax-soft);display:block}
.tiwcc-root .mc-gallery b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(28,25,23,.5);color:#fff;font-size:15px;font-weight:600}
.tiwcc-root .mc-video{position:relative;display:block;aspect-ratio:16/9;background:#1c1917 center/cover no-repeat;overflow:hidden;cursor:pointer}
.tiwcc-root .mcard .mc-video{border-bottom:1px solid var(--ax-line)}
.tiwcc-root .mc-video video,.tiwcc-root .mc-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;object-fit:cover;background:#000}
.tiwcc-root .mc-video.playing{cursor:default}
.tiwcc-root .mc-video.playing video{object-fit:contain}
.tiwcc-root .mc-play{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:rgba(255,255,255,.94);color:#1c1917;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.25);transition:transform .15s;z-index:2;padding:0 0 0 3px;border:0}
.tiwcc-root .mc-video:hover .mc-play{transform:scale(1.07)}
.tiwcc-root .mc-vbadge{position:absolute;left:8px;bottom:8px;z-index:2;padding:2px 7px;border-radius:5px;background:rgba(28,25,23,.72);color:#fff;font-size:10px;font-weight:650;letter-spacing:.04em}
.tiwcc-root .mc-video.playing .mc-vbadge{display:none}
.tiwcc-root .mc-vplayer{display:block;width:100%;max-height:360px;border-radius:12px;background:#000}
/* text */
.tiwcc-root .mc-excerpt{margin:0;font-size:12.5px;line-height:1.55;color:var(--ax-ink2);white-space:pre-line;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.tiwcc-root .mc-excerpt.short{-webkit-line-clamp:3;font-size:12px}
.tiwcc-root .mc-excerpt.empty{color:var(--ax-faint);font-style:italic}
.tiwcc-root .mcard.k-text .mc-excerpt{padding-left:10px;border-left:2px solid var(--ax-line2)}
.tiwcc-root .mc-lead{font-size:12px;line-height:1.45;color:var(--ax-ink)}
.tiwcc-root .mc-lead i,.tiwcc-root .mc-chip i,.tiwcc-root .mc-money i{font-style:normal;color:var(--ax-faint);margin-right:5px}
.tiwcc-root .mc-lead i{display:block;margin:0 0 1px;font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.tiwcc-root .mc-chips{display:flex;flex-wrap:wrap;gap:4px}
.tiwcc-root .mc-chip{display:inline-flex;align-items:center;gap:3px;max-width:100%;height:22px;padding:0 8px;border:1px solid var(--ax-line);border-radius:6px;background:var(--ax-bg);font-size:11px;color:var(--ax-ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tiwcc-root .mc-chip svg{flex:none;opacity:.6}
.tiwcc-root .mc-badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;background:var(--ax-soft);font-size:11px;font-weight:600;color:var(--ax-ink2);white-space:nowrap}
.tiwcc-root .mc-badge.ok{background:#ecfdf5;color:#047857}
.tiwcc-root .mc-badge.warn{background:#fff7ed;color:#c2410c}
.tiwcc-root .mcard.mc2 .faint,.tiwcc-root .ax-hero .faint{color:var(--ax-faint)}
/* money */
.tiwcc-root .mc-money{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:8px;background:var(--ax-bg);border:1px solid var(--ax-line)}
.tiwcc-root .mc-money i{margin:0;font-size:10.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.tiwcc-root .mc-money b{font-size:19px;font-weight:650;letter-spacing:-.02em;color:var(--ax-ink);font-variant-numeric:tabular-nums;line-height:1.2;word-break:break-all}
.tiwcc-root .mc-money b.empty{color:var(--ax-faint)}
/* product */
.tiwcc-root .mc-product{display:flex;gap:10px;align-items:flex-start}
.tiwcc-root .mc-pimg{flex:none;width:64px;height:64px;border-radius:8px;border:1px solid var(--ax-line);background:center/cover no-repeat var(--ax-soft);display:flex;align-items:center;justify-content:center;color:var(--ax-faint)}
.tiwcc-root .mc-pspec{display:flex;flex-wrap:wrap;gap:4px;min-width:0;flex:1}
.tiwcc-root .mc-pspec .mc-chip{height:20px;font-size:10.5px}
.tiwcc-root .mc-price{font-size:14px;font-weight:650;color:var(--ax-ink);font-variant-numeric:tabular-nums}
/* link & file */
.tiwcc-root .mc-link,.tiwcc-root .mc-file{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 10px;border:1px solid var(--ax-line);border-radius:8px;background:var(--ax-bg);color:var(--ax-ink);text-decoration:none;transition:border-color .15s,background .15s}
.tiwcc-root a.mc-link:hover,.tiwcc-root a.mc-file:hover{border-color:var(--ax-ink2);background:#fff}
.tiwcc-root .mc-link > svg{flex:none;color:var(--ax-faint)}
.tiwcc-root .mc-link.big{padding:12px 14px;margin-top:10px}
.tiwcc-root .mc-fav{flex:none;width:28px;height:28px;border-radius:7px;background:#fff;border:1px solid var(--ax-line);display:flex;align-items:center;justify-content:center;color:var(--ax-muted)}
.tiwcc-root .mc-link-t,.tiwcc-root .mc-file-t{display:flex;flex-direction:column;min-width:0;flex:1}
.tiwcc-root .mc-link-t b,.tiwcc-root .mc-file-t b{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tiwcc-root .mc-link-t small,.tiwcc-root .mc-file-t small{font-size:11px;color:var(--ax-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tiwcc-root .mc-file-t small:empty{display:none}
.tiwcc-root .mc-ext{flex:none;width:36px;height:40px;border-radius:6px;background:#fff;border:1px solid var(--ax-line2);display:flex;align-items:center;justify-content:center;font-size:9.5px;font-weight:700;letter-spacing:.04em;color:var(--ax-accent);position:relative}
.tiwcc-root .mc-file.empty{border-style:dashed;background:transparent}
.tiwcc-root .mc-file.empty .mc-ext{color:var(--ax-faint);border-style:dashed}
.tiwcc-root .mc-file.empty b{font-weight:500;color:var(--ax-faint)}
/* drawing */
.tiwcc-root .mc-draw{display:flex;align-items:center;justify-content:center;height:140px;padding:10px;background-color:#fff;background-image:linear-gradient(var(--ax-soft) 1px,transparent 1px),linear-gradient(90deg,var(--ax-soft) 1px,transparent 1px);background-size:14px 14px;border-bottom:1px solid var(--ax-line)}
.tiwcc-root .mc-draw img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.tiwcc-root .mc-draw.empty{height:84px;color:var(--ax-line2)}
.tiwcc-root .mc-draw.big{height:auto;min-height:180px;max-height:340px;border:1px solid var(--ax-line);border-radius:12px}
.tiwcc-root .mc-draw.big img{max-height:320px}
/* event */
.tiwcc-root .mc-event{display:flex;gap:10px;align-items:center}
.tiwcc-root .mc-date{flex:none;width:48px;height:52px;border-radius:8px;border:1px solid var(--ax-line2);background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}
.tiwcc-root .mc-date b{font-size:19px;font-weight:650;line-height:1;color:var(--ax-ink)}
.tiwcc-root .mc-date span{margin-top:3px;font-size:9.5px;font-weight:650;letter-spacing:.05em;text-transform:uppercase;color:var(--ax-accent)}
.tiwcc-root .mc-date.empty{border-style:dashed;color:var(--ax-faint)}
.tiwcc-root .mc-event-t{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:11.5px;color:var(--ax-ink2)}
.tiwcc-root .mc-event-t span{display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tiwcc-root .mc-event-t svg{flex:none;opacity:.55}
/* social / brand / approval */
.tiwcc-root .mc-social{display:flex;gap:4px;flex-wrap:wrap}
.tiwcc-root .mc-social:empty{display:none}
.tiwcc-root .mc-swatches{display:flex;gap:0;height:26px;border-radius:6px;overflow:hidden;border:1px solid var(--ax-line)}
.tiwcc-root .mc-swatches span{flex:1;display:block}
.tiwcc-root .mc-approval{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:8px;background:var(--ax-bg);border:1px solid var(--ax-line);font-size:12px}
.tiwcc-root .mc-approval .ax-person{display:inline-flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- per-type detail hero ---------- */
.tiwcc-root .ax-hero-media .mc-video{border-radius:12px;border:1px solid var(--ax-line)}
.tiwcc-root .ax-hero-money{padding:16px 18px;border:1px solid var(--ax-line);border-radius:12px;background:var(--ax-bg)}
.tiwcc-root .ax-hero-money i{display:block;font-style:normal;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--ax-faint)}
.tiwcc-root .ax-hero-money b{display:block;margin:4px 0 10px;font-size:28px;font-weight:650;letter-spacing:-.025em;color:var(--ax-ink);font-variant-numeric:tabular-nums;line-height:1.15;word-break:break-all}
.tiwcc-root .ax-hero-money .mc-chips:empty{display:none}
.tiwcc-root .ax-hero-file{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--ax-line);border-radius:12px;background:var(--ax-bg)}
.tiwcc-root .ax-hero-file .mc-ext{width:44px;height:52px;font-size:10.5px}
.tiwcc-root .ax-hero-file .ax-btn{flex:none;text-decoration:none}
.tiwcc-root .ax-hero-event{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--ax-line);border-radius:12px;background:var(--ax-bg)}
.tiwcc-root .ax-hero-event > svg{flex:none;color:var(--ax-accent)}
.tiwcc-root .ax-hero-event div{display:flex;flex-direction:column;gap:3px;min-width:0}
.tiwcc-root .ax-hero-event b{font-size:15px;font-weight:650;color:var(--ax-ink)}
.tiwcc-root .ax-hero-event span{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--ax-muted)}
.tiwcc-root .ax-hero-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.tiwcc-root .ax-hero-gallery span{display:block;aspect-ratio:1/1;border-radius:8px;background:center/cover no-repeat var(--ax-soft);border:1px solid var(--ax-line)}
.tiwcc-root .ax-hero.k-image .ax-hero-img{height:auto;aspect-ratio:4/3;max-height:340px}
.tiwcc-root .ax-readtext{font-size:13px;line-height:1.65;color:var(--ax-ink2);white-space:normal;word-break:break-word}
.tiwcc-root .ax-desc-first .ax-readtext{font-size:13.5px;padding:2px 0 4px}
.tiwcc-root .ax-desc-first textarea.spec-input{font-size:13px;line-height:1.6;resize:vertical}

/* ---------- item form per type ---------- */
.tiwcc-root .ax-video-pick{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border:1px dashed var(--ax-line2);border-radius:10px;background:var(--ax-bg)}
.tiwcc-root .ax-video-pick[hidden]{display:none}
.tiwcc-root .ax-video-pick label{cursor:pointer;margin:0}
.tiwcc-root .ax-video-pick small{font-size:11.5px;color:var(--ax-faint)}
.tiwcc-root .ax-fields-first{margin-top:2px}
.tiwcc-root .mc-approval .ax-person{flex:1 1 auto;max-width:none}
.tiwcc-root .mc-approval .mc-badge{flex:none}
.tiwcc-root .ax-wf-tools .ax-input.ax-input-sm{width:auto;min-width:220px}

/* ----- r23: live chat status (read ticks · online · typing · realtime settings) ----- */
.cv-hmeta span.is-online{color:#16a34a;font-weight:600}
.cv-hmeta span.is-typing{color:var(--accent,#f97316);font-weight:600}
.cv-hmeta span{transition:color .2s ease}
.tick.tick-pop{animation:tiwcc-tick-pop .45s ease}
@keyframes tiwcc-tick-pop{0%{transform:scale(.6);opacity:.3}60%{transform:scale(1.25)}100%{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.tick.tick-pop{animation:none}}
.cv-on{transition:opacity .2s ease}
.tiwcc-root .rt-help{margin-top:12px;padding:12px 14px;border:1px solid var(--line,#e7e5e4);border-radius:10px;font-size:12.5px;line-height:1.6;color:var(--muted,#57534e);background:var(--soft,#fafaf9)}
.tiwcc-root .rt-help b{color:var(--text,#1c1917)}
.tiwcc-root .rt-help ol{margin:6px 0 0 18px;padding:0;list-style:decimal}
.tiwcc-root .rt-help ol li{list-style:decimal;margin:2px 0}
.tiwcc-root .rt-help code{font-size:11.5px;padding:1px 5px;border-radius:5px;background:rgba(0,0,0,.05)}
.tiwcc-root #rtStatusText.rt-ok{color:#16a34a;font-weight:600}
.tiwcc-root #rtStatusText.rt-bad{color:#dc2626;font-weight:600}

/* ================================================================
   r24 — one consistent dropdown chevron + centred inputs, app-wide
   ================================================================ */
/* Every single-line select: no native arrow (it sat flush against the
   edge and differed per browser), one chevron centred vertically with a
   fixed inset. background-image is !important so older rules that use
   the `background` shorthand (which resets the image) cannot drop it. */
.tiwcc-root select:not([multiple]):not([size]){-webkit-appearance:none !important;-moz-appearance:none !important;appearance:none !important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;background-repeat:no-repeat !important;background-position:right 11px center !important;background-size:12px 12px !important;padding-right:32px !important;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;line-height:normal;text-indent:0}
.tiwcc-root select::-ms-expand{display:none}
.tiwcc-root select:disabled{cursor:not-allowed;opacity:.6}
.tiwcc-root select:hover{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important}
/* compact variants */
.tiwcc-root select.select-mini:not([multiple]):not([size]),.tiwcc-root select.ax-input-sm:not([multiple]):not([size]),.tiwcc-root .wbf-link-ctl select:not([multiple]):not([size]),.tiwcc-root .ax-frow select:not([multiple]):not([size]){padding-right:24px !important;background-position:right 7px center !important;background-size:10px 10px !important}
/* inputs & selects: text on the optical centre, same left inset */
.tiwcc-root input.spec-input,.tiwcc-root select.spec-input,.tiwcc-root input.ax-input,.tiwcc-root select.ax-input,.tiwcc-root .set-input,.tiwcc-root .wb-fld input,.tiwcc-root .wb-fld select{box-sizing:border-box;line-height:normal;padding-top:0;padding-bottom:0;vertical-align:middle}
.tiwcc-root input.spec-input:not([type=checkbox]):not([type=radio]),.tiwcc-root select.spec-input{height:34px}
.tiwcc-root .spec-row.ax-kv .spec-input,.tiwcc-root .spec-row.ax-kv .ax-input:not(textarea){height:32px}
/* native date/time picker icon: muted, not glued to the edge */
.tiwcc-root input[type=date]::-webkit-calendar-picker-indicator,.tiwcc-root input[type=time]::-webkit-calendar-picker-indicator,.tiwcc-root input[type=datetime-local]::-webkit-calendar-picker-indicator{opacity:.5;cursor:pointer;margin:0;padding:2px}
.tiwcc-root input[type=date]::-webkit-calendar-picker-indicator:hover{opacity:.9}
.tiwcc-root input[type=date]::-webkit-datetime-edit{padding:0}
/* key/value rows: label and value share one centre line */
.tiwcc-root .spec-row.ax-kv .k{line-height:1.3}
/* sidebar: no focus ring on mouse click, keep it for keyboard users */
.tiwcc-root .nav-item:focus,.tiwcc-root .filter-item:focus,.tiwcc-root .set-nav button:focus{outline:none;box-shadow:none}
.tiwcc-root .nav-item:focus-visible,.tiwcc-root .filter-item:focus-visible,.tiwcc-root .set-nav button:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}

/* ================================================================
   r24 — Settings: one page per section, grouped rows, uniform inputs
   ================================================================ */
.tiwcc-root #setSectionHost{max-width:860px}
.tiwcc-root .set-page{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg,14px);box-shadow:0 1px 2px rgba(28,25,23,.04);overflow:hidden}
.tiwcc-root .set-head{padding:26px 30px 22px;border-bottom:1px solid var(--line)}
.tiwcc-root .set-head h3{font-size:18px;font-weight:700;letter-spacing:-.01em;margin:0;color:var(--ink)}
.tiwcc-root .set-head p{margin:6px 0 0;font-size:12.5px;line-height:1.6;color:var(--muted);max-width:620px}
.tiwcc-root .set-group{padding:20px 30px 6px;border-bottom:1px solid var(--line)}
.tiwcc-root .set-group:last-of-type{border-bottom:none}
.tiwcc-root .set-gt{font-size:10.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--faint,#a8a29e);margin:0 0 4px}
.tiwcc-root .set-note{margin:4px 0 8px;font-size:12px;line-height:1.6;color:var(--muted);max-width:640px}
.tiwcc-root .set-group.is-danger .set-gt{color:#c2410c}
.tiwcc-root .set-page .set-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);align-items:center;gap:8px 28px;padding:14px 0;margin:0;border-top:1px solid var(--line);flex-wrap:nowrap}
.tiwcc-root .set-page .set-rows > .set-row:first-child,.tiwcc-root .set-page .set-rows > .set-dep:first-child > .set-row{border-top:none}
.tiwcc-root .set-page .set-row.is-stack{grid-template-columns:1fr}
.tiwcc-root .set-page .set-row .t{min-width:0}
.tiwcc-root .set-page .set-row .t b{display:block;font-size:13px;font-weight:600;color:var(--ink);line-height:1.4}
.tiwcc-root .set-page .set-row .t span{display:block;margin-top:3px;font-size:11.5px;line-height:1.55;color:var(--muted)}
.tiwcc-root .set-page .set-row .c{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.tiwcc-root .set-page .set-row.is-stack .c{justify-content:stretch}
.tiwcc-root .set-page .set-row.is-switch .c,.tiwcc-root .set-page .set-row.is-status .c{justify-content:flex-end}
.tiwcc-root .set-dep[hidden]{display:none !important}
/* inputs: one height, one radius, text on the centre line */
.tiwcc-root .set-page .set-input{box-sizing:border-box;width:100%;min-width:0;height:38px;padding:0 12px;border:1px solid var(--line-strong,#d6d3d1);border-radius:9px;background-color:#fff;font:inherit;font-size:13px;line-height:normal;color:var(--ink);transition:border-color .15s,box-shadow .15s}
.tiwcc-root .set-page .set-input::placeholder{color:var(--faint,#a8a29e)}
.tiwcc-root .set-page .set-input:hover{border-color:#a8a29e}
.tiwcc-root .set-page .set-input:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px rgba(24,24,27,.08)}
.tiwcc-root .set-page textarea.set-input{height:auto;min-height:96px;padding:10px 12px;line-height:1.55;resize:vertical}
.tiwcc-root .set-page .set-input.num{max-width:140px;margin-left:auto;text-align:left}
.tiwcc-root .set-page .c .btn{flex:none;height:38px}
.tiwcc-root .set-page .c .btn-sm{height:34px}
.tiwcc-root .set-page .switch{flex:none}
/* status + help */
.tiwcc-root .rt-state{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);margin-right:auto;text-align:left}
.tiwcc-root .rt-state::before{content:"";width:7px;height:7px;border-radius:50%;background:#a8a29e;flex:none}
.tiwcc-root .rt-state.rt-live::before{background:#16a34a}
.tiwcc-root .rt-state.rt-wait::before{background:#ea580c}
.tiwcc-root .set-page .rt-help{margin:0 30px 22px;border-radius:10px}
.tiwcc-root .set-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:10px 0 16px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.tiwcc-root .set-stats div{background:#fff;padding:14px 16px}
.tiwcc-root .set-stats b{display:block;font-size:18px;font-weight:700;color:var(--ink)}
.tiwcc-root .set-stats span{display:block;margin-top:2px;font-size:11px;color:var(--muted)}
.tiwcc-root .set-page > .set-group:has(.set-stats){padding-bottom:4px}
/* save bar */
.tiwcc-root .set-actions{display:flex;align-items:center;gap:14px;padding:16px 30px;border-top:1px solid var(--line);background:#fafaf9;position:sticky;bottom:0}
.tiwcc-root .set-actions span{font-size:11.5px;color:var(--muted)}
@media (max-width:720px){
	.tiwcc-root .set-head{padding:20px 18px 16px}
	.tiwcc-root .set-group{padding:16px 18px 4px}
	.tiwcc-root .set-page .set-row{grid-template-columns:1fr;gap:10px}
	.tiwcc-root .set-page .set-row .c{justify-content:stretch}
	.tiwcc-root .set-page .set-row.is-switch{grid-template-columns:1fr auto}
	.tiwcc-root .set-page .set-input.num{max-width:none}
	.tiwcc-root .set-page .rt-help{margin:0 18px 18px}
	.tiwcc-root .set-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
	.tiwcc-root .set-actions{padding:14px 18px}
}
.tiwcc-root .rt-state.rt-bad{color:#b91c1c}.tiwcc-root .rt-state.rt-bad::before{background:#dc2626}
.tiwcc-root .set-page .set-row{border-bottom:0 !important}.tiwcc-root .set-page .set-row:last-child{border-bottom:0}

/* r25: online avatar stack — photo with initials fallback */
.tiwcc-root .av-stack .av.live{position:relative;cursor:default}
.tiwcc-root .av-stack .av.live img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;display:block;opacity:0;transition:opacity .15s}
.tiwcc-root .av-stack .av.live.has-img img{opacity:1}
.tiwcc-root .av-stack .av.live.has-img{background:#e7e5e4}
.tiwcc-root .av-stack .av.live.has-img .av-ini{visibility:hidden}
.tiwcc-root .av-stack .av-more{font-size:10px}

/* =====================================================================
 * r27 — Project overview, scheduling fields, board filters.
 * Editorial / minimal (ax-* tokens): warm grey, black/white, one orange
 * accent, thin borders, no gradients. New components only.
 * ================================================================== */
/* priority chip + dot (cards, detail, filters) */
.tiwcc-root .ax-prio{display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:999px;border:1px solid var(--ax-line2);background:#fff;font-size:10.5px;font-weight:600;letter-spacing:.01em;color:var(--ax-ink2);white-space:nowrap;line-height:1}
.tiwcc-root .ax-prio.p-urgent{border-color:var(--ax-accent);background:var(--ax-accent);color:#fff}
.tiwcc-root .ax-prio.p-high{border-color:#fdba74;background:var(--ax-accent-soft);color:#c2410c}
.tiwcc-root .ax-prio.p-medium{color:var(--ax-ink2)}
.tiwcc-root .ax-prio.p-low{color:var(--ax-muted);border-style:dashed}
.tiwcc-root .ax-prio.mc-prio{margin-left:auto}
.tiwcc-root .mc-type:has(.mc-prio){display:flex;align-items:center;gap:4px}
.tiwcc-root .ax-pdot{width:8px;height:8px;border-radius:50%;flex:none;background:var(--ax-line2);display:inline-block}
.tiwcc-root .ax-pdot.p-urgent{background:var(--ax-accent)}
.tiwcc-root .ax-pdot.p-high{background:#fdba74}
.tiwcc-root .ax-pdot.p-medium{background:var(--ax-ink2)}
.tiwcc-root .ax-pdot.p-low{background:transparent;border:1px solid var(--ax-faint)}
.tiwcc-root .ax-pdot.p-__none__{background:transparent;border:1px dashed var(--ax-line2)}
.tiwcc-root .ax-due.done{color:var(--ax-faint);text-decoration:line-through;text-decoration-thickness:1px}

/* filter dock: search, avatars, reset */
.tiwcc-root .ax-fsearch{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.tiwcc-root .ax-search-in{display:flex;align-items:center;gap:7px;height:32px;padding:0 10px;border:1px solid var(--ax-line2);border-radius:8px;background:#fff;color:var(--ax-faint)}
.tiwcc-root .ax-search-in:focus-within{border-color:var(--ax-ink);color:var(--ax-ink2)}
.tiwcc-root .ax-search-in input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:12.5px;color:var(--ax-ink);height:100%;padding:0}
.tiwcc-root .ax-search-in input::-webkit-search-cancel-button{opacity:.5}
.tiwcc-root .ax-freset{align-self:flex-start}
.tiwcc-root .ax-fav{display:inline-flex;flex:none}
.tiwcc-root .ax-fav img,.tiwcc-root .ax-fav .av{width:16px;height:16px}
.tiwcc-root .board-filter-btn{display:none;width:34px;height:34px;align-items:center;justify-content:center;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.7);color:var(--ink-2);flex:none}
@media (max-width:1100px){
	.tiwcc-root .board-filter-btn{display:inline-flex}
	.tiwcc-root .dock-left.sheet-open{display:flex;position:absolute;left:0;top:0;bottom:0;width:min(280px,86%);z-index:46;background:rgba(255,255,255,.98);box-shadow:var(--shadow-lg)}
	.tiwcc-root .dock-left.sheet-open.collapsed{width:min(280px,86%)}
	.tiwcc-root .dock-left.sheet-open.collapsed .dock-content,.tiwcc-root .dock-left.sheet-open.collapsed .dock-head span{display:block}
}
@media (max-width:768px){.tiwcc-root .board-filter-btn{margin-left:auto}.tiwcc-root .board-filter-btn + .board-more-btn{margin-left:0}}

/* item form + detail: schedule */
.tiwcc-root .ax-sched{align-items:start}
.tiwcc-root .ax-dur{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;color:var(--ax-muted);margin-top:-4px}
.tiwcc-root .ax-dur b{font-weight:600;color:var(--ax-ink2)}
.tiwcc-root .ax-dur .late,.tiwcc-root .ax-sched-late{color:#c2410c}
.tiwcc-root .ax-sched-ok{color:var(--ax-muted)}
.tiwcc-root .ax-sched-line{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12.5px}
.tiwcc-root .ax-sched-line i{font-style:normal;color:var(--ax-faint)}

/* project schedule modal */
.tiwcc-root .ax-sched-set{display:flex;flex-direction:column;gap:12px;margin-top:14px;padding-top:14px;border-top:1px solid var(--ax-line)}
.tiwcc-root .ax-sched-set .ax-field > span{display:block}
.tiwcc-root .ax-days{display:flex;flex-wrap:wrap;gap:6px}
.tiwcc-root .ax-day{position:relative;display:inline-flex;cursor:pointer}
.tiwcc-root .ax-day input{position:absolute;opacity:0;pointer-events:none}
.tiwcc-root .ax-day span{display:inline-flex !important;align-items:center;justify-content:center;min-width:44px;height:32px;padding:0 10px;border:1px solid var(--ax-line2);border-radius:8px;background:#fff;font-size:12.5px;font-weight:550;color:var(--ax-muted);transition:border-color .15s,background .15s,color .15s}
.tiwcc-root .ax-day.on span{background:var(--ax-ink);border-color:var(--ax-ink);color:#fff}
.tiwcc-root .ax-day input:focus-visible + span{box-shadow:0 0 0 3px rgba(28,25,23,.12)}

/* ---------- overview ---------- */
.tiwcc-root #tiwcc-view-board.ptab-overview #kanban,
.tiwcc-root #tiwcc-view-board.ptab-overview #dockL{display:none}
.tiwcc-root #tiwcc-view-board.ptab-overview .board-filter-btn{visibility:hidden}
.tiwcc-root .pov{flex:1;min-width:0;overflow-y:auto;background:#fff;border:1px solid var(--ax-line);border-radius:var(--r-lg);color:var(--ax-ink)}
.tiwcc-root .pov[hidden]{display:none}
.tiwcc-root .pov-inner{max-width:1180px;margin:0 auto;padding:30px 34px 40px}
.tiwcc-root .pov-head{padding-bottom:22px;border-bottom:1px solid var(--ax-line)}
.tiwcc-root .pov-head .ax-eyebrow i{font-style:normal;margin:0 6px;color:var(--ax-faint)}
.tiwcc-root .pov-head h2{font-size:28px;font-weight:600;letter-spacing:-.025em;line-height:1.15;margin:0;color:var(--ax-ink)}
.tiwcc-root .pov-desc{margin:10px 0 0;max-width:72ch;font-size:13.5px;line-height:1.6;color:var(--ax-ink2)}
.tiwcc-root .pov-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:14px;font-size:12.5px;color:var(--ax-muted)}
.tiwcc-root .pov-meta > span + span::before{content:"·";margin-right:8px;color:var(--ax-line2)}
.tiwcc-root .pov-meta .ax-link{margin-left:8px}
.tiwcc-root .pov-top{display:grid;grid-template-columns:minmax(260px,1fr) 2fr;gap:28px;padding:24px 0;border-bottom:1px solid var(--ax-line)}
.tiwcc-root .pov-progress{display:flex;flex-direction:column;gap:14px}
.tiwcc-root .pov-big{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.tiwcc-root .pov-big b{font-size:52px;font-weight:600;letter-spacing:-.04em;line-height:1;color:var(--ax-ink)}
.tiwcc-root .pov-big b small{font-size:22px;font-weight:500;color:var(--ax-muted);margin-left:2px}
.tiwcc-root .pov-big span{font-size:12.5px;color:var(--ax-muted)}
.tiwcc-root .pov-bars{display:flex;flex-direction:column;gap:8px}
.tiwcc-root .pov-bar-row{display:grid;grid-template-columns:118px 1fr 40px;align-items:center;gap:10px;font-size:12px;color:var(--ax-muted)}
.tiwcc-root .pov-bar-row b{font-weight:600;color:var(--ax-ink2);text-align:right;font-variant-numeric:tabular-nums}
.tiwcc-root .pov-bar{height:6px;border-radius:99px;background:var(--ax-soft);overflow:hidden}
.tiwcc-root .pov-bar i{display:block;height:100%;background:var(--ax-faint);border-radius:99px;transition:width .5s var(--ease)}
.tiwcc-root .pov-bar.ink i{background:var(--ax-ink)}
.tiwcc-root .pov-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--ax-line);border-radius:12px;overflow:hidden;align-self:start}
.tiwcc-root .pov-kpi{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px 18px;background:#fff;text-align:left;border-right:1px solid var(--ax-line);border-bottom:1px solid var(--ax-line);transition:background .15s}
.tiwcc-root .pov-kpi:nth-child(3n){border-right:0}
.tiwcc-root .pov-kpi:nth-last-child(-n+3){border-bottom:0}
.tiwcc-root .pov-kpi:hover{background:var(--ax-bg)}
.tiwcc-root .pov-kpi span{font-size:10.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ax-muted)}
.tiwcc-root .pov-kpi b{font-size:26px;font-weight:600;letter-spacing:-.02em;line-height:1;color:var(--ax-ink);font-variant-numeric:tabular-nums}
.tiwcc-root .pov-kpi.is-late b{color:var(--ax-accent)}
.tiwcc-root .pov-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:0 28px;padding-top:6px}
.tiwcc-root .pov-col{display:flex;flex-direction:column;min-width:0}
.tiwcc-root .pov-card{padding:20px 0;border-bottom:1px solid var(--ax-line)}
.tiwcc-root .pov-col .pov-card:last-child{border-bottom:0}
.tiwcc-root .pov-card h4{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--ax-muted)}
.tiwcc-root .pov-n{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;padding:0 6px;border-radius:99px;background:var(--ax-soft);font-size:10.5px;letter-spacing:0;color:var(--ax-ink2)}
.tiwcc-root .pov-empty{margin:0;font-size:12.5px;color:var(--ax-faint)}
.tiwcc-root .pov-stack{display:flex;height:10px;border-radius:99px;overflow:hidden;gap:2px;margin-bottom:12px;background:var(--ax-soft)}
.tiwcc-root .pov-stack i{display:block;min-width:4px}
.tiwcc-root .pov-legend{display:flex;flex-direction:column}
.tiwcc-root .pov-leg{display:grid;grid-template-columns:12px 1fr auto 40px;align-items:center;gap:10px;padding:7px 6px;margin:0 -6px;border-radius:8px;text-align:left;font-size:13px;color:var(--ax-ink2)}
.tiwcc-root .pov-leg:hover{background:var(--ax-bg)}
.tiwcc-root .pov-leg .stage-dot{width:9px;height:9px;border-radius:50%}
.tiwcc-root .pov-leg-l{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .pov-leg-l em{font-style:normal;margin-left:8px;font-size:10.5px;color:var(--ax-muted);border:1px solid var(--ax-line);border-radius:99px;padding:1px 6px}
.tiwcc-root .pov-leg b{font-weight:600;color:var(--ax-ink);font-variant-numeric:tabular-nums}
.tiwcc-root .pov-leg-p{font-size:11.5px;color:var(--ax-faint);text-align:right;font-variant-numeric:tabular-nums}
.tiwcc-root .pov-row{display:flex;align-items:center;gap:10px;width:100%;padding:9px 6px;margin:0 -6px;width:calc(100% + 12px);border-radius:8px;text-align:left;font-size:13px;color:var(--ax-ink)}
.tiwcc-root .pov-row + .pov-row{border-top:1px solid var(--ax-soft)}
.tiwcc-root .pov-row:hover{background:var(--ax-bg)}
.tiwcc-root .pov-row .stage-dot{width:8px;height:8px;border-radius:50%;flex:none}
.tiwcc-root .pov-rt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.tiwcc-root .pov-rd{display:flex;flex-direction:column;align-items:flex-end;flex:none;font-size:12px;color:var(--ax-ink2);line-height:1.25;font-variant-numeric:tabular-nums}
.tiwcc-root .pov-rd small{font-size:10.5px;color:var(--ax-faint)}
.tiwcc-root .pov-rd .late{color:#c2410c}
.tiwcc-root .pov-rav{display:inline-flex;width:20px;flex:none}
.tiwcc-root .pov-more{display:inline-block;margin-top:10px}
.tiwcc-root .pov-who{display:grid;grid-template-columns:22px minmax(0,1fr) 72px 24px 76px;align-items:center;gap:10px;width:calc(100% + 12px);padding:7px 6px;margin:0 -6px;border-radius:8px;text-align:left;font-size:13px;color:var(--ax-ink)}
.tiwcc-root .pov-who:hover{background:var(--ax-bg)}
.tiwcc-root .pov-who-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .pov-who-bar{height:4px;border-radius:99px;background:var(--ax-soft);overflow:hidden}
.tiwcc-root .pov-who-bar i{display:block;height:100%;background:var(--ax-ink2);border-radius:99px}
.tiwcc-root .pov-who b{font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.tiwcc-root .pov-who em{font-style:normal;font-size:11px;color:var(--ax-faint);white-space:nowrap}
.tiwcc-root .pov-who em.late{color:#c2410c}
.tiwcc-root .pov-noav{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;border:1px dashed var(--ax-line2);color:var(--ax-faint)}
.tiwcc-root .pov-act{display:flex;gap:10px;padding:8px 0;font-size:12.5px;line-height:1.45;color:var(--ax-ink2)}
.tiwcc-root .pov-act + .pov-act{border-top:1px solid var(--ax-soft)}
.tiwcc-root .pov-act p{margin:0}
.tiwcc-root .pov-act b{font-weight:600;color:var(--ax-ink)}
.tiwcc-root .pov-act time{display:block;font-size:11px;color:var(--ax-faint);margin-top:2px}
@media (max-width:1100px){
	.tiwcc-root .pov-top{grid-template-columns:1fr}
	.tiwcc-root .pov-inner{padding:24px 24px 32px}
}
@media (max-width:860px){
	.tiwcc-root .pov-grid{grid-template-columns:1fr}
	.tiwcc-root .pov-col + .pov-col .pov-card:first-child{border-top:1px solid var(--ax-line)}
}
@media (max-width:560px){
	.tiwcc-root .pov-inner{padding:18px 16px 26px}
	.tiwcc-root .pov-head h2{font-size:22px}
	.tiwcc-root .pov-big b{font-size:42px}
	.tiwcc-root .pov-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
	.tiwcc-root .pov-kpi:nth-child(3n){border-right:1px solid var(--ax-line)}
	.tiwcc-root .pov-kpi:nth-child(2n){border-right:0}
	.tiwcc-root .pov-kpi:nth-last-child(-n+3){border-bottom:1px solid var(--ax-line)}
	.tiwcc-root .pov-kpi:nth-last-child(-n+2){border-bottom:0}
	.tiwcc-root .pov-kpi{padding:14px}
	.tiwcc-root .pov-bar-row{grid-template-columns:96px 1fr 36px}
	.tiwcc-root .pov-who{grid-template-columns:22px minmax(0,1fr) 24px 70px}
	.tiwcc-root .pov-who-bar{display:none}
	.tiwcc-root .pov-row .ax-prio{display:none}
}
/* r27: tablet board bar — room for the Overview tab without wrapping */
@media (min-width:769px) and (max-width:1100px){
	.tiwcc-root .board-bar{gap:8px}
	.tiwcc-root .board-bar .crumb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
	.tiwcc-root .board-bar .datepick{white-space:nowrap;min-width:0}
	.tiwcc-root .board-bar .datepick #boardRange{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
	.tiwcc-root .board-bar .viewtoggle button:not(.active) span{display:none}
	.tiwcc-root .board-bar .btn[data-action="export"] span{display:none}
}

/* ==================================================================
 * r28 — project management module (app-pm.js)
 * Project nav · timeline · calendar · milestones · dependencies ·
 * files · activity · project settings · approvals · time · reports.
 * Editorial style: ink / warm grey / orange accent, thin lines,
 * no gradients, no emojis.
 * ================================================================ */

/* ---------- project navigation ---------- */
.tiwcc-root .pnav{flex:none;height:42px;display:flex;align-items:stretch;padding:0 6px;background:#fff;border:1px solid var(--ax-line);border-radius:var(--r-lg);overflow:hidden}
.tiwcc-root .pnav-track{display:flex;align-items:stretch;gap:2px;overflow-x:auto;scrollbar-width:none;min-width:0;flex:1}
.tiwcc-root .pnav-track::-webkit-scrollbar{display:none}
.tiwcc-root .pnav button{position:relative;display:inline-flex;align-items:center;gap:6px;flex:none;height:100%;margin:0;padding:0 12px;border:0;border-radius:0;background:transparent;box-shadow:none;font-family:inherit;font-size:13px;font-weight:550;color:var(--ax-muted);white-space:nowrap;cursor:pointer;transition:color .15s}
.tiwcc-root .pnav button::after{content:"";position:absolute;left:10px;right:10px;bottom:0;height:2px;border-radius:2px 2px 0 0;background:transparent;transition:background .15s}
.tiwcc-root .pnav button:hover{color:var(--ax-ink)}
.tiwcc-root .pnav button.active{color:var(--ax-ink)}
.tiwcc-root .pnav button.active::after{background:var(--ax-ink)}
.tiwcc-root .pnav button[hidden]{display:none}
.tiwcc-root .pnav button:focus-visible{outline:2px solid var(--ax-ink);outline-offset:-4px}
.tiwcc-root .pnav-n{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 5px;border-radius:99px;background:var(--ax-accent);color:#fff;font-size:10px;font-style:normal;font-weight:650}
.tiwcc-root .pnav-n[hidden]{display:none}

/* ---------- pane host ---------- */
.tiwcc-root #tiwcc-view-board.ptab-pm #overview{display:none}
.tiwcc-root .pmx{flex:1;min-width:0;overflow-y:auto;background:#fff;border:1px solid var(--ax-line);border-radius:var(--r-lg);color:var(--ax-ink)}
.tiwcc-root .pmx[hidden]{display:none}
.tiwcc-root .pmx-inner{max-width:1080px;margin:0 auto;padding:28px 32px 40px}
.tiwcc-root .pmx-inner.pmx-wide{max-width:none}
.tiwcc-root .pmx-inner.pmx-narrow{max-width:820px}
.tiwcc-root .pmx-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--ax-line)}
.tiwcc-root .pmx-head-t{min-width:0;flex:1 1 280px}
.tiwcc-root .pmx-head h2{margin:0;font-size:24px;font-weight:600;letter-spacing:-.02em;line-height:1.2;color:var(--ax-ink)}
.tiwcc-root .pmx-sub{margin:6px 0 0;font-size:12.5px;line-height:1.55;color:var(--ax-muted)}
.tiwcc-root .pmx-sub-hint{color:var(--ax-faint)}
.tiwcc-root .pmx-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.tiwcc-root .pmx-nav{display:inline-flex;gap:4px}
.tiwcc-root .pmx-seg{display:inline-flex;padding:2px;border:1px solid var(--ax-line);border-radius:9px;background:var(--ax-bg)}
.tiwcc-root .pmx-seg button{height:26px;margin:0;padding:0 10px;border:0;border-radius:7px;background:transparent;box-shadow:none;font-family:inherit;font-size:12px;font-weight:550;color:var(--ax-muted);cursor:pointer;white-space:nowrap}
.tiwcc-root .pmx-seg button:hover{color:var(--ax-ink)}
.tiwcc-root .pmx-seg button.on{background:#fff;color:var(--ax-ink);box-shadow:0 1px 2px rgba(28,25,23,.08),0 0 0 1px var(--ax-line)}
.tiwcc-root .pmx-chk{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--ax-ink2);white-space:nowrap;cursor:pointer}
.tiwcc-root .pmx-chk input{margin:0;accent-color:var(--ax-ink)}
.tiwcc-root .pmx-loading{display:flex;justify-content:center;padding:48px 0}
.tiwcc-root .pmx-empty{padding:44px 20px;text-align:center;border:1px dashed var(--ax-line2);border-radius:12px;color:var(--ax-muted)}
.tiwcc-root .pmx-empty b{display:block;font-size:14px;font-weight:600;color:var(--ax-ink2)}
.tiwcc-root .pmx-empty p{margin:6px auto 0;max-width:52ch;font-size:12.5px;line-height:1.55}
.tiwcc-root span.pmx-dot.pmx-dot{display:inline-block;flex:none;width:8px;height:8px;min-width:8px;padding:0;border-radius:50%;overflow:visible}
.tiwcc-root .pmx .av,.tiwcc-root .pmx-uitem .av,.tiwcc-root .cal-ev .av,.tiwcc-root .ps-mem .av,.tiwcc-root .pr-who .av,.tiwcc-root .pa-av .av{flex:none}
.tiwcc-root .pmx-dia{display:inline-block;flex:none;width:9px;height:9px;transform:rotate(45deg);border-radius:1.5px;background:var(--ax-ink)}
.tiwcc-root .pmx-dia.sm{width:7px;height:7px}
.tiwcc-root .pmx-dia.off{background:transparent;box-shadow:inset 0 0 0 1.5px var(--ax-faint)}
.tiwcc-root .pmx-int{display:inline-flex;align-items:center;height:17px;padding:0 6px;margin-left:4px;border:1px solid var(--ax-line2);border-radius:99px;font-size:10px;font-style:normal;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ax-muted);vertical-align:middle}
.tiwcc-root .pmx-x{display:inline-flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--ax-faint);cursor:pointer}
.tiwcc-root .pmx-x:hover{background:var(--ax-soft);color:var(--ax-ink)}
.tiwcc-root .pmx-note{margin:8px 0 0;font-size:11.5px;line-height:1.5;color:var(--ax-faint)}
.tiwcc-root .pmx-none{margin:4px 0;font-size:12px;color:var(--ax-faint)}
.tiwcc-root .pmx-warn{margin:0 0 8px;padding:7px 10px;border-left:2px solid var(--ax-ink2);background:var(--ax-bg);font-size:12px;line-height:1.45;color:var(--ax-ink2)}
.tiwcc-root .pmx-warn.accent{border-left-color:var(--ax-accent);background:var(--ax-accent-soft);color:#9a3412}
.tiwcc-root .pmx-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tiwcc-root .pmx-form{display:flex;flex-direction:column;gap:12px}
.tiwcc-root .pmx-form .ax-field > span{display:block}

/* status chips (milestones, approvals) */
.tiwcc-root .pmx-ms-st,.tiwcc-root .pmx-ap{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:99px;border:1px solid var(--ax-line2);background:#fff;font-size:11px;font-weight:600;color:var(--ax-ink2);white-space:nowrap}
.tiwcc-root .pmx-ms-st.st-active{border-color:var(--ax-ink);color:var(--ax-ink)}
.tiwcc-root .pmx-ms-st.st-done{background:var(--ax-ink);border-color:var(--ax-ink);color:#fff}
.tiwcc-root .pmx-ms-st.st-cancelled{color:var(--ax-faint);text-decoration:line-through}
.tiwcc-root .pmx-ms-st.late{border-color:#c2410c;background:var(--ax-accent-soft);color:#c2410c}
.tiwcc-root .pmx-ap.st-pending{border-color:var(--ax-accent);background:var(--ax-accent-soft);color:#c2410c}
.tiwcc-root .pmx-ap.st-approved{background:var(--ax-ink);border-color:var(--ax-ink);color:#fff}
.tiwcc-root .pmx-ap.st-revision,.tiwcc-root .pmx-ap.st-rejected{border-color:var(--ax-ink2);color:var(--ax-ink)}
.tiwcc-root .pmx-ap.st-cancelled{color:var(--ax-faint)}

/* ---------- unscheduled tray (timeline + calendar) ---------- */
.tiwcc-root .pmx-unsched{margin-top:22px;padding:16px 18px;border:1px dashed var(--ax-line2);border-radius:12px;background:var(--ax-bg)}
.tiwcc-root .pmx-unsched-h h4{display:flex;align-items:center;gap:8px;margin:0;font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--ax-muted)}
.tiwcc-root .pmx-unsched-h p{margin:6px 0 12px;font-size:12px;line-height:1.5;color:var(--ax-faint)}
.tiwcc-root .pmx-unsched-list{display:flex;flex-wrap:wrap;gap:6px}
.tiwcc-root .pmx-uitem{display:inline-flex;align-items:center;gap:7px;max-width:280px;height:30px;margin:0;padding:0 10px;border:1px solid var(--ax-line);border-radius:8px;background:#fff;box-shadow:none;font-family:inherit;font-size:12.5px;color:var(--ax-ink);cursor:pointer}
.tiwcc-root .pmx-uitem[draggable="true"]{cursor:grab}
.tiwcc-root .pmx-uitem span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .pmx-uitem:hover{border-color:var(--ax-line2);box-shadow:0 1px 3px rgba(28,25,23,.06)}
.tiwcc-root .pmx-uitem.dragging{opacity:.5}

/* ---------- timeline ---------- */
.tiwcc-root .tl{border:1px solid var(--ax-line);border-radius:12px;overflow:hidden;background:#fff}
.tiwcc-root .tl-scroll{overflow:auto;max-height:calc(100vh - 290px);min-height:260px;overscroll-behavior:contain}
.tiwcc-root .tl-canvas{position:relative;min-width:100%}
.tiwcc-root .tl-head{position:sticky;top:0;z-index:6;display:flex;height:46px;background:#fff;border-bottom:1px solid var(--ax-line)}
.tiwcc-root .tl-corner{position:sticky;left:0;z-index:2;flex:none;width:var(--lab);display:flex;align-items:flex-end;padding:0 14px 8px;background:#fff;border-right:1px solid var(--ax-line);font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--ax-muted)}
.tiwcc-root .tl-scale{position:relative;flex:none}
.tiwcc-root .tl-months{position:relative;height:20px}
.tiwcc-root .tl-month{position:absolute;top:0;height:20px;border-left:1px solid var(--ax-line)}
.tiwcc-root .tl-month span{position:sticky;left:calc(var(--lab) + 6px);display:inline-block;padding:4px 6px 0;font-size:11px;font-weight:600;color:var(--ax-ink2);white-space:nowrap}
.tiwcc-root .tl-ticks{position:relative;height:26px}
.tiwcc-root .tl-tick{position:absolute;top:0;height:26px;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05;font-variant-numeric:tabular-nums}
.tiwcc-root .tl-tick b{font-size:11px;font-weight:600;color:var(--ax-ink2)}
.tiwcc-root .tl-tick i{font-size:9px;font-style:normal;color:var(--ax-faint)}
.tiwcc-root .tl-tick.off b{color:var(--ax-faint);font-weight:500}
.tiwcc-root .tl-tick.now b{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:17px;border-radius:99px;background:var(--ax-accent);color:#fff}
.tiwcc-root .tl-tick.wk{align-items:flex-start;padding-left:6px;border-left:1px solid var(--ax-soft)}
.tiwcc-root .tl-tick.wk b{font-weight:500;color:var(--ax-muted);white-space:nowrap}
.tiwcc-root .tl-row{position:relative;display:flex;height:36px;border-bottom:1px solid var(--ax-soft)}
.tiwcc-root .tl-lab{position:sticky;left:0;z-index:4;flex:none;width:var(--lab);display:flex;align-items:center;gap:8px;min-width:0;padding:0 10px 0 14px;background:#fff;border-right:1px solid var(--ax-line)}
.tiwcc-root .tl-track{position:relative;flex:1;min-width:0}
.tiwcc-root .tl-name{display:flex;align-items:center;gap:8px;flex:1;min-width:0;height:28px;margin:0;padding:0 6px;margin-left:-6px;border:0;border-radius:6px;background:transparent;box-shadow:none;font-family:inherit;font-size:12.5px;color:var(--ax-ink);text-align:left;cursor:pointer}
.tiwcc-root .tl-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .tl-name:hover{background:var(--ax-bg)}
.tiwcc-root .tl-meta{display:inline-flex;flex:none}
.tiwcc-root .tl-grow{height:32px;background:var(--ax-bg)}
.tiwcc-root .tl-grow .tl-lab{background:var(--ax-bg);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ax-muted)}
.tiwcc-root .tl-grow .tl-lab b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ax-ink2)}
.tiwcc-root .tl-msrow{height:34px;background:#fff;border-bottom:1px solid var(--ax-line)}
.tiwcc-root .tl-msrow .tl-lab{font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--ax-muted)}
.tiwcc-root .tl-msrow .tl-lab b{font-weight:600}
.tiwcc-root .tl-ms{position:absolute;top:50%;z-index:3;display:inline-flex;align-items:center;gap:6px;max-width:180px;height:24px;margin:0;padding:0 6px 0 0;border:0;background:transparent;box-shadow:none;transform:translate(-6px,-50%);font-family:inherit;font-size:11.5px;font-weight:600;color:var(--ax-ink);cursor:pointer;white-space:nowrap}
.tiwcc-root .tl-ms[data-ms-drag]{cursor:grab;touch-action:pan-y}
.tiwcc-root .tl-ms i{flex:none;width:11px;height:11px;transform:rotate(45deg);border-radius:2px;background:var(--ax-ink);box-shadow:0 0 0 2px #fff}
.tiwcc-root .tl-ms span{overflow:hidden;text-overflow:ellipsis;padding:1px 4px;border-radius:4px;background:rgba(255,255,255,.9)}
.tiwcc-root .tl-ms:hover span{background:var(--ax-soft)}
.tiwcc-root .tl-ms.st-done i{background:var(--ax-faint)}
.tiwcc-root .tl-ms.st-done span,.tiwcc-root .tl-ms.st-cancelled span{color:var(--ax-muted)}
.tiwcc-root .tl-ms.st-cancelled i{background:transparent;box-shadow:inset 0 0 0 1.5px var(--ax-faint),0 0 0 2px #fff}
.tiwcc-root .tl-ms.late i{background:var(--ax-accent)}
.tiwcc-root .tl-ms.late span{color:#c2410c}
.tiwcc-root .tl-ms.dragging{opacity:.8}
.tiwcc-root .tl-body{position:relative}
.tiwcc-root .tl-bg{position:absolute;top:0;bottom:0;left:var(--lab);pointer-events:none;z-index:0}
.tiwcc-root .tl-off{position:absolute;top:0;bottom:0;background:var(--ax-bg)}
.tiwcc-root .tl-wline{position:absolute;top:0;bottom:0;width:1px;background:var(--ax-soft)}
.tiwcc-root .tl-msline{position:absolute;top:0;bottom:0;width:0;border-left:1px dashed var(--ax-line2)}
.tiwcc-root .tl-msline.late{border-left-color:rgba(234,88,12,.45)}
.tiwcc-root .tl-now{position:absolute;top:0;bottom:0;width:0;border-left:1.5px solid var(--ax-accent);z-index:1}
.tiwcc-root .tl-now span{position:absolute;top:4px;left:4px;padding:1px 5px;border-radius:4px;background:var(--ax-accent);color:#fff;font-size:9.5px;font-style:normal;font-weight:650;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.tiwcc-root .tl-body .tl-row{z-index:1;background:transparent}
.tiwcc-root .tl-body .tl-row:hover .tl-lab{background:var(--ax-bg)}
.tiwcc-root .tl-body .tl-grow:hover .tl-lab{background:var(--ax-bg)}
.tiwcc-root .tl-links{position:absolute;left:0;top:0;z-index:0;pointer-events:none;overflow:visible}
.tiwcc-root .tl-links path{fill:none;stroke:var(--ax-faint);stroke-width:1.25}
.tiwcc-root .tl-links path.bad{stroke:var(--ax-accent);stroke-dasharray:4 3}
.tiwcc-root .tl-bar{position:absolute;top:7px;height:22px;z-index:3;display:flex;align-items:center;min-width:6px;padding:0 8px;border:1px solid var(--c,#a8a29e);border-radius:6px;background:var(--ax-soft);background:color-mix(in srgb,var(--c,#a8a29e) 16%,#fff);box-shadow:inset 3px 0 0 var(--c,#a8a29e);cursor:pointer;user-select:none;-webkit-user-select:none;transition:box-shadow .15s}
.tiwcc-root .tl-bar b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;font-weight:550;color:var(--ax-ink)}
.tiwcc-root .tl-bar:hover{box-shadow:inset 3px 0 0 var(--c,#a8a29e),0 2px 6px rgba(28,25,23,.1)}
.tiwcc-root .tl-bar.can-drag{cursor:grab;touch-action:pan-y}
.tiwcc-root .tl-bar.narrow{padding:0}
.tiwcc-root .tl-bar.narrow b{position:absolute;left:calc(100% + 6px);max-width:220px;overflow:visible;color:var(--ax-ink2)}
.tiwcc-root .tl-bar.done{border-color:var(--ax-line2);background:var(--ax-soft);box-shadow:inset 3px 0 0 var(--ax-faint)}
.tiwcc-root .tl-bar.done b{color:var(--ax-muted);text-decoration:line-through;text-decoration-color:var(--ax-faint)}
.tiwcc-root .tl-bar.rej{border-style:dotted;border-color:var(--ax-line2);background:#fff;box-shadow:none}
.tiwcc-root .tl-bar.rej b{color:var(--ax-faint)}
.tiwcc-root .tl-bar.late{border-color:#c2410c;background:var(--ax-accent-soft);box-shadow:inset 3px 0 0 #c2410c}
.tiwcc-root .tl-bar.late b{color:#9a3412}
.tiwcc-root .tl-bar.blocked{border-style:dashed}
.tiwcc-root .tl-bar.conflict{outline:1.5px solid var(--ax-accent);outline-offset:1px}
.tiwcc-root .tl-bar.due-only{border-left-style:dashed}
.tiwcc-root .tl-bar.start-only{border-right-style:dashed}
.tiwcc-root .tl-bar.dragging{z-index:8;cursor:grabbing;opacity:.92;box-shadow:inset 3px 0 0 var(--c,#a8a29e),0 6px 16px rgba(28,25,23,.18)}
.tiwcc-root .tl-h{position:absolute;top:-1px;bottom:-1px;width:9px;z-index:2;cursor:ew-resize;touch-action:none}
.tiwcc-root .tl-h.l{left:-4px}
.tiwcc-root .tl-h.r{right:-4px}
.tiwcc-root .tl-h::after{content:"";position:absolute;top:5px;bottom:5px;left:3px;width:3px;border-radius:2px;background:var(--c,#a8a29e);opacity:0;transition:opacity .15s}
.tiwcc-root .tl-bar:hover .tl-h::after,.tiwcc-root .tl-bar.dragging .tl-h::after{opacity:1}
.tiwcc-root .tl-bar.narrow .tl-h{width:7px}
.tiwcc-root .tl-empty-row{height:120px}
.tiwcc-root .tl-empty-row .tl-track{display:flex;align-items:center;padding-left:18px}
.tiwcc-root .tl-body.drop-on{background:var(--ax-accent-soft)}

/* ---------- calendar ---------- */
.tiwcc-root .cal-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin:-4px 0 14px;font-size:11.5px;color:var(--ax-muted)}
.tiwcc-root .cal-legend > span{display:inline-flex;align-items:center;gap:6px}
.tiwcc-root .cal-legend i{display:inline-block;flex:none}
.tiwcc-root .cal-legend .lg-due{width:14px;height:10px;border-radius:3px;border:1px solid var(--ax-line2);background:#fff;box-shadow:inset 2px 0 0 var(--ax-ink2)}
.tiwcc-root .cal-legend .lg-late{width:14px;height:10px;border-radius:3px;border:1px solid #c2410c;background:var(--ax-accent-soft)}
.tiwcc-root .cal-legend .lg-field{width:14px;height:10px;border-radius:3px;border:1px dashed var(--ax-line2)}
.tiwcc-root .cal-legend-hint{margin-left:auto;color:var(--ax-faint)}
.tiwcc-root .cal{border:1px solid var(--ax-line);border-radius:12px;overflow:hidden;background:#fff}
.tiwcc-root .cal-head{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-bottom:1px solid var(--ax-line);background:var(--ax-bg)}
.tiwcc-root .cal-wh{padding:8px 10px;font-size:10.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ax-muted)}
.tiwcc-root .cal-wh.off{color:var(--ax-faint)}
.tiwcc-root .cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.tiwcc-root .cal-day{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0;min-height:112px;padding:6px 6px 8px;border-right:1px solid var(--ax-soft);border-bottom:1px solid var(--ax-soft);transition:background .12s}
.tiwcc-root .cal-day:nth-child(7n){border-right:0}
.tiwcc-root .cal-day.off{background:var(--ax-bg)}
.tiwcc-root .cal-day.out{background:#fff}
.tiwcc-root .cal-day.out .cal-dn b{color:var(--ax-line2)}
.tiwcc-root .cal-day.out .cal-evs{opacity:.55}
.tiwcc-root .cal-day.today .cal-dn b{background:var(--ax-accent);color:#fff}
.tiwcc-root .cal-day.open{z-index:2}
.tiwcc-root .cal-day.drop-on{background:var(--ax-accent-soft);box-shadow:inset 0 0 0 1.5px var(--ax-accent)}
.tiwcc-root .cal-dn{display:flex;align-items:center;gap:6px;padding:0 2px}
.tiwcc-root .cal-dn b{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 4px;border-radius:99px;font-size:12px;font-weight:600;color:var(--ax-ink2);font-variant-numeric:tabular-nums}
.tiwcc-root .cal-wd{display:none;font-size:11.5px;color:var(--ax-muted)}
.tiwcc-root .cal-evs{display:flex;flex-direction:column;gap:3px;min-width:0}
.tiwcc-root .cal-ev{display:flex;align-items:center;gap:5px;width:100%;min-width:0;height:22px;margin:0;padding:0 6px;border:1px solid var(--ax-line);border-radius:5px;background:#fff;box-shadow:none;font-family:inherit;font-size:11.5px;color:var(--ax-ink);text-align:left;cursor:pointer}
.tiwcc-root .cal-ev[draggable="true"]{cursor:grab}
.tiwcc-root .cal-ev span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .cal-ev .avatar,.tiwcc-root .cal-ev img{flex:none}
.tiwcc-root .cal-ev:hover{border-color:var(--ax-line2);background:var(--ax-bg)}
.tiwcc-root .cal-ev.k-due{box-shadow:inset 2px 0 0 var(--ax-ink2)}
.tiwcc-root .cal-ev.k-start,.tiwcc-root .cal-ev.k-mid{border-style:dashed;color:var(--ax-ink2)}
.tiwcc-root .cal-ev.k-mid{background:var(--ax-bg)}
.tiwcc-root .cal-ev.k-field{border-style:dashed;color:var(--ax-ink2)}
.tiwcc-root .cal-ev.k-field em{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-style:normal;font-weight:600;color:var(--ax-muted)}
.tiwcc-root .cal-ev.k-ms{border-color:var(--ax-ink);font-weight:600}
.tiwcc-root .cal-ev.k-ms .pmx-dia{width:8px;height:8px}
.tiwcc-root .cal-ev.k-ms.st-done{border-color:var(--ax-line2);color:var(--ax-muted)}
.tiwcc-root .cal-ev.k-ms.st-done .pmx-dia{background:var(--ax-faint)}
.tiwcc-root .cal-ev.k-ms.late{border-color:#c2410c;color:#c2410c}
.tiwcc-root .cal-ev.k-ms.late .pmx-dia{background:var(--ax-accent)}
.tiwcc-root .cal-ev.done span{color:var(--ax-muted);text-decoration:line-through;text-decoration-color:var(--ax-faint)}
.tiwcc-root .cal-ev.rej span{color:var(--ax-faint)}
.tiwcc-root .cal-ev.late{border-color:#c2410c;background:var(--ax-accent-soft);box-shadow:inset 2px 0 0 #c2410c}
.tiwcc-root .cal-ev.late span{color:#9a3412}
.tiwcc-root .cal-ev.blocked{border-style:dashed}
.tiwcc-root .cal-ev.dragging{opacity:.45}
.tiwcc-root .cal-more{align-self:flex-start;margin:0;padding:1px 6px;border:0;border-radius:4px;background:transparent;box-shadow:none;font-family:inherit;font-size:11px;font-weight:600;color:var(--ax-muted);cursor:pointer}
.tiwcc-root .cal-more:hover{background:var(--ax-soft);color:var(--ax-ink)}
.tiwcc-root .cal-none{margin:0;padding:12px 14px;border-top:1px solid var(--ax-line);font-size:12px;color:var(--ax-faint)}

/* ---------- milestone modal / lists ---------- */
.tiwcc-root .pmx-msview{display:flex;flex-direction:column;gap:14px}
.tiwcc-root .pmx-msview > .pmx-ms-st{align-self:flex-start}
.tiwcc-root .pmx-msdesc{margin:0;font-size:13px;line-height:1.6;color:var(--ax-ink2)}
.tiwcc-root .pmx-msbar{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;font-size:12px;color:var(--ax-muted)}
.tiwcc-root .pmx-mslist{display:flex;flex-direction:column;border-top:1px solid var(--ax-line);padding-top:6px}
.tiwcc-root .pmx-picks{display:flex;flex-direction:column;max-height:220px;overflow-y:auto;padding:4px;border:1px solid var(--ax-line);border-radius:10px}
.tiwcc-root .pmx-pick{display:flex;align-items:center;gap:9px;padding:7px 8px;border-radius:7px;font-size:12.5px;color:var(--ax-ink);cursor:pointer}
.tiwcc-root .pmx-pick:hover{background:var(--ax-bg)}
.tiwcc-root .pmx-pick input{margin:0;accent-color:var(--ax-ink)}
.tiwcc-root .pmx-pick span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .pmx-pick em{flex:none;font-size:11px;font-style:normal;color:var(--ax-faint)}

/* ---------- files ---------- */
.tiwcc-root .pmx-search{min-width:220px}
.tiwcc-root .pf-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.tiwcc-root .pf-upload{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.tiwcc-root .pf-upload select{max-width:220px}
.tiwcc-root .pf-list{display:flex;flex-direction:column;border:1px solid var(--ax-line);border-radius:12px;overflow:hidden}
.tiwcc-root .pf-row{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1fr) auto auto;align-items:center;gap:8px 14px;padding:10px 14px;border-bottom:1px solid var(--ax-soft);background:#fff}
.tiwcc-root .pf-row:last-child{border-bottom:0}
.tiwcc-root .pf-row:hover{background:var(--ax-bg)}
.tiwcc-root .pf-main{display:flex;align-items:center;gap:12px;min-width:0;color:inherit;text-decoration:none}
.tiwcc-root .pf-main:hover b{text-decoration:underline;text-underline-offset:2px}
.tiwcc-root .pmx-fthumb{display:inline-flex;align-items:center;justify-content:center;flex:none;overflow:hidden;border-radius:8px;border:1px solid var(--ax-line);background:var(--ax-soft);color:var(--ax-muted)}
.tiwcc-root .pmx-fthumb img{width:100%;height:100%;object-fit:cover;display:block}
.tiwcc-root .pf-name{display:flex;flex-direction:column;gap:3px;min-width:0}
.tiwcc-root .pf-name b{font-size:13px;font-weight:600;color:var(--ax-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .pf-sub{display:flex;align-items:center;gap:8px;min-width:0;font-size:11.5px;color:var(--ax-muted)}
.tiwcc-root .pf-sub > *{white-space:nowrap}
.tiwcc-root .pf-ver{display:inline-flex;align-items:center;height:17px;padding:0 5px;border-radius:4px;background:var(--ax-ink);color:#fff;font-size:10px;font-style:normal;font-weight:650;font-variant-numeric:tabular-nums}
.tiwcc-root .pf-note{overflow:hidden;text-overflow:ellipsis;color:var(--ax-faint)}
.tiwcc-root .pf-ctx{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;color:var(--ax-ink2)}
.tiwcc-root .pf-ctx .ax-link{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.tiwcc-root .pf-proj{color:var(--ax-faint)}
.tiwcc-root .pf-state{display:flex;align-items:center;gap:6px;justify-content:flex-end}
.tiwcc-root .pmx-vis{height:26px;padding:0 22px 0 8px;border:1px solid var(--ax-line);border-radius:7px;background-color:#fff;font-family:inherit;font-size:11.5px;color:var(--ax-ink2);cursor:pointer}
.tiwcc-root .pf-act{display:flex;align-items:center;gap:4px;justify-content:flex-end;flex-wrap:wrap}
.tiwcc-root .pf-up{position:relative;cursor:pointer}
.tiwcc-root .pf-del:hover{color:#b91c1c;border-color:#fecaca}
.tiwcc-root .pf-hist{grid-column:1/-1;display:flex;flex-direction:column;margin:2px 0 0 54px;border-left:1px solid var(--ax-line);padding-left:12px}
.tiwcc-root .pf-hrow{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;padding:5px 0;font-size:12px;color:var(--ax-muted)}
.tiwcc-root .pf-hrow a{color:var(--ax-ink);font-weight:550;text-decoration:none}
.tiwcc-root .pf-hrow a:hover{text-decoration:underline}
.tiwcc-root .pf-hrow .pf-ver{background:var(--ax-soft);color:var(--ax-ink2)}
.tiwcc-root .pf-hrow .ax-link{margin-left:auto}
/* compact list inside the item detail panel */
.tiwcc-root .pf-list.pf-compact{border-radius:10px}
.tiwcc-root .pf-compact .pf-row{grid-template-columns:minmax(0,1fr) auto;padding:8px 10px;gap:6px 8px}
.tiwcc-root .pf-compact .pf-ctx{display:none}
.tiwcc-root .pf-compact .pf-state{justify-content:flex-start}
.tiwcc-root .pf-compact .pf-act{grid-column:1/-1;justify-content:flex-start}
.tiwcc-root .pf-compact .pmx-fthumb{width:34px !important;height:34px !important}
.tiwcc-root .pf-compact .pf-hist{margin-left:0}

/* ---------- activity ---------- */
.tiwcc-root .pa-list{display:flex;flex-direction:column;gap:18px}
.tiwcc-root .pa-day h4{position:sticky;top:0;z-index:1;margin:0 0 4px;padding:6px 0;background:#fff;font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--ax-muted);border-bottom:1px solid var(--ax-line)}
.tiwcc-root .pa-row{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--ax-soft)}
.tiwcc-root .pa-row:last-child{border-bottom:0}
.tiwcc-root .pa-av{flex:none;display:inline-flex}
.tiwcc-root .pa-body{min-width:0;flex:1}
.tiwcc-root .pa-body p{margin:0;font-size:13px;line-height:1.5;color:var(--ax-ink2);overflow-wrap:anywhere}
.tiwcc-root .pa-body p b{font-weight:600;color:var(--ax-ink)}
.tiwcc-root .pa-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin-top:3px;font-size:11.5px;color:var(--ax-faint)}
.tiwcc-root .pa-meta .ax-link{font-size:11.5px}
.tiwcc-root .pa-more{display:flex;justify-content:center;padding:18px 0 4px}

/* ---------- project settings ---------- */
.tiwcc-root .ps{display:grid;grid-template-columns:200px minmax(0,1fr);gap:28px;align-items:start}
.tiwcc-root .ps.single{grid-template-columns:minmax(0,1fr)}
.tiwcc-root .ps-nav{position:sticky;top:0;display:flex;flex-direction:column;gap:2px}
.tiwcc-root .ps-nav button{display:flex;align-items:center;height:34px;margin:0;padding:0 12px;border:0;border-radius:8px;background:transparent;box-shadow:none;font-family:inherit;font-size:13px;font-weight:550;color:var(--ax-muted);text-align:left;cursor:pointer;white-space:nowrap}
.tiwcc-root .ps-nav button:hover{background:var(--ax-bg);color:var(--ax-ink)}
.tiwcc-root .ps-nav button.on{background:var(--ax-soft);color:var(--ax-ink)}
.tiwcc-root .ps-body{display:flex;flex-direction:column;gap:18px;min-width:0}
.tiwcc-root .ps-card{border:1px solid var(--ax-line);border-radius:12px;background:#fff;overflow:hidden}
.tiwcc-root .ps-card-h{padding:16px 18px 0}
.tiwcc-root .ps-card-h h3{margin:0;font-size:15px;font-weight:600;letter-spacing:-.01em;color:var(--ax-ink)}
.tiwcc-root .ps-card-h p{margin:4px 0 0;font-size:12.5px;line-height:1.5;color:var(--ax-muted)}
.tiwcc-root .ps-card-b{padding:14px 18px 16px}
.tiwcc-root .ps-card-f{display:flex;justify-content:flex-end;gap:8px;padding:10px 18px;border-top:1px solid var(--ax-line);background:var(--ax-bg)}
.tiwcc-root .ps-kv{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;padding:8px 0;border-bottom:1px solid var(--ax-soft);font-size:13px}
.tiwcc-root .ps-kv:last-child{border-bottom:0}
.tiwcc-root .ps-kv span{color:var(--ax-muted)}
.tiwcc-root .ps-kv b{font-weight:500;color:var(--ax-ink);overflow-wrap:anywhere}
.tiwcc-root .ps-locked{margin:10px 0 0;font-size:12px;color:var(--ax-faint)}
.tiwcc-root .ps-note{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;margin-top:12px;padding:10px 12px;border-radius:9px;background:var(--ax-bg);font-size:12px;line-height:1.5;color:var(--ax-ink2)}
.tiwcc-root .ps-note p{margin:0;flex:1 1 260px}
.tiwcc-root .ps-h4{margin:14px 0 6px;font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--ax-muted)}
.tiwcc-root .ps-h4:first-child{margin-top:0}
.tiwcc-root .ps-switch{display:inline-flex;align-items:center;gap:10px;margin-top:4px;font-size:13px;font-weight:550;color:var(--ax-ink);cursor:pointer}
.tiwcc-root .ps-switch input,.tiwcc-root .ps-toggle input{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:34px;height:20px;margin:0;border-radius:99px;background:var(--ax-line2);cursor:pointer;transition:background .15s}
.tiwcc-root .ps-switch input::after,.tiwcc-root .ps-toggle input::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(28,25,23,.2);transition:transform .15s}
.tiwcc-root .ps-switch input:checked,.tiwcc-root .ps-toggle input:checked{background:var(--ax-ink)}
.tiwcc-root .ps-switch input:checked::after,.tiwcc-root .ps-toggle input:checked::after{transform:translateX(14px)}
.tiwcc-root .ps-switch input:disabled,.tiwcc-root .ps-toggle input:disabled{opacity:.5;cursor:not-allowed}
.tiwcc-root .ps-switch input:focus-visible,.tiwcc-root .ps-toggle input:focus-visible{box-shadow:0 0 0 3px rgba(28,25,23,.15)}
.tiwcc-root .ps-toggles{display:flex;flex-direction:column}
.tiwcc-root .ps-toggle{display:flex;align-items:flex-start;gap:12px;padding:10px 0;border-bottom:1px solid var(--ax-soft);cursor:pointer}
.tiwcc-root .ps-toggle:last-child{border-bottom:0}
.tiwcc-root .ps-toggle > span{display:flex;flex-direction:column;gap:2px;min-width:0}
.tiwcc-root .ps-toggle b{font-size:13px;font-weight:600;color:var(--ax-ink)}
.tiwcc-root .ps-toggle small{font-size:12px;line-height:1.45;color:var(--ax-muted)}
.tiwcc-root .ps-mslist{display:flex;flex-direction:column;margin-top:10px}
.tiwcc-root .ps-msrow{display:grid;grid-template-columns:12px minmax(0,1fr) auto auto;align-items:center;gap:10px;width:100%;margin:0;padding:8px 6px;border:0;border-bottom:1px solid var(--ax-soft);border-radius:0;background:transparent;box-shadow:none;font-family:inherit;font-size:13px;color:var(--ax-ink);text-align:left;cursor:pointer}
.tiwcc-root .ps-msrow:hover{background:var(--ax-bg)}
.tiwcc-root .ps-msrow span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .ps-msrow em{font-size:12px;font-style:normal;color:var(--ax-muted);white-space:nowrap}
.tiwcc-root .ps-mem{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--ax-soft)}
.tiwcc-root .ps-mem:last-child{border-bottom:0}
.tiwcc-root .ps-mem-n{display:flex;flex-direction:column;flex:1;min-width:0}
.tiwcc-root .ps-mem-n b{font-size:13px;font-weight:600;color:var(--ax-ink)}
.tiwcc-root .ps-mem-n span{font-size:12px;color:var(--ax-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .ps-stages{display:flex;flex-direction:column;margin-top:14px}
.tiwcc-root .ps-stage{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;padding:8px 0;border-bottom:1px solid var(--ax-soft);font-size:13px}
.tiwcc-root .ps-stage:last-child{border-bottom:0}
.tiwcc-root .ps-stage b{font-weight:550;color:var(--ax-ink)}
.tiwcc-root .ps-stage em{margin-left:auto;font-size:12px;font-style:normal;color:var(--ax-muted)}
.tiwcc-root .ps-stage .ps-why{flex-basis:100%;margin:0 0 0 16px;font-size:12px;color:var(--ax-muted);line-height:1.45}
.tiwcc-root .ps-type{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--ax-soft);font-size:13px}
.tiwcc-root .ps-type b{font-weight:550;color:var(--ax-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .ps-type span,.tiwcc-root .ps-type em{font-size:12px;font-style:normal;color:var(--ax-muted);white-space:nowrap}
.tiwcc-root .ps-builtins{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.tiwcc-root .ps-prefs{width:100%;border-collapse:collapse;font-size:13px}
.tiwcc-root .ps-prefs th,.tiwcc-root .ps-prefs td{padding:10px 8px;border-bottom:1px solid var(--ax-soft);text-align:center;vertical-align:middle}
.tiwcc-root .ps-prefs thead th{padding-top:0;font-size:10.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ax-muted)}
.tiwcc-root .ps-prefs tbody th{text-align:left;padding-left:0}
.tiwcc-root .ps-prefs tbody th b{display:block;font-weight:600;color:var(--ax-ink)}
.tiwcc-root .ps-prefs tbody th small{display:block;margin-top:2px;font-size:12px;font-weight:400;color:var(--ax-muted)}
.tiwcc-root .ps-prefs input{width:16px;height:16px;margin:0;accent-color:var(--ax-ink);cursor:pointer}
.tiwcc-root .ps-prefs tr:last-child th,.tiwcc-root .ps-prefs tr:last-child td{border-bottom:0}
.tiwcc-root .ps-body .ax-hint{margin:10px 0 0}

/* ---------- overview additions ---------- */
.tiwcc-root .pov-mode{display:flex;justify-content:flex-end;margin:-8px 0 14px}
.tiwcc-root .pov-h-act{margin-left:auto;font-size:11.5px;letter-spacing:0;text-transform:none}
.tiwcc-root .pov-banner{margin:0 0 4px;padding:16px 18px;border:1px solid var(--ax-accent);border-radius:12px;background:var(--ax-accent-soft)}
.tiwcc-root .pov-top + .pov-banner{margin-top:20px}
.tiwcc-root .pov-banner h4{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#9a3412}
.tiwcc-root .pov-banner .pov-row:hover{background:rgba(255,255,255,.7)}
.tiwcc-root .pov-banner .pov-row + .pov-row{border-top-color:rgba(234,88,12,.15)}
.tiwcc-root .pov-ms{display:grid;grid-template-columns:12px minmax(0,1fr) 90px auto;align-items:center;gap:10px;width:calc(100% + 12px);margin:0 -6px;padding:9px 6px;border:0;border-radius:8px;background:transparent;box-shadow:none;font-family:inherit;text-align:left;color:var(--ax-ink);cursor:pointer}
.tiwcc-root .pov-ms + .pov-ms{border-top:1px solid var(--ax-soft)}
.tiwcc-root .pov-ms:hover{background:var(--ax-bg)}
.tiwcc-root .pov-ms.late .pmx-dia{background:var(--ax-accent)}
.tiwcc-root .pov-ms.closed .pmx-dia{background:var(--ax-faint)}
.tiwcc-root .pov-ms.closed .pov-ms-t b{color:var(--ax-muted)}
.tiwcc-root .pov-ms-t{display:flex;flex-direction:column;min-width:0}
.tiwcc-root .pov-ms-t b{font-size:13px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .pov-ms-t small{font-size:11px;color:var(--ax-faint)}
.tiwcc-root .pov-ms-bar .pov-bar{display:block;height:4px}
.tiwcc-root .pov-bar.over i{background:var(--ax-accent)}

/* ---------- reports ---------- */
.tiwcc-root .pr-table-wrap{overflow-x:auto;margin:0 -2px}
.tiwcc-root .pr-table{width:100%;border-collapse:collapse;font-size:12.5px;font-variant-numeric:tabular-nums}
.tiwcc-root .pr-table th{padding:0 10px 8px;border-bottom:1px solid var(--ax-line);font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ax-muted);text-align:right;white-space:nowrap}
.tiwcc-root .pr-table th:first-child{text-align:left;padding-left:0}
.tiwcc-root .pr-table td{padding:8px 10px;border-bottom:1px solid var(--ax-soft);text-align:right;color:var(--ax-ink);white-space:nowrap}
.tiwcc-root .pr-table td:first-child{text-align:left;padding-left:0;white-space:normal}
.tiwcc-root .pr-table tr:last-child td{border-bottom:0}
.tiwcc-root .pr-table td.z{color:var(--ax-line2)}
.tiwcc-root .pr-table td.late{color:#c2410c;font-weight:600}
.tiwcc-root .pr-table .ax-link{text-align:left}
.tiwcc-root .pr-who{display:flex;align-items:center;gap:8px;min-width:150px}
.tiwcc-root .pr-who span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .pr-bar{display:grid;grid-template-columns:minmax(60px,1fr) 28px;align-items:center;gap:8px;min-width:110px}
.tiwcc-root .pr-bar .pov-bar{display:block}
.tiwcc-root .pr-weeks td.pr-wk{min-width:44px;text-align:center;font-weight:600}
.tiwcc-root .pr-weeks th{text-align:center}
.tiwcc-root .pr-weeks th:first-child{text-align:left}
.tiwcc-root .pr-wk.l0{color:var(--ax-line2)}
.tiwcc-root .pr-wk.l1{background:var(--ax-soft)}
.tiwcc-root .pr-wk.l2{background:var(--ax-line)}
.tiwcc-root .pr-wk.l3{background:var(--ax-line2)}
.tiwcc-root .pr-wk.l4{background:var(--ax-ink2);color:#fff}
.tiwcc-root .pr-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.tiwcc-root .pr-total{display:flex;align-items:baseline;gap:10px;margin-bottom:14px}
.tiwcc-root .pr-total b{font-size:30px;font-weight:600;letter-spacing:-.03em;line-height:1;color:var(--ax-ink)}
.tiwcc-root .pr-total span{font-size:12px;color:var(--ax-muted)}
.tiwcc-root .pr-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.tiwcc-root .pr-grid3 h5{margin:0 0 8px;font-size:11px;font-weight:600;color:var(--ax-ink2)}
.tiwcc-root .pr-row{grid-template-columns:minmax(0,1fr) 70px 56px}
.tiwcc-root .pr-row > span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- kanban card badges ---------- */
.tiwcc-root .pmb{display:inline-flex;align-items:center;gap:4px;max-width:140px;height:18px;padding:0 6px;border:1px solid var(--ax-line);border-radius:5px;background:#fff;font-size:10.5px;font-weight:600;color:var(--ax-ink2);white-space:nowrap;vertical-align:middle}
.tiwcc-root .pmb > span{overflow:hidden;text-overflow:ellipsis}
.tiwcc-root .pmb svg{flex:none}
.tiwcc-root .pmb-ms{border-color:var(--ax-line2)}
.tiwcc-root .pmb-ap{max-width:none;border-color:var(--ax-accent);background:var(--ax-accent-soft);color:#c2410c}
.tiwcc-root .pmb-block{border-style:dashed;border-color:var(--ax-ink2);color:var(--ax-ink)}
.tiwcc-root .pmb-int{color:var(--ax-muted);letter-spacing:.04em;text-transform:uppercase;font-size:9.5px}
.tiwcc-root .pmb-run{border-color:var(--ax-ink);background:var(--ax-ink);color:#fff;font-variant-numeric:tabular-nums}

/* ---------- item detail: planning, dependencies, approvals, time ---------- */
.tiwcc-root .pmx-sec .gl{display:flex;align-items:center;gap:8px}
.tiwcc-root .pmx-kv{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:10px;min-height:34px;font-size:12.5px}
.tiwcc-root .pmx-kv > span:first-child{color:var(--ax-muted)}
.tiwcc-root .pmx-kv-v{display:flex;align-items:center;gap:8px;min-width:0}
.tiwcc-root .pmx-kv-v em{font-size:12px;font-style:normal;color:var(--ax-muted)}
.tiwcc-root .pmx-kv-v select,.tiwcc-root .pmx-kv-v input:not([type="checkbox"]){flex:1;min-width:0}
.tiwcc-root .pmx-kv-chk{cursor:pointer}
.tiwcc-root .pmx-kv-chk .pmx-kv-v{font-size:12.5px;color:var(--ax-ink2)}
.tiwcc-root .pmx-kv-chk input{margin:0;accent-color:var(--ax-ink)}
.tiwcc-root .pmx-num{max-width:90px}
.tiwcc-root .pmx-sub-h{margin:10px 0 4px;font-size:10.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ax-muted)}
.tiwcc-root .pmx-dep{display:flex;align-items:center;gap:8px;min-height:30px;padding:3px 0;border-bottom:1px solid var(--ax-soft);font-size:12.5px}
.tiwcc-root .pmx-dep-t{flex:1;min-width:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none;font-family:inherit;font-size:12.5px;color:var(--ax-ink);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.tiwcc-root .pmx-dep-t:hover{text-decoration:underline;text-underline-offset:2px}
.tiwcc-root .pmx-dep-s{flex:none;font-size:11px;color:#c2410c;white-space:nowrap}
.tiwcc-root .pmx-dep-s.ok{color:var(--ax-muted)}
.tiwcc-root .pmx-depadd{width:100%;margin-top:6px}
.tiwcc-root .pmx-ap-list{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.tiwcc-root .pmx-ap-row{padding:10px 12px;border:1px solid var(--ax-line);border-radius:9px;background:#fff}
.tiwcc-root .pmx-ap-row.st-pending{border-color:var(--ax-accent)}
.tiwcc-root .pmx-ap-row.st-cancelled{opacity:.7}
.tiwcc-root .pmx-ap-h{display:flex;align-items:center;gap:8px;min-width:0;font-size:12.5px;font-weight:550;color:var(--ax-ink)}
.tiwcc-root .pmx-ap-h > span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .pmx-ap-m{margin:6px 0 0;font-size:11.5px;color:var(--ax-muted)}
.tiwcc-root .pmx-ap-q{margin:6px 0 0;padding:6px 10px;border-left:2px solid var(--ax-line2);font-size:12.5px;line-height:1.5;color:var(--ax-ink2);white-space:pre-line;overflow-wrap:anywhere}
.tiwcc-root .pmx-ap-q.fb{border-left-color:var(--ax-ink)}
.tiwcc-root .pmx-apform{display:flex;flex-direction:column;gap:10px;margin:6px 0;padding:12px;border:1px solid var(--ax-line);border-radius:10px;background:var(--ax-bg)}
.tiwcc-root .pmx-apform .ax-field > span{display:block}
.tiwcc-root .pmx-apform .pmx-row{justify-content:flex-end}
.tiwcc-root .pmx-apbar{display:flex;flex-direction:column;gap:10px}
.tiwcc-root .pmx-apbar-h{display:flex;flex-direction:column;gap:2px}
.tiwcc-root .pmx-apbar-h b{font-size:13px;font-weight:600;color:#c2410c}
.tiwcc-root .pmx-apbar-h span{font-size:11.5px;color:var(--ax-muted)}
.tiwcc-root .pmx-apfile{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;max-width:100%;padding:5px 9px;border:1px solid var(--ax-line);border-radius:7px;background:#fff;font-size:12px;font-weight:550;color:var(--ax-ink);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .pmx-apfile:hover{border-color:var(--ax-line2)}
.tiwcc-root .pmx-apbar .pmx-row .btn{margin:0}
.tiwcc-root .pmx-apbar .ax-link{align-self:flex-start;font-size:12px}
.tiwcc-root .pmx-time-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.tiwcc-root .pmx-time-top > div{display:flex;align-items:baseline;gap:8px}
.tiwcc-root .pmx-time-top b{font-size:18px;font-weight:600;letter-spacing:-.02em;color:var(--ax-ink);font-variant-numeric:tabular-nums}
.tiwcc-root .pmx-time-top span{font-size:11.5px;color:var(--ax-muted)}
.tiwcc-root .pmx-timer{display:inline-flex;align-items:center;gap:6px}
.tiwcc-root .pmx-timer.on{background:var(--ax-ink);border-color:var(--ax-ink);color:#fff}
.tiwcc-root .pmx-timer.on span{font-variant-numeric:tabular-nums}
.tiwcc-root .pmx-sec .pov-bar{margin:4px 0 8px}
.tiwcc-root .pmx-timeadd{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;margin-top:8px}
.tiwcc-root .pmx-timeadd #pmxTimeNote{grid-column:1/-1}
.tiwcc-root .pmx-timeadd .ax-btn{grid-column:1/-1;justify-content:center}
.tiwcc-root .pmx-tentries{display:flex;flex-direction:column;margin-top:8px}
.tiwcc-root .pmx-te{display:grid;grid-template-columns:52px minmax(0,1fr) auto 22px;align-items:center;gap:4px 8px;padding:6px 0;border-bottom:1px solid var(--ax-soft);font-size:12px;color:var(--ax-muted)}
.tiwcc-root .pmx-te b{font-weight:600;color:var(--ax-ink);font-variant-numeric:tabular-nums}
.tiwcc-root .pmx-te > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .pmx-te em{grid-column:2/4;font-style:normal;color:var(--ax-ink2);overflow-wrap:anywhere}
.tiwcc-root .pmx-te em:empty{display:none}
.tiwcc-root .pmx-te .pmx-x{grid-row:1;grid-column:4}
.tiwcc-root .pmx-chatlink{display:flex;flex-direction:column;align-items:flex-start;gap:6px}

/* ---------- threaded comments + composer ---------- */
.tiwcc-root .pmx-thread{display:flex;flex-direction:column}
.tiwcc-root .pmx-tgroup + .pmx-tgroup{border-top:1px solid var(--ax-soft)}
.tiwcc-root .pmx-replies{margin:0 0 6px 38px;padding-left:10px;border-left:1px solid var(--ax-line)}
.tiwcc-root .cmt.internal .body{background:var(--ax-bg);border-radius:8px;padding:6px 8px;box-shadow:inset 2px 0 0 var(--ax-line2)}
.tiwcc-root .pmx-cfile{display:inline-flex;align-items:center;gap:4px;margin:2px 0;padding:1px 6px;border:1px solid var(--ax-line);border-radius:5px;font-size:11px;color:var(--ax-ink2)}
.tiwcc-root .pmx-mention{font-weight:600;color:var(--ax-ink);background:var(--ax-soft);border-radius:4px;padding:0 3px}
.tiwcc-root .pmx-replying{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;padding:5px 9px;border-radius:7px;background:var(--ax-soft);font-size:11.5px;color:var(--ax-ink2)}
.tiwcc-root .pmx-cvis{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-bottom:6px}
.tiwcc-root .pmx-cvis .ax-hint{margin:0;font-size:11px}
.tiwcc-root .pmx-cfile-sel{width:100%;margin-bottom:6px}
.tiwcc-root .pmx-mhint{display:block;margin-top:4px;font-size:11px;color:var(--ax-faint)}

/* ---------- responsive ---------- */
@media (max-width:1100px){
	.tiwcc-root .pmx-inner{padding:22px 22px 32px}
	.tiwcc-root .ps{grid-template-columns:minmax(0,1fr);gap:16px}
	.tiwcc-root .ps-nav{position:static;flex-direction:row;overflow-x:auto;gap:4px;padding-bottom:2px;scrollbar-width:none}
	.tiwcc-root .ps-nav::-webkit-scrollbar{display:none}
	.tiwcc-root .ps-nav button{flex:none;border:1px solid var(--ax-line);height:32px}
	.tiwcc-root .ps-nav button.on{border-color:var(--ax-ink2)}
	.tiwcc-root .pf-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
	.tiwcc-root .pf-ctx{grid-column:1;grid-row:2;padding-left:54px}
	.tiwcc-root .pf-state{grid-column:2;grid-row:1}
	.tiwcc-root .pf-act{grid-column:2;grid-row:2}
	.tiwcc-root .pr-grid3{grid-template-columns:1fr;gap:18px}
	.tiwcc-root .cal-day{min-height:96px}
	.tiwcc-root .cal-legend-hint{margin-left:0;flex-basis:100%}
}
@media (max-width:768px){
	.tiwcc-root .pnav{height:40px;padding:0 2px}
	.tiwcc-root .pnav button{padding:0 10px;font-size:12.5px}
	.tiwcc-root .pmx-inner{padding:18px 14px 26px}
	.tiwcc-root .pmx-head h2{font-size:20px}
	.tiwcc-root .pmx-tools{width:100%}
	.tiwcc-root .pmx-search{min-width:0;flex:1}
	.tiwcc-root .tl-scroll{max-height:calc(100vh - 250px)}
	.tiwcc-root .tl-bar.narrow b{max-width:140px}
	/* calendar becomes an agenda list: only days with entries */
	.tiwcc-root .cal-head{display:none}
	.tiwcc-root .cal-grid{grid-template-columns:1fr}
	.tiwcc-root .cal-day{min-height:0;border-right:0;padding:8px 12px 10px}
	.tiwcc-root .cal-day:not(.has):not(.today){display:none}
	.tiwcc-root .cal-day.out{display:none}
	.tiwcc-root .cal-day.off{background:#fff}
	.tiwcc-root .cal-wd{display:inline}
	.tiwcc-root .cal-ev{height:30px;font-size:12.5px}
	.tiwcc-root .cal-legend .lg-field,.tiwcc-root .cal-legend-hint{display:none}
	.tiwcc-root .pf-row{grid-template-columns:minmax(0,1fr);padding:10px 12px}
	.tiwcc-root .pf-ctx,.tiwcc-root .pf-state,.tiwcc-root .pf-act{grid-column:1;grid-row:auto;padding-left:54px;justify-content:flex-start}
	.tiwcc-root .pf-hist{margin-left:0}
	.tiwcc-root .pf-upload{width:100%}
	.tiwcc-root .pf-upload select{flex:1;min-width:0;max-width:none}
	.tiwcc-root .ps-kv{grid-template-columns:1fr;gap:2px}
	.tiwcc-root .ps-type{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px}
	.tiwcc-root .ps-type span{grid-column:1}
	.tiwcc-root .ps-type em{grid-column:1;grid-row:3}
	.tiwcc-root .ps-type .ax-link{grid-column:2;grid-row:1}
	.tiwcc-root .ps-msrow{grid-template-columns:12px minmax(0,1fr) auto}
	.tiwcc-root .ps-msrow em{grid-column:2;grid-row:2}
	.tiwcc-root .pov-ms{grid-template-columns:12px minmax(0,1fr) auto}
	.tiwcc-root .pov-ms-bar{display:none}
	.tiwcc-root .pov-mode{justify-content:flex-start;margin-top:0}
	.tiwcc-root .pmx-replies{margin-left:14px}
}
@media (max-width:420px){
	.tiwcc-root .pmx-seg button{padding:0 8px;font-size:11.5px}
	.tiwcc-root .pf-ctx,.tiwcc-root .pf-state,.tiwcc-root .pf-act{padding-left:0}
}
/* r28: card footer wraps when PM badges are present (never clips stage/date) */
.tiwcc-root .mcard.mc2 .mc-foot{flex-wrap:wrap;row-gap:6px}
.tiwcc-root .mcard.mc2 .mc-foot-r{flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end;row-gap:4px;max-width:100%;min-width:0}
.tiwcc-root .mcard.mc2 .mc-foot .stage-pill{flex:none}
.tiwcc-root .mcard.mc2 .mc-foot-r .meta-ic{white-space:nowrap}
/* r28: segmented filters scroll horizontally instead of clipping on phones */
.tiwcc-root .pf-bar .pmx-seg{max-width:100%;overflow-x:auto;scrollbar-width:none}
.tiwcc-root .pf-bar .pmx-seg::-webkit-scrollbar{display:none}
.tiwcc-root .pf-bar .pmx-seg button{flex:none}

/* r30: dashboard card footer — real members + live "last activity" */
.tiwcc-root .proj-foot .av-stack .av-more{background:#f5f5f4;color:var(--muted);font-weight:700}
.tiwcc-root .proj-time{font-size:11.5px;color:var(--muted);font-weight:600;white-space:nowrap}
.tiwcc-root .proj-nomember{font-size:11.5px;color:var(--faint)}
.tiwcc-root .feed-board{background:none;border:0;padding:0;font:inherit;color:var(--ink,#1c1917);font-weight:600;cursor:pointer;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:2px}
.tiwcc-root .feed-board:hover{text-decoration-color:currentColor}

/* r34: unsaved edit that collided with someone else's change (item detail). */
.tiwcc-root .ax-conflict { border: 1px solid var(--ax-accent, #ea580c); background: #fff7ed; border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; font-size: 13px; line-height: 1.45; }
.tiwcc-root .ax-conflict b { display: block; margin-bottom: 8px; font-weight: 600; }
.tiwcc-root .ax-conflict-row { display: grid; grid-template-columns: minmax(80px, 30%) 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(0, 0, 0, .06); }
.tiwcc-root .ax-conflict-row .k { color: #78716c; }
.tiwcc-root .ax-conflict-row .v { white-space: pre-wrap; word-break: break-word; }
.tiwcc-root .ax-conflict-act { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }

/* ===== r42: attention kinds, version chips, upcoming strip ===== */
.att-blocked .att-ic{background:rgba(239,68,68,.1);color:#b91c1c}
.att-feedback .att-ic{background:rgba(59,130,246,.12);color:#1d4ed8}
.att-ver{flex:none;display:inline-flex;align-items:center;margin-left:6px;padding:1px 6px;border-radius:999px;background:rgba(24,24,27,.07);border:1px solid var(--line-strong);font-size:10px;font-weight:800;color:var(--ink-2);vertical-align:1px}
.att-row.up-row .att-ic{background:rgba(24,24,27,.05);color:var(--ink-2)}
.up-due{font-weight:700}
.up-due.late,.att-row.up-row.late .att-ic{color:#b91c1c}
.att-row.up-row.late .att-ic{background:rgba(239,68,68,.1)}
#dashUpcoming{margin-top:14px}

/* ===== r42: chat media (video/audio play inline) ===== */
.msg-media{margin-top:5px;max-width:300px}
.msg-media video{width:100%;max-height:260px;border-radius:10px;background:#000;display:block;border:1px solid rgba(24,24,27,.12)}
.msg-media audio{width:260px;max-width:100%;display:block;height:34px}
.msg-mcap{display:flex;align-items:center;gap:5px;margin-top:3px;font-size:10.5px;color:var(--muted);min-width:0}
.msg-mcap span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.msg-mcap small{flex:none;opacity:.75}
.msg-dl{flex:none;display:inline-flex;color:inherit;opacity:.7;margin-left:auto}
.msg-dl:hover{opacity:1}
.msg.me .msg-mcap{color:rgba(255,255,255,.72)}

/* ===== r42: per-message actions (hover ⋯) ===== */
.msg .msg-act{flex:none;align-self:flex-start;margin-top:6px;width:26px;height:26px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer;opacity:0;transition:opacity .15s var(--ease),background .15s var(--ease)}
.msg:hover .msg-act,.msg .msg-act:focus-visible{opacity:1}
.msg .msg-act:hover{background:rgba(24,24,27,.06);border-color:var(--line);color:var(--ink)}
@media (hover:none){.msg .msg-act{opacity:.55}}

/* ===== r42: reply quote inside bubbles ===== */
.msg-quote{display:flex;flex-direction:column;gap:1px;width:100%;text-align:left;margin:2px 0 5px;padding:5px 9px;border:0;border-left:3px solid rgba(24,24,27,.28);border-radius:6px;background:rgba(24,24,27,.05);cursor:pointer;font:inherit;color:inherit}
.msg-quote b{font-size:11px;font-weight:800}
.msg-quote span{font-size:11.5px;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;max-width:240px}
.msg-quote:hover{background:rgba(24,24,27,.09)}
.msg.me .msg-quote{background:rgba(255,255,255,.14);border-left-color:rgba(255,255,255,.55)}
.msg.me .msg-quote:hover{background:rgba(255,255,255,.2)}

/* deep-link flash */
.msg.flash .bub{animation:tiwcc-msg-flash 2.2s var(--ease)}
@keyframes tiwcc-msg-flash{0%,30%{box-shadow:0 0 0 3px rgba(249,115,22,.55)}100%{box-shadow:0 1px 2px rgba(0,0,0,.03)}}

/* ===== r42: staged reply / work-reference chips ===== */
.cv-stg-reply .cv-thumb-file{color:#c2410c;background:rgba(249,115,22,.08);border-color:rgba(249,115,22,.3)}
.cv-stg-ref .cv-thumb-file{color:#1d4ed8;background:rgba(59,130,246,.08);border-color:rgba(59,130,246,.3)}
.cv-thumb-file.k-video{color:#7c3aed;background:rgba(139,92,246,.08);border-color:rgba(139,92,246,.3)}
.cv-thumb-file.k-audio{color:#0f766e;background:rgba(20,184,166,.08);border-color:rgba(20,184,166,.3)}
/* r60: staged composer tray, tidied. The reply / item reference is a slim full-width strip with an
   accent rule (no big icon tile); files are compact chips (32px thumb). Scoped under .tiwcc-root
   .cv-staged so theme span/img/button rules cannot inflate them. */
.tiwcc-root .cv-staged{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 14px 6px}
.tiwcc-root .cv-staged .cv-stg{display:inline-flex;align-items:center;gap:8px;min-height:0;height:auto;margin:0;padding:4px 4px 4px 4px;max-width:260px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:none;line-height:1.25}
.tiwcc-root .cv-staged .cv-thumb{width:32px;height:32px;border-radius:7px;margin:0;padding:0;border:1px solid var(--line)}
.tiwcc-root .cv-staged .cv-stgmeta{display:flex;flex-direction:column;gap:0;min-width:0;padding-right:2px}
.tiwcc-root .cv-staged .cv-stgmeta b{max-width:170px;font-size:12px;font-weight:600;line-height:1.3}
.tiwcc-root .cv-staged .cv-stgsub{max-width:170px;font-size:11px;line-height:1.3}
.tiwcc-root .cv-staged .cv-stg button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px;min-height:0;margin:0;padding:0;border:0;border-radius:6px;background:transparent;font-size:16px;line-height:1;color:var(--muted);box-shadow:none}
.tiwcc-root .cv-staged .cv-stg button:hover{background:rgba(24,24,27,.06);color:var(--ink)}
.tiwcc-root .cv-staged .cv-stgspin{margin:0 4px}
.tiwcc-root .cv-staged .cv-stg-reply,.tiwcc-root .cv-staged .cv-stg-ref{flex:1 1 100%;min-width:0;width:100%;max-width:100%;box-sizing:border-box;padding:5px 4px 5px 10px;border:0;border-left:2px solid #ea580c;border-radius:0 8px 8px 0;background:var(--bg-soft,#f5f5f4)}
.tiwcc-root .cv-staged .cv-stg-ref{border-left-color:#3b82f6}
.tiwcc-root .cv-staged .cv-stg-reply .cv-thumb,.tiwcc-root .cv-staged .cv-stg-ref .cv-thumb{display:none}
.tiwcc-root .cv-staged .cv-stg-reply .cv-stgmeta,.tiwcc-root .cv-staged .cv-stg-ref .cv-stgmeta{flex:1;flex-direction:row;align-items:baseline;gap:8px}
.tiwcc-root .cv-staged .cv-stg-reply .cv-stgmeta b,.tiwcc-root .cv-staged .cv-stg-ref .cv-stgmeta b{flex:none;max-width:60%}
.tiwcc-root .cv-staged .cv-stg-reply .cv-stgsub,.tiwcc-root .cv-staged .cv-stg-ref .cv-stgsub{flex:1;min-width:0;max-width:none;font-size:12px}
.tiwcc-root .cv-staged .cv-stg.err{border-color:rgba(239,68,68,.5);background:rgba(239,68,68,.04)}
@media (max-width:640px){.tiwcc-root .cv-staged{padding:8px 10px 6px}.tiwcc-root .cv-staged .cv-stg:not(.cv-stg-reply):not(.cv-stg-ref){flex:1 1 calc(50% - 3px);min-width:0;max-width:calc(50% - 3px);box-sizing:border-box}.tiwcc-root .cv-staged .cv-stg:not(.cv-stg-reply):not(.cv-stg-ref) .cv-stgmeta{flex:1}.tiwcc-root .cv-staged .cv-stgmeta b,.tiwcc-root .cv-staged .cv-stgsub{max-width:100%}}

/* ===== r42: delivered final-versions card ===== */
.rv-final{margin-top:8px;padding:8px 10px;border:1px solid var(--line);border-radius:var(--r-md);background:rgba(34,197,94,.05)}
.rv-final h5{display:flex;align-items:center;gap:6px;font-size:10.5px;font-weight:800;color:#15803d;margin-bottom:5px;text-transform:uppercase;letter-spacing:.04em}
.rv-finalrow{display:flex;align-items:center;gap:6px;font-size:12px;padding:2px 0;min-width:0;color:var(--ink)}
.rv-finalrow svg{flex:none;color:var(--ink-2)}
.rv-finalrow b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.rv-finalrow i{margin-left:auto;flex:none;font-style:normal;font-size:10.5px;font-weight:800;color:var(--ink-2);background:rgba(24,24,27,.06);border:1px solid var(--line-strong);border-radius:999px;padding:0 6px}

/* ===== r43 fixes ===== */
/* Send button: .btn-icon (muted) used to out-rank .btn-primary (white). */
.tiwcc-root .btn-primary.btn-icon{color:#fff}
.tiwcc-root .btn-primary.btn-icon:hover{color:#fff}
/* Detail pane: breathing room between the tab bar and the preview. */
.detail-body{padding-top:12px}
/* Dashboard: attention + upcoming side by side on wide screens, capped lists. */
.dash-att-wrap{display:grid;gap:14px;align-items:start}
@media (min-width:1080px){
	.dash-att-wrap{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
}
#dashUpcoming{margin-top:0}
.dash-att-wrap .att-row{padding:7px 10px}
.dash-att-wrap .att-ic{width:25px;height:25px;border-radius:8px}
.dash-att-wrap .att-main b{font-size:12.5px}
.dash-att-wrap .att-sub{font-size:11px}
.dash-att-wrap .att-act{font-size:11px}
.att-more{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:8px;padding:7px 10px;border:1px dashed var(--line-strong);border-radius:var(--r-md);background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:all .16s var(--ease)}
.att-more:hover{color:var(--ink);border-color:var(--ink);background:rgba(24,24,27,.03)}
/* r43: title + version chip share one row inside the column-flex main. */
.att-trow{display:flex;align-items:center;gap:6px;min-width:0;width:100%}
.att-trow b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.att-ver{flex:none;margin-left:0}
/* r44: work references inside chat bubbles read as chips, on light AND dark
   bubbles, so a "discuss in chat" mention is instantly recognisable. */
.tiwcc-root .chat-itemref{display:inline-flex;align-items:center;gap:5px;max-width:100%;margin:0 2px;padding:2px 8px 2px 6px;border:1px solid rgba(24,24,27,.24);border-radius:8px;background:rgba(24,24,27,.06);color:inherit;font:inherit;line-height:1.45;text-align:left;vertical-align:middle}
.tiwcc-root .chat-itemref b{font-weight:700;letter-spacing:.01em;white-space:nowrap;flex:none}
.tiwcc-root .chat-itemref .cir-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.8;min-width:0}
.tiwcc-root .chat-itemref svg{opacity:.75;flex:none}
.tiwcc-root button.chat-itemref{cursor:pointer}
.tiwcc-root button.chat-itemref:hover{background:rgba(24,24,27,.12);border-color:rgba(24,24,27,.36)}
.tiwcc-root .msg.me .chat-itemref{border-color:rgba(255,255,255,.34);background:rgba(255,255,255,.13)}
.tiwcc-root .msg.me .chat-itemref:hover{background:rgba(255,255,255,.22)}
/* r46: work-reference block card — same visual language as the reply quote. */
.msg-ref{display:flex;align-items:center;gap:8px;width:100%;text-align:left;margin:2px 0 6px;padding:6px 10px;border:0;border-left:3px solid rgba(24,24,27,.28);border-radius:6px;background:rgba(24,24,27,.05);cursor:pointer;font:inherit;color:inherit}
.msg-ref svg{flex:none;opacity:.72}
.msg-ref .mr-t{min-width:0}
.msg-ref b{display:block;font-size:11px;font-weight:800;line-height:1.3}
.msg-ref .mr-t > span{display:block;font-size:11.5px;opacity:.82;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}
.msg-ref:hover{background:rgba(24,24,27,.09)}
.msg.me .msg-ref{background:rgba(255,255,255,.14);border-left-color:rgba(255,255,255,.55)}
.msg.me .msg-ref:hover{background:rgba(255,255,255,.2)}
/* r46: media caption under chat players gets breathing room. */
.tiwcc-root .msg-mcap{margin-top:8px}
/* r46 a11y: hover states must keep icon/text contrast. */
.tiwcc-root .mcard.mc2.has-top .card-actions .mini-btn:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.tiwcc-root .btn-primary.btn-icon:hover{background:#27272a;color:#fff}
.tiwcc-root .btn-primary.btn-icon:active{background:#000;color:#fff}
/* r46 a11y: disabled buttons read as disabled without white-on-white. */
.tiwcc-root .btn:disabled,.tiwcc-root .btn[disabled]{background:rgba(24,24,27,.10);color:var(--muted);box-shadow:none;transform:none;cursor:not-allowed}
.tiwcc-root .msg.me .btn:disabled,.tiwcc-root .msg.me .btn[disabled]{background:rgba(255,255,255,.16);color:rgba(255,255,255,.6)}
/* r46 a11y sweep: small meta text and inactive controls must clear WCAG AA.
   (--faint #a1a1aa = ~2.6:1 and --muted on grey pills = ~4.3:1 were too low.) */
.tiwcc-root .wf-bar .wf-nav button{color:var(--ink-2)}
.tiwcc-root .seg button{color:var(--ink-2)}
.tiwcc-root .msg .bub time{color:#6b6b72}
.tiwcc-root .msg.me .bub time{color:rgba(255,255,255,.72)}
.tiwcc-root .cv-time,.tiwcc-root .pd-item time,.tiwcc-root .feed-item time,.tiwcc-root .rvw-ch time,.tiwcc-root .audit-row .body time,.tiwcc-root .ax-act time,.tiwcc-root .msg-mcap{color:#6b6b72}
.tiwcc-root .msg.me .msg-mcap{color:rgba(255,255,255,.72)}
/* r47: free-hand / ruler strokes on the whiteboard. */
.tiwcc-root .wb-item.wb-path{background:transparent;border:0;box-shadow:none;backdrop-filter:none;color:var(--ink)}
.tiwcc-root .wb-item.wb-path .wbn-path{display:block;width:100%;height:100%}
.tiwcc-root .wb-item.wb-path .wbn-menu{background:rgba(255,255,255,.92)}
/* r47: empty preset zones explain themselves instead of "0 element". */
.tiwcc-root .wb-zone .zc.zc-empty{opacity:.55;font-style:italic}
/* r47 responsive audit fixes. */
.tiwcc-root .dash-att-wrap{grid-template-columns:minmax(0,1fr)}
/* r51: wide screens get attention + deadlines side by side again (the r47
 * single-column rule left a half-empty page with the projects far below). */
@media (min-width:1280px){
	.tiwcc-root .dash-att-wrap{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
}
/* r51: only one of the two panels present (e.g. clients: deadlines only). */
.tiwcc-root .dash-att-wrap:has(> [hidden]){grid-template-columns:minmax(0,1fr)}
@media (max-width:1024px){
	.tiwcc-root .wf-nav{gap:2px}
	.tiwcc-root .wf-nav button{padding:7px 10px;font-size:12px}
	.tiwcc-root .wf-search{width:120px}
	.tiwcc-root .wf-search:focus-within{width:150px}
}
@media (max-width:900px){
	.tiwcc-root .wf-search{display:none}
}
@media (max-width:768px){
	.tiwcc-root .board-bar{padding:0 8px;gap:6px}
	.tiwcc-root .board-bar .crumb{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}
}
@media (max-width:900px){
	.tiwcc-root .wf-logo b{display:none}
	.tiwcc-root .wf-nav button{padding:6px 9px;font-size:11.5px}
}
@media (max-width:900px){
	.tiwcc-root .wf-bar{gap:6px;padding:0 8px}
	.tiwcc-root .wf-profile-btn > svg{display:none}
}
/* r48 identity modal (rename + avatar). */
.tiwcc-root .idm-prev{width:52px;height:52px;font-size:15px;font-weight:700}
/* r58/r59: Edit dialog — mode tabs, custom colour, own emoji/text, own image.
   Every button here states ALL box properties incl. hover/focus, so theme button
   rules ([type=button]:hover, button:focus …) cannot reshape it. */
.tiwcc-root .idm-card .wb-fld{margin-bottom:12px}
.tiwcc-root .idm-card .idm-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;padding:3px;border:1px solid var(--line);border-radius:10px;margin:0 0 16px;background:rgba(24,24,27,.035)}
.tiwcc-root .idm-card .idm-seg button,.tiwcc-root .idm-card .idm-seg button:hover,.tiwcc-root .idm-card .idm-seg button:focus{display:flex;align-items:center;justify-content:center;width:100%;height:32px;min-height:0;margin:0;padding:0 8px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:inherit;font-size:12.5px;font-weight:650;line-height:1;letter-spacing:0;text-transform:none;text-align:center;white-space:nowrap;box-shadow:none;outline:none;transform:none;cursor:pointer;transition:background .15s,color .15s}
.tiwcc-root .idm-card .idm-seg button:hover{color:var(--ink)}
.tiwcc-root .idm-card .idm-seg button.on,.tiwcc-root .idm-card .idm-seg button.on:hover,.tiwcc-root .idm-card .idm-seg button.on:focus{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(24,24,27,.1),0 0 0 1px var(--line)}
.tiwcc-root .idm-card .idm-seg button:focus-visible{outline:2px solid rgba(24,24,27,.35);outline-offset:-2px}
.tiwcc-root .idm-pane[hidden]{display:none}
.tiwcc-root .idm-card .idm-sw-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:16px}
.tiwcc-root .idm-card .idm-sw,.tiwcc-root .idm-card .idm-sw:hover,.tiwcc-root .idm-card .idm-sw:focus{flex:none;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;min-height:0;min-width:0;margin:0;padding:0;border:2px solid rgba(255,255,255,.92);border-radius:50%;box-shadow:0 0 0 1px var(--line-strong);outline:none;color:transparent;font-size:0;line-height:0;cursor:pointer;transition:transform .15s var(--ease)}
.tiwcc-root .idm-card .idm-sw:hover{transform:scale(1.1)}
.tiwcc-root .idm-card .idm-sw.sel,.tiwcc-root .idm-card .idm-sw.sel:hover{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ink)}
.tiwcc-root .idm-card .idm-sw:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(24,24,27,.45)}
.tiwcc-root .idm-card .idm-sw-custom,.tiwcc-root .idm-card .idm-sw-custom:hover{position:relative;background:#fff;color:var(--muted);border:1.5px dashed var(--line-strong);box-shadow:none}
.tiwcc-root .idm-card .idm-sw-custom svg{width:12px;height:12px}
.tiwcc-root .idm-card .idm-sw-custom.has,.tiwcc-root .idm-card .idm-sw-custom.has:hover{border:2px solid rgba(255,255,255,.92);box-shadow:0 0 0 1px var(--line-strong);color:transparent}
.tiwcc-root .idm-card .idm-sw-custom.has.sel{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ink)}
.tiwcc-root .idm-card .idm-sw-custom input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0;margin:0;min-height:0}
.tiwcc-root .idm-card .idm-em{display:grid;grid-template-columns:repeat(8,1fr);gap:6px 4px;justify-items:center;margin-bottom:12px}
.tiwcc-root .idm-card .idm-em button,.tiwcc-root .idm-card .idm-em button:hover,.tiwcc-root .idm-card .idm-em button:focus{display:flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:0;min-width:0;margin:0;padding:0;border:0;border-radius:10px;background:transparent;box-shadow:none;outline:none;color:inherit;font-size:18px;line-height:1;letter-spacing:0;text-transform:none;transform:none;cursor:pointer;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;transition:background .15s}
.tiwcc-root .idm-card .idm-em button:hover{background:rgba(24,24,27,.06)}
.tiwcc-root .idm-card .idm-em button.sel,.tiwcc-root .idm-card .idm-em button.sel:hover{background:rgba(24,24,27,.06);box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--ink)}
.tiwcc-root .idm-card .idm-em button:focus-visible{box-shadow:0 0 0 2px rgba(24,24,27,.35)}
.tiwcc-root .idm-card .idm-emtxt{margin:4px 0 6px}
.tiwcc-root .idm-card .idm-emtxt input{font-family:inherit,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.tiwcc-root .idm-card .idm-img{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tiwcc-root .idm-card .idm-img .btn{height:34px;display:inline-flex;align-items:center;gap:6px}
.tiwcc-root .idm-card .idm-linkbtn,.tiwcc-root .idm-card .idm-linkbtn:hover,.tiwcc-root .idm-card .idm-linkbtn:focus{display:inline-block;width:auto;min-height:0;border:0;background:none;box-shadow:none;outline:none;padding:0;margin:0 0 14px;font:inherit;font-size:11.5px;font-weight:650;color:var(--muted);letter-spacing:0;text-transform:none;text-decoration:underline;text-underline-offset:2px;transform:none;cursor:pointer}
.tiwcc-root .idm-card .idm-linkbtn:hover{color:var(--ink)}
.tiwcc-root .idm-card .idm-img .idm-linkbtn{margin:0}
.tiwcc-root .idm-card .idm-linkbtn[hidden]{display:none}
.tiwcc-root .idm-card .idm-note{font-size:11px;color:var(--muted);line-height:1.55;margin:8px 0 12px}
.tiwcc-root .idm-card .idm-err{font-size:11.5px;color:#b91c1c;margin:-6px 0 12px}
.tiwcc-root .idm-card .idm-err[hidden]{display:none}
.tiwcc-root .gav-img{overflow:hidden;background:#e4e4e7}
.tiwcc-root .gav-img img{width:100%;height:100%;object-fit:cover;display:block}
.tiwcc-root .idm-avrow{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:var(--r-lg);background:rgba(24,24,27,.02);margin-bottom:14px}
.tiwcc-root .idm-avmeta b{display:block;font-size:12.5px;font-weight:750;letter-spacing:-.01em}
.tiwcc-root .idm-avmeta span{display:block;font-size:11px;color:var(--muted);line-height:1.55;margin-top:3px}
.tiwcc-root .idm-lbl{font-size:11px;font-weight:700;color:var(--muted);margin:0 0 6px}
.tiwcc-root .idm-sw-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.tiwcc-root .idm-sw{width:26px;height:26px;border-radius:50%;border:2px solid rgba(255,255,255,.92);cursor:pointer;box-shadow:0 0 0 1px var(--line-strong);padding:0;transition:transform .15s var(--ease)}
.tiwcc-root .idm-sw:hover{transform:scale(1.12)}
.tiwcc-root .idm-sw.sel{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ink)}
.tiwcc-root .idm-em{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;margin-bottom:6px}
.tiwcc-root .idm-em button{height:30px;border:none;background:transparent;border-radius:8px;font-size:16px;cursor:pointer;line-height:1;padding:0}
.tiwcc-root .idm-em button:hover{background:rgba(24,24,27,.06)}
.tiwcc-root .idm-em button.sel{background:rgba(24,24,27,.1);box-shadow:inset 0 0 0 1.5px var(--ink)}
.tiwcc-root .idm-linkbtn{border:none;background:none;padding:0;font:inherit;font-size:11px;font-weight:700;color:var(--muted);cursor:pointer;text-decoration:underline;margin:0 0 14px}
.tiwcc-root .idm-linkbtn:hover{color:var(--ink)}
.tiwcc-root .gav-cus{font-weight:700;letter-spacing:-.02em}
.tiwcc-root .gav-emo{font-size:17px;font-weight:400;letter-spacing:0;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.tiwcc-root .cv-iav .gav-cus:not(.gav-emo){font-size:13px}
@media (max-width:480px){.tiwcc-root .idm-em,.tiwcc-root .idm-card .idm-em{grid-template-columns:repeat(6,1fr)}}

/* r51: dashboard tidy-up — one header, a titled projects section, and
 * sidebar pages (Templates, Activity) that replace the dashboard body. */
.tiwcc-root #dashHome[hidden]{display:none}
.tiwcc-root .dash-sec-head{display:flex;align-items:center;gap:8px;margin:22px 0 10px}
.tiwcc-root .dash-sec-head h3{font-size:13px;font-weight:750;letter-spacing:-.01em;margin:0}
.tiwcc-root .dash-att-wrap:has(> #dashAttention[hidden]):has(> #dashUpcoming[hidden]) + .dash-sec-head{margin-top:0}
.tiwcc-root #sidePanel{margin-top:0}
.tiwcc-root #dashTitle{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tiwcc-root .dash-att-wrap:has(> [hidden]) > :not([hidden]){max-width:780px}
/* r51: card footer without the redundant stage pill — badges start left,
 * date/assignee stay together; an empty footer takes no space. */
.tiwcc-root .mcard.mc2 .mc-foot-r{margin-left:0;justify-content:flex-start;flex:1 1 auto}
.tiwcc-root .mcard.mc2 .mc-foot-r .mc-av{margin-left:auto}
.tiwcc-root .mcard.mc2 .mc-foot:has(> .mc-foot-r:empty){display:none}
/* r51: presence badge/avatars only when 2+ people are on the project. */
.tiwcc-root .board-more-menu.solo > .badge-live,
.tiwcc-root .board-more-menu.solo > .av-stack,
.tiwcc-root .board-more-menu.solo > .av-stack + .divider-v{display:none}
.tiwcc-root .datepick[hidden]{display:none}
.tiwcc-root .datepick.is-static{cursor:default;pointer-events:none;background:transparent;border-color:transparent;box-shadow:none}
/* r51: profile — breathing room between the photo row and the first field. */
.tiwcc-root #profileModal .avatar-row{padding-bottom:6px!important;gap:14px}

/* r52: tablet/mobile audit.
 * T1 topbar: between 1024 and ~1310px the bar was up to 127px wider than the
 * viewport, clipping the avatar (tablet landscape). The logo mark stays; the
 * brand name hides earlier, and the nav tightens a little below 900px. */
@media (max-width:1320px){
	.tiwcc-root .wf-logo b{display:none}
	.tiwcc-root .wf-search{width:170px}
	.tiwcc-root .wf-search:focus-within{width:200px}
}
@media (max-width:1024px){
	.tiwcc-root .wf-search{width:120px}
	.tiwcc-root .wf-search:focus-within{width:150px}
}
@media (max-width:900px){
	.tiwcc-root .wf-bar .wf-nav button{padding:6px 8px}
}
/* M3 Admin → Users: below 900px the 6-column table overflowed (mobile and
 * tablet portrait hid Projects/Status/actions). Each user becomes a card:
 * name, then role + labelled facts, then the actions. */
@media (max-width:900px){
	.tiwcc-root .tbl.tbl-users{display:block;overflow:visible;white-space:normal}
	.tiwcc-root .tbl-users thead{display:none}
	.tiwcc-root .tbl-users tbody{display:block}
	.tiwcc-root .tbl-users tr{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:12px 16px;border-bottom:1px solid var(--line)}
	.tiwcc-root .tbl-users tr:last-child{border-bottom:0}
	.tiwcc-root .tbl-users td{display:block;padding:0;border:0;font-size:12px}
	.tiwcc-root .tbl-users td:first-child{flex:1 1 100%}
	.tiwcc-root .tbl-users td[data-label]::before{content:attr(data-label) " ";color:var(--muted);font-size:11px;font-weight:600;margin-right:2px}
	.tiwcc-root .tbl-users td.tu-act{flex:1 1 100%;text-align:left!important;display:flex;gap:6px;align-items:center}
}
/* M5 profile modal: the avatar row carried its own 16px inset on top of the
 * card padding, so it sat further right than the title and the fields. */
.tiwcc-root #profileModal .avatar-row{padding-left:0!important;padding-right:0!important}
.tiwcc-root .pmx-unsched.is-empty{padding:10px 14px;border-style:solid;background:transparent}
.tiwcc-root .pmx-unsched-none{margin-left:4px;font-size:12px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--ax-faint)}
/* T2: in row mode the project-settings sections scrolled sideways with a
 * hidden scrollbar, so "Notifications" was cut off with no hint (tablet and
 * mobile). The pills wrap instead — every section stays visible. */
@media (max-width:1100px){
	.tiwcc-root .ps-nav{flex-wrap:wrap;overflow-x:visible}
}
/* T3: project tabs overflowed by ~25px at tablet portrait (Settings cut). */
@media (max-width:900px){
	.tiwcc-root .pnav button{padding:0 10px}
}
/* r52: the mute switch sat flush against the last preference row. */
.tiwcc-root .ps-prefs + .ps-switch{margin-top:16px}

/* r53 (S1): the search icon replaces the inline box at <=900px and opens
 * the same #globalSearch as a full-width row under the top bar. */
.tiwcc-root .wf-search-btn{display:none}
@media (max-width:900px){
	.tiwcc-root .wf-search-btn{display:flex}
	.tiwcc-root .wf-search-btn.active{background:var(--ink);color:#fff}
	.tiwcc-root.search-open .wf-search{display:flex;position:absolute;top:calc(100% + 6px);left:8px;right:8px;width:auto;height:42px;z-index:var(--z-nav, 60);background:#fff;border:1px solid var(--line-strong);border-radius:var(--r-lg, 14px);box-shadow:var(--shadow-lg);padding:0 12px}
	.tiwcc-root.search-open .wf-search:focus-within{width:auto}
	.tiwcc-root.search-open .wf-search input{font-size:16px;flex:1;min-width:0}
	.tiwcc-root.search-open .wf-search > span{display:none}
	.tiwcc-root.search-open .search-results{left:0;right:0;width:auto;max-width:none;max-height:min(60vh,420px);overflow-y:auto}
}
/* r68: the Agency nav gained "Invoice", so between 780 and 1440px the bar
 * overflowed by up to 60px (ui_r52 + a 10px sweep). The search icon mode from
 * r53 now starts at 1280px (same #globalSearch row, same handlers); below 900px the nav pills
 * tighten a little more. */
@media (max-width:1280px){
	.tiwcc-root .wf-search{display:none}
	.tiwcc-root .wf-search-btn{display:flex}
	.tiwcc-root .wf-search-btn.active{background:var(--ink);color:#fff}
	.tiwcc-root.search-open .wf-search{display:flex;position:absolute;top:calc(100% + 6px);left:8px;right:8px;width:auto;height:42px;z-index:var(--z-nav, 60);background:#fff;border:1px solid var(--line-strong);border-radius:var(--r-lg, 14px);box-shadow:var(--shadow-lg);padding:0 12px}
	.tiwcc-root.search-open .wf-search:focus-within{width:auto}
	.tiwcc-root.search-open .wf-search input{font-size:16px;flex:1;min-width:0}
	.tiwcc-root.search-open .wf-search > span{display:none}
	.tiwcc-root.search-open .search-results{left:0;right:0;width:auto;max-width:none;max-height:min(60vh,420px);overflow-y:auto}
}
@media (max-width:1440px){
	.tiwcc-root .wf-logo b{display:none}
}
@media (max-width:1200px){
	.tiwcc-root .wf-bar .wf-nav button{padding:7px 12px}
}
@media (max-width:1024px){
	.tiwcc-root .wf-nav{gap:1px;padding:4px}
	.tiwcc-root .wf-bar .wf-nav button{padding:6px 7px}
}
@media (max-width:860px){
	.tiwcc-root .wf-bar .wf-nav button{padding:6px 5px;font-size:11px}
}
/* Safety net for long white-label names or translations: the brand name
 * truncates and the nav pills scroll sideways instead of widening the bar. */
@media (min-width:769px){
	.tiwcc-root .wf-logo{flex:0 1 auto;min-width:0}
	.tiwcc-root .wf-logo b{overflow:hidden;text-overflow:ellipsis;min-width:0}
	.tiwcc-root .wf-nav{flex:0 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none}
	.tiwcc-root .wf-nav::-webkit-scrollbar{display:none}
	.tiwcc-root .wf-nav button{flex:none}
	.tiwcc-root .wf-right{flex:none}
}
/* r53 (S2): the burger drawer was 97% white with blur, so page text showed
 * through on busy views. Solid, like every other menu. */
@media (max-width:768px){
	.tiwcc-root.burger-open .wf-nav{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}
}
/* r53 (A1): at <=768px the Dashboard and Admin sidebars were hidden with no
 * substitute, so Templates / Activity / every Admin tab except the current
 * one could not be reached. They become a scrollable chip row above the
 * content (same buttons, same handlers). */
@media (max-width:768px){
	.tiwcc-root #tiwcc-view-dash > .shell,
	.tiwcc-root #tiwcc-view-users > .shell{flex-direction:column}
	.tiwcc-root #tiwcc-view-dash > .shell > .sidebar,
	.tiwcc-root #tiwcc-view-users > .shell > .sidebar{display:flex;flex-direction:row;align-items:center;width:auto;flex:none;gap:6px;padding:6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;border-radius:var(--r-lg);animation:none}
	.tiwcc-root #tiwcc-view-dash > .shell > .sidebar::-webkit-scrollbar,
	.tiwcc-root #tiwcc-view-users > .shell > .sidebar::-webkit-scrollbar{display:none}
	.tiwcc-root #tiwcc-view-dash > .shell > .sidebar .side-label,
	.tiwcc-root #tiwcc-view-users > .shell > .sidebar .side-label,
	.tiwcc-root #tiwcc-view-dash > .shell > .sidebar .side-foot,
	.tiwcc-root #tiwcc-view-users > .shell > .sidebar .side-foot{display:none}
	.tiwcc-root #tiwcc-view-dash > .shell > .sidebar .nav-item,
	.tiwcc-root #tiwcc-view-users > .shell > .sidebar .nav-item{width:auto;flex:none;white-space:nowrap;height:34px;padding:0 12px;gap:7px;font-size:12.5px;border:1px solid var(--line);background:#fff}
	.tiwcc-root #tiwcc-view-dash > .shell > .sidebar .nav-item.active,
	.tiwcc-root #tiwcc-view-users > .shell > .sidebar .nav-item.active{background:var(--ink);color:#fff;border-color:var(--ink)}
	.tiwcc-root #tiwcc-view-dash > .shell > .sidebar .nav-item .count,
	.tiwcc-root #tiwcc-view-users > .shell > .sidebar .nav-item .count{margin-left:2px}
	.tiwcc-root #tiwcc-view-dash > .shell > .main,
	.tiwcc-root #tiwcc-view-users > .shell > .main{min-height:0}
}
@media (max-width:900px){
	/* r53 (A3): Projects table as cards; an unshared project's lone "—" pill
	 * says nothing without its column header, so it is dropped there. */
	.tiwcc-root .tbl-boards td:nth-child(5):has(.role-pill){display:none}
}
/* r53: Admin → Settings at tablet portrait (721–900px): the sidebar leaves
 * the settings card ~520px wide and the fixed 340px control column squeezed
 * labels into 6-line stubs. Stack like phones; a switch never needs 340px. */
.tiwcc-root .set-page .set-row.is-switch{grid-template-columns:minmax(0,1fr) auto}
@media (max-width:900px){
	.tiwcc-root .set-page .set-row{grid-template-columns:1fr;gap:10px}
	.tiwcc-root .set-page .set-row .c{justify-content:stretch}
	.tiwcc-root .set-page .set-row.is-switch,
	.tiwcc-root .set-page .set-row.is-status{grid-template-columns:minmax(0,1fr) auto}
	.tiwcc-root .set-page .set-row.is-switch .c,
	.tiwcc-root .set-page .set-row.is-status .c{justify-content:flex-end}
}

/* ===================== r55 WHITEBOARD ON TOUCH ===================== */
/* Every gesture on the canvas is handled by app.js (Pointer Events: pan,
   node drag/resize, pen, two-finger pinch). Without this the browser took
   the touch for page scrolling and the canvas never moved. */
.tiwcc-root .wb-canvas{touch-action:none;-webkit-tap-highlight-color:transparent}
/* The zoom control had no z-index, so the node layer (z-index 1) covered it:
   taps and clicks on − / + landed on the layer (desktop too). */
.tiwcc-root .wb-zoom{z-index:30}
.tiwcc-root .wb-zoom button,.tiwcc-root .wb-history button,.tiwcc-root .wb-hintbtn{touch-action:manipulation}
.tiwcc-root .wb-canvas.wb-pinching .wb-layer,.tiwcc-root .wb-canvas.wb-panning .wb-layer{will-change:transform}
/* Fingers need bigger targets: zoom/history buttons, node resize handles. */
@media (pointer:coarse){
	.tiwcc-root .wb-zoom button{width:38px;height:38px;font-size:17px}
	.tiwcc-root .wb-history button{width:38px;height:38px}
	.tiwcc-root .wb-hintbtn{width:42px;height:42px}
	.tiwcc-root .wb-item .rh,.tiwcc-root .wb-zone .rh{width:18px;height:18px;border-radius:5px}
	.tiwcc-root .rh-nw{left:-10px;top:-10px}
	.tiwcc-root .rh-ne{right:-10px;top:-10px}
	.tiwcc-root .rh-sw{left:-10px;bottom:-10px}
	.tiwcc-root .rh-se{right:-10px;bottom:-10px}
}
@media (pointer:coarse) and (max-width:1100px){
	.tiwcc-root .wb-history{left:64px}
	.tiwcc-root .wb-hintbtn{bottom:17px}
	.tiwcc-root .wb-hint{bottom:70px}
}

/* r56 — short canvas (phone landscape, small phone): the toolbar becomes a row
   (toggled by wbFitTools) and wraps onto a second line when it is wider than
   the canvas, so every tool stays visible without a hidden sideways scroll. */
.tiwcc-root .wb-canvas.wb-tools-row .wb-tools{flex-direction:row;flex-wrap:wrap;align-items:center;left:8px;top:8px;max-width:calc(100% - 16px)}
.tiwcc-root .wb-canvas.wb-tools-row .wb-tools button{flex:none}
.tiwcc-root .wb-canvas.wb-tools-row .wb-tools .sep{width:1px;height:22px;margin:0 3px;flex:none}
/* iOS: a long press on the board must not start text selection / the callout */
.tiwcc-root .wb-canvas{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

/* r61: contextual workflow bar (Submit for Review → internal → client). */
.flow-bar{display:flex;flex-direction:column;gap:8px;width:100%}
.tiwcc-root .flow-steps{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0;list-style:none}
.flow-steps li{display:inline-flex;align-items:center;gap:4px;flex:none;font-size:10.5px;line-height:1.2;padding:3px 7px;border:1px solid var(--line-strong);border-radius:999px;color:var(--muted);background:#fff;white-space:nowrap}
.flow-steps li i{font-style:normal;font-size:10px;width:10px;text-align:center}
.flow-steps li.is-done{color:var(--ink)}
.flow-steps li.is-done i{color:#15803d}
.flow-steps li.is-cur{color:var(--ink);font-weight:700;border-color:var(--accent,#f97316)}
.flow-steps li.is-cur i{color:var(--accent,#f97316)}
.flow-head{display:flex;flex-direction:column;gap:2px;padding-left:9px;border-left:2px solid var(--line-strong)}
.flow-head b{font-size:12.5px;color:var(--ink)}
.flow-head span{font-size:11.5px;color:var(--muted)}
.flow-head.tone-wait{border-left-color:#a8a29e}
.flow-head.tone-change{border-left-color:var(--accent,#f97316)}
.flow-head.tone-work{border-left-color:var(--ink)}
.tiwcc-root .flow-quote{margin:0;font-size:12px;line-height:1.45;padding:2px 0 2px 10px;border:0;border-left:2px solid var(--line-strong);border-radius:0;background:transparent;white-space:pre-wrap;color:var(--muted);font-style:italic}
.tiwcc-root .flow-actions{display:flex;gap:8px;flex-wrap:wrap}
.tiwcc-root .flow-actions .btn{flex:1 1 auto;justify-content:center}
/* r62: no client member on the project yet — submit still works, the
 * client-review step waits until a client is invited. */
.tiwcc-root .flow-warn{margin:0;font-size:11.5px;line-height:1.45;color:#9a3412;padding-left:9px;border-left:2px solid var(--accent,#f97316)}
.flow-bar .ax-link{align-self:flex-start}
.rv-behalf,.pmx-behalf{font-style:normal;font-weight:500;opacity:.8}
/* r61: My Work list. */
.mw-list{display:flex;flex-direction:column}
.tiwcc-root .mw-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 4px;border:0;border-bottom:1px solid var(--line);background:none;cursor:pointer;color:var(--ink)}
.mw-row:last-child{border-bottom:0}
.mw-row:hover{background:rgba(0,0,0,.02)}
.mw-dot{width:8px;height:8px;border-radius:50%;flex:none}
.mw-main{display:flex;flex-direction:column;min-width:0;flex:1}
.mw-main b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mw-main em{font-style:normal;font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mw-state{flex:none;font-size:10.5px;font-weight:700;padding:3px 8px;border-radius:999px;border:1px solid var(--line-strong);color:var(--muted)}
.mw-state.is-internal_changes,.mw-state.is-revision_requested{border-color:var(--accent,#f97316);color:var(--accent,#f97316)}
.mw-due{flex:none;font-size:11px;color:var(--muted)}
/* r61: project members management (owner / Agency). */
.tiwcc-root .ps-mem .ps-mem-role{width:auto;min-width:96px;flex:none;padding:4px 8px;font-size:12px}
.tiwcc-root .ps-mem .ps-mem-del{flex:none;font-size:11.5px}
.tiwcc-root .ps-mem-add{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.tiwcc-root .ps-mem-add select{flex:1 1 160px;width:auto}
.tiwcc-root .ps-mem-add select#pmxMemRole{flex:0 0 110px}
/* r61: workspace role definitions under the users table. */
.role-help{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px 18px;padding:14px 16px;border-top:1px solid var(--line)}
.role-help div{display:flex;flex-direction:column;gap:3px}
.role-help b{font-size:12px;color:var(--ink)}
.role-help span{font-size:11.5px;line-height:1.45;color:var(--muted)}

/* r63: project template gallery (Templates page) */
.tiwcc-root .ptpl-group{grid-column:1/-1;margin:18px 0 0;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ax-faint,#71717a);border-bottom:1px solid var(--line);padding-bottom:6px}
.tiwcc-root .ptpl-group:first-child{margin-top:0}
.tiwcc-root .ptpl-group span{font-weight:500;margin-left:4px}
.tiwcc-root .ptpl-card{display:flex;flex-direction:column;gap:2px;cursor:pointer;transition:border-color .2s var(--ease),box-shadow .2s var(--ease)}
.tiwcc-root .ptpl-card:hover{border-color:var(--line-strong);box-shadow:var(--shadow-lg)}
.tiwcc-root .ptpl-card h4{margin:0 0 2px}
.tiwcc-root .ptpl-card .row{margin-top:auto;padding-top:8px}
.tiwcc-root .ptpl-phases{font-size:12px;line-height:1.5;color:var(--var-ink-2,#3f3f46);margin:2px 0 0}
.tiwcc-root .ptpl-meta{font-size:11.5px;color:var(--ax-faint,#71717a);margin:2px 0 0}

/* r63 fix: ownership transfer dialog (Admin → Users) */
.tiwcc-root #tiwccOwnerTransfer .ot-text{font-size:13px;color:var(--ink-2);line-height:1.6;margin:0 0 10px}
.tiwcc-root #tiwccOwnerTransfer .ot-list{list-style:disc;margin:0 0 14px;padding:0 0 0 18px;font-size:13px;line-height:1.6;color:var(--ink,#18181b)}

/* r64: per-client "Can approve" switch in Project settings → Members */
.tiwcc-root .ps-mem .ps-mem-ap{margin-top:0;font-size:12px;font-weight:500;color:var(--ax-ink2,#57534e);white-space:nowrap}
@media (max-width:640px){.tiwcc-root .ps-mem{flex-wrap:wrap}.tiwcc-root .ps-mem .ps-mem-ap{order:5;flex-basis:100%;padding-left:42px}}
/* r65: first-run card on an empty dashboard (TIW editorial style) */
.tiwcc-root .dash-start{grid-column:1/-1;background:#fff;border:1px solid var(--line-strong);border-radius:var(--r-lg);padding:28px 28px 24px;box-shadow:0 1px 2px rgba(24,24,27,.04)}
.tiwcc-root .dash-start h3{margin:0 0 6px;font-size:18px;font-weight:700;color:var(--ink);letter-spacing:-.01em}
.tiwcc-root .dash-start-lead{margin:0 0 20px;color:var(--muted);font-size:13.5px;line-height:1.5}
.tiwcc-root .dash-start-steps{list-style:none;margin:0 0 22px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tiwcc-root .dash-start-steps li{list-style:none;display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid rgba(24,24,27,.08);border-radius:12px;background:#fafaf9;margin:0}
.tiwcc-root .dash-start-steps .n{flex:0 0 24px;height:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#c2410c;background:#fff7ed;border:1px solid rgba(234,88,12,.25)}
.tiwcc-root .dash-start-steps b{display:block;font-weight:700;font-size:13.5px;color:var(--ink);margin-bottom:3px}
.tiwcc-root .dash-start-steps span:not(.n){display:block;font-size:12.5px;line-height:1.45;color:var(--muted)}
.tiwcc-root .dash-start-actions{display:flex;flex-wrap:wrap;gap:8px}
@media (max-width:760px){.tiwcc-root .dash-start{padding:20px 18px}.tiwcc-root .dash-start-steps{grid-template-columns:1fr}}
/* r67: invite "can approve" option */
.tiwcc-root .inv-approve{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line-strong);border-radius:12px;background:#fafaf9;cursor:pointer}
.tiwcc-root .inv-approve[hidden]{display:none}
.tiwcc-root .inv-approve input{margin-top:3px;accent-color:#18181b;flex:0 0 auto}
.tiwcc-root .inv-approve b{display:block;font-size:13px;font-weight:700;color:var(--ink)}
.tiwcc-root .inv-approve small{display:block;font-size:12px;line-height:1.45;color:var(--muted);margin-top:2px}
/* r67 (F3): client reference files — thin, warm, orange accent tag. */
.tiwcc-root .pf-ref{display:inline-flex;align-items:center;height:17px;padding:0 6px;border:1px solid var(--ax-accent,#e8590c);border-radius:4px;color:var(--ax-accent,#e8590c);background:transparent;font-size:10px;font-style:normal;font-weight:650;letter-spacing:.01em}
.tiwcc-root .ref-up{margin-top:14px;padding:12px 14px;border:1px solid var(--ax-line,#e6e2dc);border-radius:10px;background:#fff}
.tiwcc-root .ref-up-h{font-size:12.5px;font-weight:650;color:var(--ax-ink,#141414)}
.tiwcc-root .ref-up .att-hint{margin:4px 0 8px}
.tiwcc-root .ref-up .spec-input{width:100%}
/* r67: project work stages editor. */
.tiwcc-root .wfx-list{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.tiwcc-root .wfx-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto auto;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--ax-line);border-radius:8px;background:#fff}
.tiwcc-root .wfx-row .spec-input{min-width:0}
.tiwcc-root .wfx-row em{font-style:normal;font-size:11.5px;color:var(--ax-muted);white-space:nowrap}
.tiwcc-root .wfx-vis{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--ax-ink2);white-space:nowrap}
@media (max-width:640px){.tiwcc-root .wfx-row{grid-template-columns:auto minmax(0,1fr) auto;row-gap:6px}.tiwcc-root .wfx-row em{grid-column:2}}
/* r67: invoices — editorial, thin borders, tabular numbers, orange accent only for "sent". */
.tiwcc-root .inv-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1px;margin:4px 0 16px;border:1px solid var(--ax-line);border-radius:10px;overflow:hidden;background:var(--ax-line)}
.tiwcc-root .inv-strip>div{padding:12px 14px;background:#fff}
.tiwcc-root .inv-strip span{display:block;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--ax-muted)}
.tiwcc-root .inv-strip b{display:block;margin-top:4px;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ax-ink)}
.tiwcc-root .inv-list{display:flex;flex-direction:column;border:1px solid var(--ax-line);border-radius:10px;overflow:hidden;background:#fff}
.tiwcc-root .inv-row{display:grid;grid-template-columns:130px minmax(0,1fr) auto 150px 150px;align-items:center;gap:12px;width:100%;padding:12px 14px;border:0;border-bottom:1px solid var(--ax-soft);background:#fff;text-align:left;font:inherit;font-size:13px;color:var(--ax-ink);cursor:pointer}
.tiwcc-root .inv-row:last-child{border-bottom:0}
.tiwcc-root .inv-row:hover,.tiwcc-root .inv-row:focus-visible{background:var(--ax-bg)}
.tiwcc-root .inv-num{font-variant-numeric:tabular-nums;color:var(--ax-ink2);font-size:12px}
.tiwcc-root .inv-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:550}
.tiwcc-root .inv-due{font-size:12px;color:var(--ax-muted)}
.tiwcc-root .inv-amt{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
.tiwcc-root .inv-st{display:inline-flex;align-items:center;height:20px;padding:0 8px;border:1px solid var(--ax-line2);border-radius:4px;font-size:11px;font-weight:600;color:var(--ax-ink2);white-space:nowrap;background:#fff}
.tiwcc-root .inv-st-sent{border-color:var(--ax-accent);color:var(--ax-accent)}
.tiwcc-root .inv-st-paid{border-color:#16a34a;color:#15803d}
.tiwcc-root .inv-st-overdue{border-color:#b91c1c;color:#b91c1c}
.tiwcc-root .inv-empty{padding:28px 18px;border:1px dashed var(--ax-line2);border-radius:10px;text-align:center;color:var(--ax-muted);font-size:13px}
.tiwcc-root .inv-doc{padding:18px 20px;border:1px solid var(--ax-line);border-radius:12px;background:#fff}
.tiwcc-root .inv-back{display:inline-block;margin-bottom:12px;font-size:12.5px}
.tiwcc-root .inv-doc-h{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding-bottom:14px;border-bottom:1px solid var(--ax-line)}
.tiwcc-root .inv-doc-h h3{margin:4px 0 0;font-size:18px;font-weight:600;letter-spacing:-.01em;color:var(--ax-ink)}
.tiwcc-root .inv-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:14px 0;border-bottom:1px solid var(--ax-soft)}
.tiwcc-root .inv-meta span,.tiwcc-root .inv-grid label>span{display:block;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--ax-muted);margin-bottom:4px}
.tiwcc-root .inv-meta b{font-weight:550;font-size:13px}
.tiwcc-root .inv-table{width:100%;border-collapse:collapse;margin:14px 0 10px;font-size:13px}
.tiwcc-root .inv-table th{padding:8px;border-bottom:1px solid var(--ax-ink);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--ax-muted);text-align:left;font-weight:600}
.tiwcc-root .inv-table td{padding:8px;border-bottom:1px solid var(--ax-soft);vertical-align:middle}
.tiwcc-root .inv-table .r{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.tiwcc-root .inv-lines .spec-input{width:100%}
.tiwcc-root .inv-lines .inv-n{max-width:90px;text-align:right}
.tiwcc-root .inv-lines .inv-p{max-width:150px;text-align:right}
.tiwcc-root .inv-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin-top:14px}
.tiwcc-root .inv-grid label{display:block;min-width:0}
.tiwcc-root .inv-grid .spec-input{width:100%}
.tiwcc-root .inv-grid-2{grid-template-columns:1fr 1fr;margin-top:0}
.tiwcc-root .inv-wide{grid-column:1/-1}
.tiwcc-root .inv-foot{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start;margin-top:16px}
.tiwcc-root .inv-sum{margin-left:auto;width:100%;max-width:320px;font-size:13px}
.tiwcc-root .inv-sum>div{display:flex;justify-content:space-between;gap:10px;padding:6px 0;font-variant-numeric:tabular-nums}
.tiwcc-root .inv-sum span{color:var(--ax-ink2)}
.tiwcc-root .inv-sum em{font-style:normal;color:var(--ax-muted)}
.tiwcc-root .inv-grand{border-top:1px solid var(--ax-ink);margin-top:4px;padding-top:10px!important;font-size:15px}
.tiwcc-root .inv-grand b{font-weight:650}
.tiwcc-root .inv-notes{margin-top:14px;padding:12px 14px;border:1px solid var(--ax-line);border-radius:8px;white-space:pre-wrap;font-size:13px;color:var(--ax-ink2)}
.tiwcc-root .inv-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid var(--ax-soft)}
.tiwcc-root .inv-actions .ax-danger{margin-right:auto}
@media (max-width:760px){
.tiwcc-root .inv-row{grid-template-columns:minmax(0,1fr) auto;row-gap:4px}
.tiwcc-root .inv-row .inv-num{grid-column:1}.tiwcc-root .inv-row .inv-st{grid-column:2;grid-row:1}
.tiwcc-root .inv-row .inv-title{grid-column:1/-1}.tiwcc-root .inv-row .inv-due{grid-column:1}.tiwcc-root .inv-row .inv-amt{grid-column:2}
.tiwcc-root .inv-grid,.tiwcc-root .inv-foot{grid-template-columns:1fr}
.tiwcc-root .inv-meta{grid-template-columns:1fr 1fr}
.tiwcc-root .inv-lines thead{display:none}
.tiwcc-root .inv-lines tr{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;padding:8px 0;border-bottom:1px solid var(--ax-soft)}
.tiwcc-root .inv-lines td{border:0;padding:0}
.tiwcc-root .inv-lines td:first-child{grid-column:1/-1}
.tiwcc-root .inv-lines td[data-inv-lt]{align-self:center}
.tiwcc-root .inv-lines .inv-n,.tiwcc-root .inv-lines .inv-p{max-width:none}
.tiwcc-root .inv-lines tr{grid-template-columns:1fr 1fr auto auto}
.tiwcc-root .inv-table:not(.inv-lines) thead{display:none}
.tiwcc-root .inv-table:not(.inv-lines) tr{display:grid;grid-template-columns:auto 1fr auto;gap:2px 10px;padding:9px 0;border-bottom:1px solid var(--ax-soft)}
.tiwcc-root .inv-table:not(.inv-lines) td{border:0;padding:0}
.tiwcc-root .inv-table:not(.inv-lines) td:first-child{grid-column:1/-1;font-weight:550}
.tiwcc-root .inv-table:not(.inv-lines) td:nth-child(2){color:var(--ax-muted)}
.tiwcc-root .inv-table:not(.inv-lines) td:nth-child(2)::after{content:" ×"}
.tiwcc-root .inv-table:not(.inv-lines) td:nth-child(3){text-align:left;color:var(--ax-muted)}
.tiwcc-root .inv-table:not(.inv-lines) td:nth-child(4){font-weight:600}
}
.tiwcc-root .inv-lines td:first-child{width:48%}

/* ===== r68: invoice payments / bill-to / send panel ===== */
.tiwcc-root .inv-st-partial{border-color:#b45309;color:#b45309}
.tiwcc-root .inv-amt small{display:block;font-size:11px;font-weight:500;color:var(--ax-muted)}
.tiwcc-root .inv-grid-bill{grid-template-columns:2fr 1fr}
.tiwcc-root .inv-grid-bill textarea{resize:vertical;min-height:68px}
.tiwcc-root .inv-bill{margin-top:14px;padding:12px 14px;border:1px solid var(--ax-line);border-radius:8px;font-size:13px}
.tiwcc-root .inv-bill span{display:block;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--ax-muted);margin-bottom:4px}
.tiwcc-root .inv-bill p{margin:0;white-space:pre-wrap;color:var(--ax-ink)}
.tiwcc-root .inv-bill p::first-line{font-weight:600}
.tiwcc-root .inv-bill small{display:block;margin-top:4px;color:var(--ax-ink2);font-size:12px}
.tiwcc-root .inv-pays{margin:10px 0 0 auto;max-width:320px;font-size:13px}
.tiwcc-root .inv-pays-h{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--ax-muted);padding:6px 0;border-top:1px solid var(--ax-line)}
.tiwcc-root .inv-pay{display:flex;align-items:center;gap:8px;padding:5px 0;font-variant-numeric:tabular-nums}
.tiwcc-root .inv-pay span{flex:1;min-width:0;color:var(--ax-ink2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tiwcc-root .inv-pay b{font-weight:550;color:var(--ax-ink2)}
.tiwcc-root .inv-pay .pf-del{padding:3px 6px}
.tiwcc-root .inv-bal{border-top:1px solid var(--ax-ink);margin-top:4px;padding-top:9px}
.tiwcc-root .inv-bal span,.tiwcc-root .inv-bal b{font-size:15px;font-weight:650;color:var(--ax-ink)}
.tiwcc-root .inv-panel{margin-top:16px;padding:14px 16px;border:1px solid var(--ax-line2);border-left:2px solid var(--ax-accent);border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(28,25,23,.04)}
.tiwcc-root .inv-panel-h{font-weight:650;font-size:14px;color:var(--ax-ink);margin-bottom:6px}
.tiwcc-root .inv-panel p{margin:6px 0;font-size:13px;color:var(--ax-ink2)}
.tiwcc-root .inv-panel .inv-grid{margin-top:8px;grid-template-columns:1fr 1fr 2fr}
.tiwcc-root .inv-check{display:flex;align-items:flex-start;gap:8px;margin:10px 0 2px;font-size:13px;color:var(--ax-ink);cursor:pointer}
.tiwcc-root .inv-check input{margin-top:2px;accent-color:var(--ax-ink)}
@media (max-width:720px){.tiwcc-root .inv-grid-bill,.tiwcc-root .inv-panel .inv-grid{grid-template-columns:1fr}.tiwcc-root .inv-pays{max-width:none}}

/* ===== r68: all-invoices overview (Agency) ===== */
.tiwcc-root .invx{width:100%;max-width:1180px;margin:0 auto;padding:22px 22px 40px}
.tiwcc-root .invx-head h1{margin:4px 0 4px;font-size:24px;font-weight:620;letter-spacing:-.02em;color:var(--ax-ink)}
.tiwcc-root .invx-head p{margin:0;color:var(--ax-muted);font-size:13.5px}
.tiwcc-root .invx-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:18px 0 16px;border:1px solid var(--ax-line);border-radius:10px;overflow:hidden;background:var(--ax-line)}
.tiwcc-root .invx-stats>div{padding:14px 16px;background:#fff;min-width:0}
.tiwcc-root .invx-stats span{display:block;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--ax-muted)}
.tiwcc-root .invx-stats b{display:block;margin-top:5px;font-size:18px;font-weight:620;font-variant-numeric:tabular-nums;color:var(--ax-ink);overflow-wrap:anywhere}
.tiwcc-root .invx-stats small{display:block;margin-top:2px;font-size:12px;color:var(--ax-faint)}
.tiwcc-root .invx-stats .late b{color:#b91c1c}
.tiwcc-root .invx-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px}
.tiwcc-root .invx-q{flex:1;min-width:200px;max-width:320px;margin-left:auto}
.tiwcc-root .invx-table tbody tr{cursor:pointer}
.tiwcc-root .invx-table tbody tr:hover,.tiwcc-root .invx-table tbody tr:focus-visible{background:var(--ax-bg);outline:none}
.tiwcc-root .invx-table td small{display:block;font-size:11.5px;color:var(--ax-muted)}
.tiwcc-root .invx-table .r{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.tiwcc-root .invx-table .invx-num{font-variant-numeric:tabular-nums;color:var(--ax-ink2);white-space:nowrap}
.tiwcc-root .invx-table td.late{color:#b91c1c}
@media (max-width:720px){.tiwcc-root .invx{padding:14px 14px 32px}.tiwcc-root .invx-stats{grid-template-columns:1fr}.tiwcc-root .invx-q{max-width:none;margin-left:0}}

/* ===== r68: review turnaround card ===== */
.tiwcc-root .apr-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.tiwcc-root .apr-col h5{margin:0 0 6px;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--ax-muted);font-weight:600}
.tiwcc-root .apr-big{display:flex;align-items:baseline;gap:6px}
.tiwcc-root .apr-big b{font-size:28px;font-weight:620;letter-spacing:-.02em;color:var(--ax-ink);font-variant-numeric:tabular-nums}
.tiwcc-root .apr-big span{font-size:12.5px;color:var(--ax-muted)}
.tiwcc-root .apr-dl{margin:8px 0 0;font-size:13px}
.tiwcc-root .apr-dl>div{display:flex;justify-content:space-between;gap:10px;padding:4px 0;border-top:1px solid var(--ax-soft)}
.tiwcc-root .apr-dl dt{color:var(--ax-ink2)}
.tiwcc-root .apr-dl dd{margin:0;font-weight:550;font-variant-numeric:tabular-nums}
.tiwcc-root .apr-wait{margin:12px 0 0;padding:8px 10px;border-left:2px solid var(--ax-accent);background:var(--ax-accent-soft);font-size:13px;color:var(--ax-ink2)}
@media (max-width:640px){.tiwcc-root .apr-grid{grid-template-columns:1fr}}

/* ===== r68: push on this device ===== */
.tiwcc-root .push-block{margin-top:18px;padding-top:14px;border-top:1px solid var(--ax-line)}
.tiwcc-root .push-state{margin:4px 0 8px;font-size:13px;color:var(--ax-ink2)}
.tiwcc-root .push-state.on::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#16a34a;margin-right:7px;vertical-align:1px}
.tiwcc-root .push-acts{justify-content:flex-start}
.tiwcc-root .ps-na{color:var(--ax-faint)}
.tiwcc-root #tiwcc-view-invoices{overflow-y:auto;align-items:flex-start}
/* r69: Chat left the nav; its top-bar icon shows the active view. */
.tiwcc-root .wf-icon-btn#chatBtn.active{background:var(--ink);color:#fff}
.tiwcc-root .wf-icon-btn#chatBtn.active .badge{box-shadow:0 0 0 2px #fff}

/* r69 — Settings → Email: test email + DNS check tools */
.tiwcc-root .set-page .set-row.is-tool .c{flex-wrap:wrap;justify-content:flex-start}
.tiwcc-root .set-page .set-row.is-tool .c .set-input{flex:1 1 240px;max-width:420px;min-width:0}
.tiwcc-root .set-out{flex-basis:100%;margin:2px 0 0;font-size:12px;line-height:1.5;color:var(--muted)}
.tiwcc-root .set-out.ok{color:#2f7a4d}
.tiwcc-root .set-out.bad{color:#b4402a}
.tiwcc-root .set-dns{flex-basis:100%;margin-top:4px;border:1px solid var(--line);border-radius:10px;background:var(--card,#fff);overflow:hidden}
.tiwcc-root .set-dns-head{display:flex;justify-content:space-between;gap:12px;margin:0;padding:10px 14px;border-bottom:1px solid var(--line);font-size:12.5px}
.tiwcc-root .set-dns-head span{color:var(--muted)}
.tiwcc-root .set-dns ul{list-style:none;margin:0;padding:0}
.tiwcc-root .set-dns li{display:grid;grid-template-columns:10px minmax(0,1fr);gap:10px;padding:10px 14px;border-top:1px solid var(--line)}
.tiwcc-root .set-dns li:first-child{border-top:0}
.tiwcc-root .set-dns .dns-dot{width:8px;height:8px;border-radius:50%;margin-top:5px;background:#9a948c}
.tiwcc-root .set-dns li.dns-ok .dns-dot{background:#2f7a4d}
.tiwcc-root .set-dns li.dns-warn .dns-dot{background:#d9822b}
.tiwcc-root .set-dns li.dns-bad .dns-dot{background:#b4402a}
.tiwcc-root .set-dns li b{font-size:12.5px;font-weight:600}
.tiwcc-root .set-dns li em{font-style:normal;font-size:11px;color:var(--muted);margin-left:6px}
.tiwcc-root .set-dns li code{display:block;margin-top:4px;padding:4px 6px;font-size:11px;background:var(--soft,#f5f3ef);border-radius:5px;word-break:break-all;white-space:pre-wrap}
.tiwcc-root .set-dns li small{display:block;margin-top:4px;font-size:11.5px;line-height:1.5;color:var(--muted)}

/* r69 — responsive polish (360–1440 sweep) */
/* Project/whiteboard bar: the title wrapper may shrink, so the filter and
   "more" buttons stay on screen; long titles end in an ellipsis. */
.tiwcc-root .board-bar > .btn-icon,.tiwcc-root .wb-bar > .btn-icon{flex:none}
.tiwcc-root .board-bar > .board-title,.tiwcc-root .wb-bar > .board-title{flex:0 1 auto;min-width:0;overflow:hidden}
.tiwcc-root .board-bar .crumb,.tiwcc-root .wb-bar .crumb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:480px){
	/* columns stack at <=768px — the old 88vw "peek" width left a gap on the right */
	.tiwcc-root .col{width:100%}
}
/* Phones/tablets: comfortable tap targets without changing the layout. */
@media (max-width:768px),(pointer:coarse){
	.tiwcc-root .seg button{min-height:32px}
	.tiwcc-root .pmx-seg button{min-height:34px}
	.tiwcc-root .ax-link,.tiwcc-root .link-sm{padding-top:9px;padding-bottom:9px;margin-top:-9px;margin-bottom:-9px}
}
/* Admin → Users: fold into cards by the panel's own width, not the viewport —
   at 901–1180px the admin sidebar left too little room and the actions column
   ("Manage projects", DM) was cut off. Same card rules as the <=900px block. */
.tiwcc-root .panel-box:has(.tbl-users){container-type:inline-size}
@container (max-width:820px){
	.tiwcc-root .tbl.tbl-users{display:block;overflow:visible;white-space:normal}
	.tiwcc-root .tbl-users thead{display:none}
	.tiwcc-root .tbl-users tbody{display:block}
	.tiwcc-root .tbl-users tr{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:12px 16px;border-bottom:1px solid var(--line)}
	.tiwcc-root .tbl-users tr:last-child{border-bottom:0}
	.tiwcc-root .tbl-users td{display:block;padding:0;border:0;font-size:12px}
	.tiwcc-root .tbl-users td:first-child{flex:1 1 100%}
	.tiwcc-root .tbl-users td[data-label]::before{content:attr(data-label) " ";color:var(--muted);font-size:11px;font-weight:600;margin-right:2px}
	.tiwcc-root .tbl-users td.tu-act{flex:1 1 100%;text-align:left!important;display:flex;gap:6px;align-items:center}
}
/* Closed item panel: also leave the tab order (it was only transparent, so
   keyboard focus could land on invisible buttons). Hidden after the slide-out. */
.tiwcc-root .dock-right.collapsed{visibility:hidden;transition-property:width,transform,opacity,visibility;transition-duration:.4s,.4s,.3s,0s;transition-delay:0s,0s,0s,.4s}
