/**
 * tcc-crm-portal — customer portal skin (frontend island).
 * Every selector nests under .tcc-scope so Impreza / WPBakery pages are
 * untouched. Field #090807 · brass #c9a36a · oyster #e8e0d4 ·
 * Fraunces display · IBM Plex UI · 22px kanban radii · shimmer.
 */

.tcc-scope {
	--tcc-field: #090807;
	--tcc-field-2: #100e0c;
	--tcc-panel: #14110e;
	--tcc-panel-2: #1a1613;
	--tcc-brass: #c9a36a;
	--tcc-brass-2: #e2c894;
	--tcc-oyster: #e8e0d4;
	--tcc-oyster-dim: rgba(232, 224, 212, 0.62);
	--tcc-line: rgba(232, 224, 212, 0.14);
	--tcc-line-soft: rgba(232, 224, 212, 0.07);
	--tcc-ok: #7fb98a;
	--tcc-warn: #d9a05b;
	--tcc-r: 22px;
	--tcc-r-s: 12px;
	--tcc-font-display: "Fraunces", Georgia, serif;
	--tcc-font-ui: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
	--tcc-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

	font-family: var(--tcc-font-ui);
	color: var(--tcc-oyster);
	box-sizing: border-box;
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.tcc-scope *, .tcc-scope *::before, .tcc-scope *::after { box-sizing: inherit; }

/* ---------------------------------------------------------------- boot */
.tcc-boot {
	display: flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 40vh; background: var(--tcc-field);
	border-radius: var(--tcc-r); border: 1px solid var(--tcc-line-soft);
	color: var(--tcc-oyster-dim); font-family: var(--tcc-font-mono); font-size: 14px;
}
.tcc-boot-mark { font-size: 26px; animation: tcc-pulse 1.6s ease-in-out infinite; }
@keyframes tcc-pulse { 0%, 100% { opacity: .5; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }

/* --------------------------------------------------------------- shell */
.tcc-app {
	display: grid; grid-template-columns: 232px 1fr; gap: 0;
	min-height: 100vh; background: var(--tcc-field);
}
.tcc-app[data-canvas="false"] {
	min-height: 640px; border-radius: var(--tcc-r);
	border: 1px solid var(--tcc-line); overflow: hidden;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

/* sidebar */
.tcc-nav {
	background: linear-gradient(180deg, var(--tcc-field-2), var(--tcc-field));
	border-right: 1px solid var(--tcc-line-soft);
	padding: 22px 14px; display: flex; flex-direction: column; gap: 4px;
}
.tcc-nav-brand {
	font-family: var(--tcc-font-display); font-size: 19px; font-weight: 600;
	color: var(--tcc-oyster); padding: 4px 10px 14px; letter-spacing: .01em;
	border-bottom: 1px solid var(--tcc-line-soft); margin-bottom: 12px;
}
.tcc-nav-brand small { display: block; font-family: var(--tcc-font-mono); font-size: 10px; color: var(--tcc-brass); letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.tcc-nav button {
	appearance: none; background: none; border: 1px solid transparent; cursor: pointer;
	text-align: left; width: 100%; padding: 9px 12px; border-radius: var(--tcc-r-s);
	color: var(--tcc-oyster-dim); font: 500 14px var(--tcc-font-ui);
	transition: color .15s, background .15s, border-color .15s;
}
.tcc-nav button:hover { color: var(--tcc-oyster); background: var(--tcc-panel); }
.tcc-nav button.is-active { color: var(--tcc-brass-2); background: var(--tcc-panel); border-color: var(--tcc-line); }
.tcc-nav-foot { margin-top: auto; padding: 12px 10px 0; font-family: var(--tcc-font-mono); font-size: 10px; color: var(--tcc-oyster-dim); border-top: 1px solid var(--tcc-line-soft); }

/* main column */
.tcc-main { padding: 26px 30px 60px; overflow-x: hidden; }
.tcc-h1 { font-family: var(--tcc-font-display); font-weight: 600; font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 4px; color: var(--tcc-oyster); }
.tcc-sub { margin: 0 0 22px; color: var(--tcc-oyster-dim); font-size: 14px; max-width: 62ch; }
.tcc-rule { height: 1px; border: 0; background: linear-gradient(90deg, var(--tcc-brass), transparent 70%); margin: 18px 0 22px; }

/* ---------------------------------------------------------------- cards */
.tcc-card {
	background: var(--tcc-panel); border: 1px solid var(--tcc-line);
	border-radius: var(--tcc-r); padding: 20px 22px; margin: 0 0 16px;
}
.tcc-card h3 { font-family: var(--tcc-font-display); font-size: 18px; font-weight: 600; margin: 0 0 10px; color: var(--tcc-oyster); }
.tcc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

/* project card */
.tcc-pcard { cursor: pointer; transition: transform .18s, border-color .18s; position: relative; overflow: hidden; }
.tcc-pcard:hover { transform: translateY(-2px); border-color: rgba(201, 163, 106, 0.45); }
.tcc-pcard .tcc-ptype { font-family: var(--tcc-font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--tcc-brass); }
.tcc-pcard h4 { margin: 6px 0 4px; font: 600 17px var(--tcc-font-display); color: var(--tcc-oyster); }
.tcc-pcard .tcc-pmeta { font-size: 12.5px; color: var(--tcc-oyster-dim); margin: 0 0 12px; }

/* progress bar */
.tcc-bar { height: 6px; border-radius: 99px; background: var(--tcc-line-soft); overflow: hidden; }
.tcc-bar > i {
	display: block; height: 100%; border-radius: 99px;
	background: linear-gradient(90deg, var(--tcc-brass), var(--tcc-brass-2));
	position: relative; overflow: hidden; transition: width .5s cubic-bezier(.2, .8, .2, 1);
}
.tcc-bar > i::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
	transform: translateX(-100%); animation: tcc-shimmer 2.4s ease-in-out infinite;
}
@keyframes tcc-shimmer { to { transform: translateX(100%); } }
.tcc-bar-label { display: flex; justify-content: space-between; font-family: var(--tcc-font-mono); font-size: 11px; color: var(--tcc-oyster-dim); margin-top: 7px; }

/* ------------------------------------------------------------- timeline */
.tcc-steps { display: flex; flex-direction: column; gap: 0; margin: 8px 0 0; }
.tcc-step { display: grid; grid-template-columns: 26px 1fr; gap: 14px; position: relative; padding: 0 0 18px; }
.tcc-step::before { content: ""; position: absolute; left: 12px; top: 24px; bottom: 0; width: 1px; background: var(--tcc-line-soft); }
.tcc-step:last-child::before { display: none; }
.tcc-step-dot {
	width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
	background: var(--tcc-panel-2); border: 1px solid var(--tcc-line);
	font-size: 12px; color: var(--tcc-oyster-dim); z-index: 1;
}
.tcc-step.is-done .tcc-step-dot { background: rgba(127, 185, 138, 0.12); border-color: rgba(127, 185, 138, 0.5); color: var(--tcc-ok); }
.tcc-step.is-now .tcc-step-dot {
	background: linear-gradient(135deg, var(--tcc-brass), var(--tcc-brass-2));
	border-color: var(--tcc-brass-2); color: #090807;
	box-shadow: 0 0 0 4px rgba(201, 163, 106, 0.16); animation: tcc-pulse 2.2s ease-in-out infinite;
}
.tcc-step-body b { display: block; font: 600 14.5px var(--tcc-font-ui); color: var(--tcc-oyster); }
.tcc-step.is-now .tcc-step-body b { color: var(--tcc-brass-2); }
.tcc-step-body span { font-size: 12.5px; color: var(--tcc-oyster-dim); }

/* ------------------------------------------------------------ chips/uq */
.tcc-uq, .tcc-permit-chip, .tcc-estimate-chip {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--tcc-font-mono); font-size: 11px; line-height: 1;
	padding: 6px 10px; border-radius: 99px; border: 1px solid var(--tcc-line);
	color: var(--tcc-oyster-dim); background: var(--tcc-panel-2);
}
.tcc-uq-s1 { background: linear-gradient(135deg, var(--tcc-brass), var(--tcc-brass-2)); color: #090807; border-color: transparent; font-weight: 600; }
.tcc-uq-s2 { color: var(--tcc-brass-2); border-color: rgba(201, 163, 106, 0.4); background: transparent; }
.tcc-uq-gate { color: var(--tcc-warn); border-color: rgba(217, 160, 91, 0.4); }
.tcc-permit-chip { margin: 2px 4px 2px 0; }
.tcc-estimate-chip { font-size: 13px; padding: 10px 14px; border-radius: var(--tcc-r-s); }

/* ------------------------------------------------------------- buttons */
.tcc-btn {
	appearance: none; cursor: pointer; border-radius: var(--tcc-r-s);
	border: 1px solid var(--tcc-line); background: var(--tcc-panel-2);
	color: var(--tcc-oyster); font: 500 13.5px var(--tcc-font-ui);
	padding: 10px 16px; transition: transform .12s, border-color .15s, background .15s;
}
.tcc-btn:hover { transform: translateY(-1px); border-color: rgba(201, 163, 106, 0.5); }
.tcc-btn:active { transform: translateY(0); }
.tcc-btn-brass { background: linear-gradient(135deg, var(--tcc-brass), var(--tcc-brass-2)); color: #090807; border-color: transparent; font-weight: 600; }
.tcc-btn-ghost { background: transparent; color: var(--tcc-oyster-dim); }
.tcc-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* --------------------------------------------------------------- forms */
.tcc-form { display: grid; gap: 14px; max-width: 620px; }
.tcc-form label { display: grid; gap: 6px; font-size: 12.5px; color: var(--tcc-oyster-dim); }
.tcc-scope input[type="text"], .tcc-scope input[type="email"], .tcc-scope input[type="number"],
.tcc-scope input[type="file"], .tcc-scope select, .tcc-scope textarea {
	width: 100%; background: var(--tcc-field-2); border: 1px solid var(--tcc-line);
	border-radius: var(--tcc-r-s); color: var(--tcc-oyster);
	font: 400 14.5px var(--tcc-font-ui); padding: 11px 13px; outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.tcc-scope input:focus, .tcc-scope select:focus, .tcc-scope textarea:focus {
	border-color: var(--tcc-brass); box-shadow: 0 0 0 3px rgba(201, 163, 106, 0.15);
}
.tcc-scope textarea { min-height: 110px; resize: vertical; }
.tcc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tcc-hint { font-size: 12px; color: var(--tcc-oyster-dim); }
.tcc-note-ok { color: var(--tcc-ok); font-size: 13px; }
.tcc-note-err { color: #e0876f; font-size: 13px; }

/* -------------------------------------------------------- tabs / vault */
.tcc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tcc-tabs button {
	appearance: none; cursor: pointer; border-radius: 99px;
	border: 1px solid var(--tcc-line); background: transparent;
	color: var(--tcc-oyster-dim); font: 500 13px var(--tcc-font-ui); padding: 8px 15px;
}
.tcc-tabs button.is-active { background: var(--tcc-panel-2); color: var(--tcc-brass-2); border-color: rgba(201, 163, 106, 0.45); }

.tcc-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--tcc-line-soft); }
.tcc-file:last-child { border-bottom: 0; }
.tcc-file b { font: 500 13.5px var(--tcc-font-ui); color: var(--tcc-oyster); word-break: break-all; }
.tcc-file small { font-family: var(--tcc-font-mono); font-size: 10.5px; color: var(--tcc-oyster-dim); display: block; }
.tcc-file a { color: var(--tcc-brass-2); font-size: 13px; text-decoration: none; white-space: nowrap; }
.tcc-file a:hover { text-decoration: underline; }

/* messages */
.tcc-msgs { display: flex; flex-direction: column; gap: 10px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.tcc-msg { max-width: 78%; padding: 11px 14px; border-radius: 16px; font-size: 14px; }
.tcc-msg-customer { align-self: flex-end; background: rgba(201, 163, 106, 0.15); border: 1px solid rgba(201, 163, 106, 0.3); border-bottom-right-radius: 4px; }
.tcc-msg-staff { align-self: flex-start; background: var(--tcc-panel-2); border: 1px solid var(--tcc-line); border-bottom-left-radius: 4px; }
.tcc-msg small { display: block; margin-top: 5px; font-family: var(--tcc-font-mono); font-size: 10px; color: var(--tcc-oyster-dim); }

/* milestones */
.tcc-mile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--tcc-line-soft); }
.tcc-mile:last-child { border-bottom: 0; }
.tcc-mile b { font: 600 15px var(--tcc-font-ui); }
.tcc-mile .tcc-amount { font-family: var(--tcc-font-mono); color: var(--tcc-brass-2); font-size: 15px; }

.tcc-empty { padding: 26px 8px; text-align: center; color: var(--tcc-oyster-dim); font-size: 14px; }
.tcc-mono { font-family: var(--tcc-font-mono); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1024px) {
	.tcc-app { grid-template-columns: 200px 1fr; }
	.tcc-main { padding: 22px 20px 60px; }
}
@media (max-width: 768px) {
	.tcc-app { grid-template-columns: 1fr; }
	.tcc-nav {
		position: sticky; top: 0; z-index: 40; flex-direction: row; align-items: center;
		overflow-x: auto; gap: 6px; padding: 10px 12px;
		border-right: 0; border-bottom: 1px solid var(--tcc-line-soft);
		scrollbar-width: none;
	}
	.tcc-nav::-webkit-scrollbar { display: none; }
	.tcc-nav-brand { border: 0; margin: 0 8px 0 0; padding: 0 8px 0 0; font-size: 15px; white-space: nowrap; }
	.tcc-nav-brand small { display: none; }
	.tcc-nav button { width: auto; white-space: nowrap; padding: 8px 12px; font-size: 13px; }
	.tcc-nav-foot { display: none; }
	.tcc-form-row { grid-template-columns: 1fr; }
	.tcc-msg { max-width: 92%; }
}
@media (max-width: 480px) {
	.tcc-main { padding: 16px 13px 56px; }
	.tcc-card { padding: 16px; border-radius: 18px; }
	.tcc-h1 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
	.tcc-scope *, .tcc-scope *::before, .tcc-scope *::after {
		animation-duration: .01ms !important; animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.tcc-bar > i::after { display: none; }
}

/* ==========================================================================
   v1.1.0-SPECTRE — auth, modals, heatmap, workspace, field registers
   ========================================================================== */

/* --------------------------------------------------------------- avatar */
/* v1.2.0 FIX: an SVG with no intrinsic size fills its container. Without a
   hard default the seat avatar grew to the full sidebar width and shoved the
   nav off screen. Every avatar now carries explicit box dimensions. */
.tcc-scope .tcc-avatar, .tcc-avatar {
	display: inline-block; border-radius: 9px; overflow: hidden;
	flex: 0 0 auto; flex-shrink: 0; line-height: 0; background: var(--tcc-panel-2);
	width: 34px; height: 34px; max-width: 34px; max-height: 34px;
}
.tcc-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; image-rendering: pixelated; }
.tcc-seat .tcc-avatar { width: 36px; height: 36px; max-width: 36px; max-height: 36px; }
.tcc-person .tcc-avatar { width: 40px; height: 40px; max-width: 40px; max-height: 40px; }
.tcc-settings-id .tcc-avatar, .tcc-hero .tcc-avatar { width: 64px; height: 64px; max-width: 64px; max-height: 64px; }
.tcc-avatar svg { width: 100%; height: 100%; display: block; }
.tcc-avatar.is-ring { box-shadow: 0 0 0 2px rgba(201, 163, 106, .45); }
.tcc-avatar.is-anon { opacity: .75; width: 34px; height: 34px; }

/* ------------------------------------------------------ draggable modal */
.tcc-modal-veil {
	/* v1.3.0: 9000 sat under #wpadminbar (99999) and some Impreza sticky
	   layers — staff saw chrome floating over their own modal. */
	position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center;
	background: rgba(4, 4, 3, .72);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	padding: 20px; animation: tcc-fade .18s ease;
}
@keyframes tcc-fade { from { opacity: 0 } to { opacity: 1 } }
.tcc-modal {
	max-width: 94vw; max-height: 88vh; display: flex; flex-direction: column;
	background: var(--tcc-panel); color: var(--tcc-oyster);
	border: 1px solid var(--tcc-line); border-radius: var(--tcc-r);
	box-shadow: 0 32px 90px rgba(0, 0, 0, .7); overflow: hidden;
	font-family: var(--tcc-font-ui);
}
.tcc-modal-head {
	display: flex; align-items: center; gap: 12px; padding: 16px 18px;
	border-bottom: 1px solid var(--tcc-line-soft); cursor: grab;
	background: linear-gradient(180deg, var(--tcc-panel-2), var(--tcc-panel));
	user-select: none;
}
.tcc-modal-head:active { cursor: grabbing; }
.tcc-modal-icon { font-size: 20px; }
.tcc-modal-titles { flex: 1; min-width: 0; }
.tcc-modal-titles b { display: block; font: 600 17px var(--tcc-font-display); }
.tcc-modal-titles small { color: var(--tcc-oyster-dim); font-size: 12.5px; }
.tcc-modal-x {
	appearance: none; background: none; border: 0; cursor: pointer;
	color: var(--tcc-oyster-dim); font-size: 24px; line-height: 1; padding: 0 4px;
}
.tcc-modal-x:hover { color: var(--tcc-oyster); }
.tcc-modal-body { padding: 20px 22px; overflow-y: auto; }
.tcc-modal-foot {
	display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px;
	border-top: 1px solid var(--tcc-line-soft); background: var(--tcc-field-2);
}

/* ------------------------------------------------------------- gate/seat */
.tcc-app-gate { grid-template-columns: 1fr; place-items: center; }
.tcc-gate { max-width: 560px; text-align: center; padding: 8vh 24px; }
.tcc-gate-mark { font-size: 40px; display: block; margin-bottom: 12px; animation: tcc-pulse 2.4s ease-in-out infinite; }
.tcc-gate-actions { display: flex; gap: 10px; justify-content: center; margin: 22px 0 8px; }
.tcc-gate-foot { margin-top: 22px; }

.tcc-seat {
	display: flex; align-items: center; gap: 10px; padding: 10px;
	border: 1px solid var(--tcc-line-soft); border-radius: var(--tcc-r-s);
	background: var(--tcc-panel); margin: 0 0 12px;
}
.tcc-seat-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tcc-seat-who { flex: 1; min-width: 0; }
.tcc-seat-who b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcc-seat-who small { color: var(--tcc-oyster-dim); font-family: var(--tcc-font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.tcc-seat-out {
	appearance: none; background: none; border: 0; cursor: pointer;
	color: var(--tcc-oyster-dim); font-size: 15px; padding: 4px;
}
.tcc-seat-out:hover { color: var(--tcc-brass-2); }
.tcc-btn-sm { padding: 6px 11px; font-size: 12px; }
.tcc-new-btn { width: 100%; margin: 0 0 14px; }
.tcc-nav-icon { display: inline-block; width: 20px; opacity: .75; }
.tcc-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ------------------------------------------------------- typeform steps */
.tcc-stepper { display: flex; flex-direction: column; gap: 14px; }
.tcc-step-rail { display: flex; gap: 4px; }
.tcc-rail-seg { flex: 1; height: 4px; border-radius: 99px; background: var(--tcc-line-soft); transition: background .25s; }
.tcc-rail-seg.is-on { background: linear-gradient(90deg, var(--tcc-brass), var(--tcc-brass-2)); }
.tcc-step-count { font-family: var(--tcc-font-mono); font-size: 10px; letter-spacing: .16em; color: var(--tcc-brass); }
.tcc-step-card { min-height: 190px; }
.tcc-step-q { font: 600 20px var(--tcc-font-display); margin: 0 0 12px; color: var(--tcc-oyster); }
.tcc-step-q em { color: var(--tcc-brass); font-style: normal; }
.tcc-step-field { margin-bottom: 22px; }
.tcc-step-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tcc-auth-switch { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.tcc-auth-switch button {
	appearance: none; background: none; border: 0; cursor: pointer; padding: 0;
	color: var(--tcc-brass-2); font-size: 12.5px; text-decoration: underline;
}
.tcc-review { display: grid; gap: 8px; margin: 8px 0 14px; }
.tcc-review-row { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--tcc-line-soft); font-size: 13.5px; }
.tcc-review-row span { color: var(--tcc-oyster-dim); }

.tcc-chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.tcc-pick {
	appearance: none; cursor: pointer; border-radius: 99px; padding: 8px 14px;
	border: 1px solid var(--tcc-line); background: transparent;
	color: var(--tcc-oyster-dim); font: 500 13px var(--tcc-font-ui);
}
.tcc-pick.is-on { background: rgba(201, 163, 106, .16); border-color: var(--tcc-brass); color: var(--tcc-brass-2); }
.tcc-field { display: grid; gap: 6px; }
.tcc-field-label { font-size: 12.5px; color: var(--tcc-oyster-dim); }
.tcc-form-actions { display: flex; gap: 10px; }

/* ------------------------------------------------------------- heatmap */
.tcc-heat { overflow-x: auto; padding: 4px 0 2px; }
.tcc-heat-grid { display: flex; gap: 3px; min-width: max-content; }
.tcc-heat-col { display: flex; flex-direction: column; gap: 3px; }
.tcc-heat-cell {
	width: 11px; height: 11px; border-radius: 3px; display: block;
	background: rgba(232, 224, 212, .06); cursor: pointer; transition: transform .1s;
}
.tcc-heat-cell:hover { transform: scale(1.35); }
.tcc-heat-cell.lv1 { background: rgba(201, 163, 106, .28); }
.tcc-heat-cell.lv2 { background: rgba(201, 163, 106, .5); }
.tcc-heat-cell.lv3 { background: rgba(201, 163, 106, .74); }
.tcc-heat-cell.lv4 { background: var(--tcc-brass-2); }
.tcc-heat-key { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-family: var(--tcc-font-mono); font-size: 10px; color: var(--tcc-oyster-dim); }
.tcc-heat-key .tcc-heat-cell { cursor: default; }

/* --------------------------------------------------------- stats/cards */
.tcc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 18px; }
.tcc-stat { background: var(--tcc-panel); border: 1px solid var(--tcc-line); border-radius: var(--tcc-r); padding: 16px 18px; }
.tcc-stat-n { display: block; font: 600 25px var(--tcc-font-display); color: var(--tcc-brass-2); word-break: break-all; }
.tcc-stat-l { display: block; margin-top: 4px; font-size: 12px; color: var(--tcc-oyster-dim); }
.tcc-shimmer-text {
	background: linear-gradient(105deg, var(--tcc-brass) 35%, #fff 50%, var(--tcc-brass) 65%);
	background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; animation: tcc-shim 3.2s ease-in-out infinite;
}
@keyframes tcc-shim { 0% { background-position: 120% 0 } 100% { background-position: -120% 0 } }
.tcc-section-h { font: 600 17px var(--tcc-font-display); margin: 24px 0 12px; color: var(--tcc-oyster); }
.tcc-view-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tcc-grid-dim { opacity: .62; }
.tcc-pcard { position: relative; background: var(--tcc-panel); border: 1px solid var(--tcc-line); border-radius: var(--tcc-r); padding: 18px 20px; }
.tcc-pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tcc-pcard-archive { position: absolute; top: 12px; right: 12px; padding: 4px 9px; font-size: 11px; opacity: 0; transition: opacity .15s; }
.tcc-pcard:hover .tcc-pcard-archive { opacity: 1; }

/* -------------------------------------------------------- job workspace */
.tcc-job-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin: 14px 0 10px; }
.tcc-job-metrics { display: flex; gap: 10px; flex-wrap: wrap; }
.tcc-metric { background: var(--tcc-panel-2); border: 1px solid var(--tcc-line); border-radius: var(--tcc-r-s); padding: 10px 16px; min-width: 118px; }
.tcc-metric small { display: block; font-family: var(--tcc-font-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--tcc-oyster-dim); }
.tcc-metric b { font: 600 16px var(--tcc-font-ui); color: var(--tcc-oyster); }

.tcc-stage-split { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.tcc-step { cursor: pointer; border-radius: var(--tcc-r-s); padding: 6px 8px 18px; transition: background .15s; }
.tcc-step:hover { background: rgba(232, 224, 212, .03); }
.tcc-step.is-open { background: rgba(201, 163, 106, .08); }
.tcc-step-count-chip { display: inline-block; margin-top: 5px; font-family: var(--tcc-font-mono); font-size: 10px; color: var(--tcc-brass); font-style: normal; }
.tcc-stage-panel { background: var(--tcc-panel); border: 1px solid var(--tcc-line); border-radius: var(--tcc-r); padding: 20px 22px; }
.tcc-stage-panel h3 { font: 600 19px var(--tcc-font-display); margin: 0 0 14px; }
.tcc-panel-h { font: 600 12px var(--tcc-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tcc-brass); margin: 20px 0 10px; }
.tcc-stage-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.tcc-stage-upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.tcc-stage-upload input[type="file"] { flex: 1; min-width: 180px; font-size: 12.5px; }
.tcc-wand { position: relative; }
.tcc-wand:hover { box-shadow: 0 0 18px rgba(201, 163, 106, .35); }

.tcc-doc { background: var(--tcc-field-2); border: 1px solid var(--tcc-line-soft); border-radius: var(--tcc-r-s); padding: 12px 14px; margin-bottom: 10px; }
.tcc-doc summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.tcc-doc-meta { display: block; font-family: var(--tcc-font-mono); font-size: 10px; color: var(--tcc-oyster-dim); margin-top: 3px; }
.tcc-doc-body { white-space: pre-wrap; font: 400 12.5px var(--tcc-font-mono); color: var(--tcc-oyster-dim); margin: 12px 0; max-height: 420px; overflow-y: auto; line-height: 1.65; }
.tcc-doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.tcc-idea-rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; }
.tcc-idea {
	min-width: 250px; max-width: 280px; scroll-snap-align: start;
	background: linear-gradient(160deg, var(--tcc-panel-2), var(--tcc-field-2));
	border: 1px solid var(--tcc-line); border-radius: var(--tcc-r); padding: 14px 16px;
}
.tcc-idea header { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.tcc-idea-emoji { font-size: 18px; }
.tcc-idea header b { font: 600 14px var(--tcc-font-display); }
.tcc-idea p { font-size: 12.5px; color: var(--tcc-oyster-dim); margin: 0 0 10px; }
.tcc-idea footer { display: flex; justify-content: space-between; font-family: var(--tcc-font-mono); font-size: 10px; color: var(--tcc-brass); }
.tcc-idea-cat { text-transform: uppercase; letter-spacing: .08em; }

.tcc-file-list { margin-top: 4px; }
.tcc-vault-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.tcc-vault-group { margin-bottom: 18px; }
.tcc-kcount { font-family: var(--tcc-font-mono); font-size: 11px; color: var(--tcc-brass); border: 1px solid rgba(201, 163, 106, .3); border-radius: 99px; padding: 2px 8px; }

.tcc-task { display: flex; gap: 16px; justify-content: space-between; background: var(--tcc-panel); border: 1px solid var(--tcc-line); border-radius: var(--tcc-r); padding: 16px 18px; margin-bottom: 12px; }
.tcc-task-main { min-width: 0; flex: 1; }
.tcc-task h4 { margin: 0 0 4px; font: 600 15px var(--tcc-font-display); }
.tcc-task-details { font-size: 13px; color: var(--tcc-oyster-dim); margin: 8px 0 0; }
.tcc-task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.tcc-task-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.tcc-log, .tcc-punch { background: var(--tcc-field-2); border: 1px solid var(--tcc-line-soft); border-radius: var(--tcc-r-s); padding: 13px 15px; margin-bottom: 10px; }
.tcc-log-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.tcc-log p { font-size: 13.5px; margin: 4px 0; }
.tcc-punch { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.tcc-punch p { font-size: 13px; color: var(--tcc-oyster-dim); margin: 4px 0; }
.tcc-punch-side { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; }
.tcc-chip {
	display: inline-flex; align-items: center; gap: 5px; font-family: var(--tcc-font-mono);
	font-size: 10.5px; padding: 4px 9px; border-radius: 99px;
	border: 1px solid var(--tcc-line); color: var(--tcc-oyster-dim); background: var(--tcc-panel-2);
}
.tcc-chip.is-ok { color: var(--tcc-ok); border-color: rgba(127, 185, 138, .4); }

.tcc-people { display: grid; gap: 10px; }
.tcc-person { display: flex; align-items: center; gap: 12px; padding: 11px 13px; background: var(--tcc-field-2); border: 1px solid var(--tcc-line-soft); border-radius: var(--tcc-r-s); }
.tcc-person > div { flex: 1; min-width: 0; }
.tcc-person b { display: block; font-size: 14px; }
.tcc-person small { color: var(--tcc-oyster-dim); font-size: 11.5px; }

.tcc-hist { padding: 10px 4px; border-bottom: 1px solid var(--tcc-line-soft); }
.tcc-hist:last-child { border-bottom: 0; }
.tcc-hist-kind { display: inline-block; font-family: var(--tcc-font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--tcc-brass); margin-right: 8px; }
.tcc-hist b { font-size: 13.5px; font-weight: 500; }
.tcc-hist small { display: block; color: var(--tcc-oyster-dim); font-size: 11.5px; margin-top: 2px; }

.tcc-vlist { margin: 8px 0 0; padding-left: 20px; }
.tcc-vlist li { font-size: 13.5px; color: var(--tcc-oyster-dim); margin-bottom: 7px; }
.tcc-settings-id { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tcc-settings-id b { display: block; font: 600 17px var(--tcc-font-display); }

@media (max-width: 900px) {
	.tcc-stage-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.tcc-modal { width: 100% !important; max-height: 92vh; }
	.tcc-seat { margin: 0 8px 0 0; padding: 6px; border: 0; background: none; }
	.tcc-seat-who, .tcc-seat-out { display: none; }
	.tcc-new-btn { width: auto; margin: 0 6px 0 0; white-space: nowrap; }
	.tcc-nav-icon { display: none; }
	.tcc-job-metrics { width: 100%; }
	.tcc-task { flex-direction: column; }
	.tcc-task-side { align-items: flex-start; }
}

/* ==========================================================================
   v1.2.0-LANTERN — greeting hero, nudge, schedule board, registers
   ========================================================================== */

/* --------------------------------------------------------------- hero */
.tcc-hero { display: flex; gap: 18px; align-items: flex-start; margin: 0 0 6px; }
.tcc-hero-copy { min-width: 0; flex: 1; }
.tcc-hero-salute {
	margin: 0 0 2px; font-family: var(--tcc-font-mono); font-size: 11px;
	letter-spacing: .14em; text-transform: uppercase; color: var(--tcc-brass);
}
.tcc-hero .tcc-h1 { margin-bottom: 6px; }
.tcc-hero-skeleton { opacity: .7; }

.tcc-nudge {
	appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px;
	margin-top: 14px; padding: 12px 18px 12px 14px; text-align: left;
	background: linear-gradient(135deg, rgba(201,163,106,.16), rgba(201,163,106,.05));
	border: 1px solid rgba(201,163,106,.4); border-radius: var(--tcc-r);
	color: var(--tcc-oyster); transition: transform .15s, border-color .15s, box-shadow .15s;
	max-width: 520px;
}
.tcc-nudge:hover { transform: translateY(-2px); border-color: var(--tcc-brass); box-shadow: 0 8px 26px rgba(0,0,0,.4); }
.tcc-nudge-icon {
	display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0;
	border-radius: 50%; background: linear-gradient(135deg, var(--tcc-brass), var(--tcc-brass-2));
	color: #090807; font-weight: 700;
}
.tcc-nudge-copy { min-width: 0; }
.tcc-nudge-copy b { display: block; font: 600 14.5px var(--tcc-font-ui); color: var(--tcc-brass-2); }
.tcc-nudge-copy small { display: block; font-size: 12.5px; color: var(--tcc-oyster-dim); margin-top: 2px; }

/* ---------------------------------------------------- error boundary */
.tcc-boundary { border-color: rgba(217,160,91,.4); }
.tcc-boundary-detail {
	font: 400 12px var(--tcc-font-mono); color: var(--tcc-warn);
	background: var(--tcc-field-2); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); padding: 12px 14px; margin: 12px 0;
	white-space: pre-wrap; word-break: break-word; max-height: 180px; overflow-y: auto;
}

/* ------------------------------------------------------ schedule board */
.tcc-sched-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 16px; flex-wrap: wrap; }
.tcc-sched-nav span { font-size: 12px; color: var(--tcc-oyster-dim); }
.tcc-sched { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 12px; }
.tcc-sched-col { background: var(--tcc-field-2); border: 1px solid var(--tcc-line-soft); border-radius: var(--tcc-r); min-height: 200px; display: flex; flex-direction: column; }
.tcc-sched-head { padding: 11px 13px; border-bottom: 1px solid var(--tcc-line-soft); }
.tcc-sched-head b { font: 600 13px var(--tcc-font-ui); }
.tcc-sched-head small { display: block; font-family: var(--tcc-font-mono); font-size: 10.5px; color: var(--tcc-oyster-dim); }
.tcc-sched-body { padding: 9px; display: flex; flex-direction: column; gap: 8px; }
.tcc-sched-empty { color: var(--tcc-oyster-dim); font-size: 12px; text-align: center; padding: 8px 0; }
.tcc-sched-card {
	position: relative; background: var(--tcc-panel); border: 1px solid var(--tcc-line);
	border-left: 3px solid var(--tcc-brass); border-radius: var(--tcc-r-s); padding: 9px 11px;
}
.tcc-sched-card.kind-equipment { border-left-color: var(--tcc-warn); }
.tcc-sched-card.kind-subcontractor { border-left-color: #8fa8c9; }
.tcc-sched-card b { display: block; font: 600 12.5px var(--tcc-font-ui); }
.tcc-sched-card small { display: block; font-size: 11px; color: var(--tcc-oyster-dim); cursor: pointer; }
.tcc-sched-card small:hover { color: var(--tcc-brass-2); text-decoration: underline; }
.tcc-sched-hours { font-family: var(--tcc-font-mono); font-size: 10px; color: var(--tcc-brass); }
.tcc-sched-x {
	position: absolute; top: 5px; right: 6px; background: none; border: 0; cursor: pointer;
	color: var(--tcc-oyster-dim); font-size: 15px; line-height: 1; padding: 2px; opacity: 0; transition: opacity .15s;
}
.tcc-sched-card:hover .tcc-sched-x { opacity: 1; }
.tcc-sched-x:hover { color: #e0876f; }
.tcc-conflict { border-color: rgba(217,160,91,.45); background: linear-gradient(160deg, rgba(217,160,91,.08), var(--tcc-panel)); }

/* ------------------------------------------------------- registers/misc */
.tcc-tbtns-left { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.tcc-recipe h3 { font-size: 16px; }
.tcc-hookrow { padding: 11px 4px; border-bottom: 1px solid var(--tcc-line-soft); }
.tcc-hookrow:last-child { border-bottom: 0; }
.tcc-hookrow code { color: var(--tcc-brass-2); font-size: 12.5px; margin-right: 8px; }
.tcc-hookrow p { margin: 5px 0 0; }

@media (max-width: 768px) {
	.tcc-hero { gap: 12px; }
	.tcc-hero .tcc-avatar { width: 46px !important; height: 46px !important; max-width: 46px !important; max-height: 46px !important; }
	.tcc-nudge { width: 100%; max-width: none; }
	.tcc-sched { grid-auto-columns: 78vw; }
}

/* ==================================================== v1.3.0 LIGHTHOUSE */

/* ---- intake dropzone (AIPM v6.5.0 grammar, Ciano field palette) ---- */
.tcc-dropwrap { display: flex; flex-direction: column; gap: 10px; }
.tcc-drop {
	position: relative; display: flex; flex-direction: column; align-items: center;
	justify-content: center; gap: 6px; padding: 26px 18px; cursor: pointer;
	background: var(--tcc-field-2); border: 2px dashed var(--tcc-line);
	border-radius: var(--tcc-r); text-align: center; overflow: hidden;
	transition: border-color .25s ease, background .25s ease, transform .15s ease;
}
.tcc-drop:hover, .tcc-drop:focus-visible {
	border-color: var(--tcc-brass); background: var(--tcc-panel); outline: none;
}
.tcc-drop.is-dragover {
	border-color: var(--tcc-brass-2); background: var(--tcc-panel-2);
	transform: scale(1.01);
}
.tcc-drop.is-dragover::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(100deg, rgba(226,200,148,0) 20%, rgba(226,200,148,.14) 50%, rgba(226,200,148,0) 80%);
	background-size: 220% 100%; animation: tcc-drop-shimmer 1.1s linear infinite;
}
@keyframes tcc-drop-shimmer { from { background-position: 180% 0; } to { background-position: -80% 0; } }
.tcc-drop.is-busy { opacity: .6; cursor: progress; }
.tcc-drop-icon { font-size: 26px; line-height: 1; }
.tcc-drop-title { font: 600 15px var(--tcc-font-ui); color: var(--tcc-oyster); }
.tcc-drop-hint { color: var(--tcc-oyster-dim); font-size: 12px; max-width: 420px; }
.tcc-drop-input {
	position: absolute; width: 1px; height: 1px; opacity: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.tcc-drop-list { display: flex; flex-direction: column; gap: 6px; }
.tcc-drop-row {
	display: flex; align-items: center; gap: 10px; padding: 8px 12px;
	background: var(--tcc-field-2); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s);
}
.tcc-drop-row.is-done { border-color: rgba(127, 185, 138, .45); }
.tcc-drop-row.is-err { border-color: rgba(217, 160, 91, .55); }
.tcc-drop-kind { font-size: 16px; }
.tcc-drop-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tcc-drop-meta b {
	font: 500 13px var(--tcc-font-ui); color: var(--tcc-oyster);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tcc-drop-meta small { color: var(--tcc-oyster-dim); font-family: var(--tcc-font-mono); font-size: 11px; }
.tcc-drop-row.is-done small { color: var(--tcc-ok); }
.tcc-drop-row.is-err small { color: var(--tcc-warn); }
.tcc-drop-bar {
	display: block; height: 4px; border-radius: 2px; overflow: hidden;
	background: var(--tcc-panel-2); border: 1px solid var(--tcc-line-soft);
}
.tcc-drop-bar i {
	display: block; height: 100%; border-radius: 2px;
	background: linear-gradient(90deg, var(--tcc-brass), var(--tcc-brass-2));
	transition: width .2s ease;
}
.tcc-drop-x {
	appearance: none; background: none; border: 0; cursor: pointer;
	color: var(--tcc-oyster-dim); font-size: 18px; line-height: 1; padding: 2px 6px;
	border-radius: 8px;
}
.tcc-drop-x:hover { color: var(--tcc-oyster); background: var(--tcc-panel-2); }
.tcc-scope .tcc-refurls, .tcc-refurls { min-height: 72px; font-family: var(--tcc-font-mono); font-size: 12.5px; }

/* ---- fatal recovery card (vanilla DOM — must not depend on React) ---- */
.tcc-fatal {
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	min-height: 60vh; justify-content: center; text-align: center;
	background: var(--tcc-field, #090807); color: var(--tcc-oyster, #e8e0d4);
	border: 1px solid var(--tcc-line, rgba(232,224,212,.14));
	border-radius: var(--tcc-r, 22px); padding: 40px 22px;
	font-family: var(--tcc-font-ui, "IBM Plex Sans", sans-serif);
}
.tcc-fatal-mark { font-size: 40px; animation: tcc-pulse 2.4s ease-in-out infinite; }
.tcc-fatal h2 { font-family: var(--tcc-font-display, Georgia, serif); font-size: 24px; margin: 0; }
.tcc-fatal p { max-width: 460px; color: var(--tcc-oyster-dim, rgba(232,224,212,.62)); margin: 0; line-height: 1.55; }
.tcc-fatal pre {
	max-width: 90%; overflow: auto; font: 11px/1.5 var(--tcc-font-mono, monospace);
	color: var(--tcc-oyster-dim, rgba(232,224,212,.5)); background: var(--tcc-field-2, #100e0c);
	border: 1px solid var(--tcc-line-soft, rgba(232,224,212,.07)); border-radius: 12px;
	padding: 10px 14px; margin: 6px 0 0;
}

/* ---- small screens: dropzone + modal ergonomics ---- */
@media (max-width: 640px) {
	.tcc-drop { padding: 20px 12px; }
	.tcc-drop-hint { font-size: 11px; }
	.tcc-modal-body { padding: 16px 14px; }
	.tcc-modal-foot { padding: 12px 14px; flex-wrap: wrap; }
	.tcc-modal-foot .tcc-btn { flex: 1; }
}

/* ======================================================= v1.4.0 BEACON */

/* ---- search + filter row ---- */
.tcc-search { position: relative; display: flex; align-items: center; flex: 1 1 240px; min-width: 200px; }
.tcc-search > span { position: absolute; left: 12px; color: var(--tcc-oyster-dim); font-size: 15px; pointer-events: none; }
.tcc-search input {
	width: 100%; padding: 10px 34px 10px 32px; background: var(--tcc-field-2);
	border: 1px solid var(--tcc-line-soft); border-radius: var(--tcc-r-s);
	color: var(--tcc-oyster); font: 400 14px var(--tcc-font-ui);
}
.tcc-search input:focus { outline: none; border-color: var(--tcc-brass); }
.tcc-search input::-webkit-search-cancel-button { display: none; }
.tcc-search-x {
	position: absolute; right: 8px; appearance: none; background: none; border: 0;
	color: var(--tcc-oyster-dim); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 8px;
}
.tcc-search-x:hover { color: var(--tcc-oyster); background: var(--tcc-panel-2); }
.tcc-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 6px; }
.tcc-filters select {
	padding: 10px 12px; background: var(--tcc-field-2); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); color: var(--tcc-oyster); font: 400 13px var(--tcc-font-ui);
}
.tcc-count { margin: 4px 0 10px; }
.tcc-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---- chip row (history kinds, task filters) ---- */
.tcc-chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tcc-chiprow button {
	appearance: none; cursor: pointer; padding: 7px 14px; border-radius: 999px;
	background: var(--tcc-field-2); border: 1px solid var(--tcc-line-soft);
	color: var(--tcc-oyster-dim); font: 500 12.5px var(--tcc-font-ui); text-transform: capitalize;
	transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.tcc-chiprow button:hover { color: var(--tcc-oyster); border-color: var(--tcc-line); }
.tcc-chiprow button.is-active { color: var(--tcc-ink); background: linear-gradient(180deg, var(--tcc-brass-2), var(--tcc-brass)); border-color: transparent; }

/* ---- pipeline strip ---- */
.tcc-pipe-bar { display: flex; gap: 3px; height: 10px; margin: 6px 0 14px; }
.tcc-pipe-seg {
	border-radius: 999px; min-width: 10px;
	background: linear-gradient(90deg, var(--tcc-brass), var(--tcc-brass-2));
	opacity: .85; transition: opacity .2s ease;
}
.tcc-pipe-seg:hover { opacity: 1; }
.tcc-pipe-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.tcc-pipe-key {
	appearance: none; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 2px;
	padding: 10px 12px; background: var(--tcc-field-2); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); color: var(--tcc-oyster);
}
.tcc-pipe-key:hover:not(:disabled) { border-color: var(--tcc-brass); }
.tcc-pipe-key:disabled { opacity: .4; cursor: default; }
.tcc-pipe-key b { font: 600 20px var(--tcc-font-display); color: var(--tcc-brass-2); }
.tcc-pipe-key span { font-size: 12px; color: var(--tcc-oyster); }
.tcc-pipe-key small { font-family: var(--tcc-font-mono); font-size: 10.5px; color: var(--tcc-oyster-dim); }

/* ---- chats inbox ---- */
.tcc-inbox { display: flex; flex-direction: column; gap: 10px; }
.tcc-thread {
	display: flex; align-items: center; gap: 14px; cursor: pointer;
	padding: 16px 18px; background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r); transition: border-color .2s ease, transform .15s ease;
}
.tcc-thread:hover { border-color: var(--tcc-brass); transform: translateY(-1px); }
.tcc-thread-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.tcc-thread-top { display: flex; align-items: center; gap: 10px; }
.tcc-thread-top b { font: 600 15px var(--tcc-font-ui); color: var(--tcc-oyster); }
.tcc-thread-prev {
	margin: 0; color: var(--tcc-oyster-dim); font-size: 13.5px; line-height: 1.5;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tcc-thread-go { color: var(--tcc-brass); font-size: 18px; }

/* ---- tasks: grouping + inline complete ---- */
.tcc-taskgroup { margin-bottom: 22px; }
.tcc-taskgroup .tcc-section-h { display: flex; align-items: center; gap: 10px; }
.tcc-linkbtn {
	appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
	color: var(--tcc-oyster); font: inherit; text-align: left;
}
.tcc-linkbtn:hover { color: var(--tcc-brass-2); }
.tcc-task-done { padding: 6px 12px; font-size: 12.5px; white-space: nowrap; }
.tcc-chip-ok { background: rgba(127, 185, 138, .16); color: var(--tcc-ok); border-color: rgba(127, 185, 138, .4); }
.tcc-chip-warn { background: rgba(217, 160, 91, .16); color: var(--tcc-warn); border-color: rgba(217, 160, 91, .4); }
.tcc-chip-soft { background: var(--tcc-field-2); color: var(--tcc-oyster-dim); }

/* ---- customer picker ---- */
.tcc-picker { display: flex; flex-direction: column; gap: 10px; }
.tcc-picker select {
	width: 100%; padding: 11px 12px; background: var(--tcc-field-2);
	border: 1px solid var(--tcc-line-soft); border-radius: var(--tcc-r-s);
	color: var(--tcc-oyster); font: 400 14px var(--tcc-font-ui);
}
.tcc-picker-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tcc-check { display: flex; align-items: center; gap: 10px; color: var(--tcc-oyster-dim); font-size: 13px; cursor: pointer; }
.tcc-check input { width: 16px; height: 16px; accent-color: var(--tcc-brass); }

/* ---- self-test rows ---- */
.tcc-checks { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.tcc-check-row {
	display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; align-items: baseline;
	padding: 10px 12px; background: var(--tcc-field-2); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s);
}
.tcc-check-row.is-good { border-color: rgba(127, 185, 138, .35); }
.tcc-check-row.is-bad { border-color: rgba(217, 160, 91, .55); }
.tcc-check-mark { grid-row: span 2; font: 700 14px var(--tcc-font-mono); color: var(--tcc-oyster-dim); }
.tcc-check-row.is-good .tcc-check-mark { color: var(--tcc-ok); }
.tcc-check-row.is-bad .tcc-check-mark { color: var(--tcc-warn); }
.tcc-check-row b { font: 500 13.5px var(--tcc-font-ui); color: var(--tcc-oyster); }
.tcc-check-row small { grid-column: 2; color: var(--tcc-oyster-dim); font-family: var(--tcc-font-mono); font-size: 11.5px; }
.tcc-mono { font-family: var(--tcc-font-mono); font-size: .9em; color: var(--tcc-brass-2); }

@media (max-width: 640px) {
	.tcc-filters { flex-direction: column; align-items: stretch; }
	.tcc-filters select, .tcc-search { width: 100%; }
	.tcc-thread { padding: 14px; }
	.tcc-task-done { width: 100%; }
	.tcc-pipe-keys { grid-template-columns: repeat(2, 1fr); }
}

/* ======================================================= v1.5.0 HARBOR */

/* ---- reply in place (chats inbox) ---- */
.tcc-thread { align-items: flex-start; }
.tcc-thread-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tcc-btn-sm { padding: 6px 12px; font-size: 12.5px; }
.tcc-reply { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.tcc-reply textarea {
	width: 100%; min-height: 84px; resize: vertical; padding: 11px 12px;
	background: var(--tcc-field-2); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); color: var(--tcc-oyster);
	font: 400 14px/1.55 var(--tcc-font-ui);
}
.tcc-reply textarea:focus { outline: none; border-color: var(--tcc-brass); }
.tcc-reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tcc-reply-actions > div { display: flex; gap: 8px; }

/* ---- saved views ---- */
.tcc-views { margin-top: 4px; }
.tcc-viewchip { display: inline-flex; align-items: stretch; border-radius: 999px; overflow: hidden; border: 1px solid var(--tcc-line-soft); background: var(--tcc-field-2); }
.tcc-viewchip button {
	appearance: none; background: none; border: 0; cursor: pointer; padding: 7px 12px;
	color: var(--tcc-oyster-dim); font: 500 12.5px var(--tcc-font-ui);
}
.tcc-viewchip button:hover { color: var(--tcc-brass-2); }
.tcc-viewchip-x { border-left: 1px solid var(--tcc-line-soft) !important; padding: 7px 10px !important; font-size: 14px !important; }

/* ---- stage vault dropzone ---- */
.tcc-stage-upload { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.tcc-stage-upload .tcc-drop { padding: 18px 14px; }
.tcc-stage-upload .tcc-btn { align-self: flex-start; }

@media (max-width: 640px) {
	.tcc-reply-actions { flex-direction: column; align-items: stretch; }
	.tcc-reply-actions > div { width: 100%; }
	.tcc-reply-actions .tcc-btn { flex: 1; }
	.tcc-stage-upload .tcc-btn { align-self: stretch; }
}

/* ========================================================= v1.6.0 KEEL */

/* The host lives on <html> and carries its own inline styles; these are the
   niceties, not the load-bearing parts — the modal works with zero CSS. */
#tcc-modal-host { color-scheme: dark; }
.tcc-modal-veil { animation: tcc-fade .18s ease; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.tcc-modal-open { overflow: hidden !important; }

/* Inline intake fallback — used when a theme defeats the overlay. */
.tcc-inline-wrap { margin-bottom: 22px; scroll-margin-top: 90px; }
.tcc-inline-intake { border-color: var(--tcc-brass); }
.tcc-inline-intake .tcc-form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.tcc-diag { margin-bottom: 12px; }

/* ==================================================== v1.7.0 SEXTANT */
/* Server-rendered intake modal. Deliberately self-contained: it must look
   right even if every other rule in this file is stripped by an optimiser,
   so it leans on literal values rather than custom properties. */

.tcc-imodal[hidden] { display: none !important; }
.tcc-imodal {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000000;
	display: none; align-items: flex-start; justify-content: center;
	padding: 24px 16px; overflow-y: auto;
	background: rgba(4, 4, 3, .78);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}
html.tcc-imodal-open { overflow: hidden; }

.tcc-imodal-card {
	width: 100%; max-width: 680px; margin: auto;
	background: #14110e; color: #e8e0d4;
	border: 1px solid rgba(232, 224, 212, .14); border-radius: 22px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
	animation: tcc-irise .2s ease;
}
@keyframes tcc-irise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tcc-imodal-head {
	display: flex; align-items: center; gap: 14px;
	padding: 18px 20px; border-bottom: 1px solid rgba(232, 224, 212, .07);
}
.tcc-imodal-icon { font-size: 24px; }
.tcc-imodal-titles { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tcc-imodal-titles b { font: 600 19px/1.2 Fraunces, Georgia, serif; color: #f3ece1; }
.tcc-imodal-titles small { color: rgba(232, 224, 212, .62); font-size: 13px; }
.tcc-imodal-x {
	appearance: none; background: none; border: 0; cursor: pointer;
	color: rgba(232, 224, 212, .62); font-size: 26px; line-height: 1; padding: 2px 8px; border-radius: 10px;
}
.tcc-imodal-x:hover { color: #e8e0d4; background: #1a1613; }

.tcc-imodal-body { padding: 20px; max-height: 68vh; overflow-y: auto; }
.tcc-imodal-foot {
	display: flex; justify-content: flex-end; gap: 10px;
	padding: 16px 20px; border-top: 1px solid rgba(232, 224, 212, .07);
}

.tcc-ifield { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.tcc-ifield > label { font: 500 13px "IBM Plex Sans", sans-serif; color: rgba(232, 224, 212, .8); }
.tcc-irow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tcc-imodal input[type="text"], .tcc-imodal input[type="email"], .tcc-imodal input[type="tel"],
.tcc-imodal select, .tcc-imodal textarea {
	width: 100%; box-sizing: border-box; padding: 11px 12px;
	background: #100e0c; border: 1px solid rgba(232, 224, 212, .12); border-radius: 12px;
	color: #e8e0d4; font: 400 14px "IBM Plex Sans", sans-serif;
}
.tcc-imodal textarea { resize: vertical; min-height: 74px; line-height: 1.55; }
.tcc-imodal .tcc-imono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px; }
.tcc-imodal input:focus, .tcc-imodal select:focus, .tcc-imodal textarea:focus { outline: none; border-color: #c9a36a; }
.tcc-ihint { color: rgba(232, 224, 212, .55); font-size: 12px; margin: 0; }
.tcc-ifoot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tcc-inew-customer { margin-top: 8px; grid-template-columns: 1fr 1fr 1fr; }

.tcc-ibtn {
	appearance: none; cursor: pointer; padding: 11px 20px; border-radius: 999px;
	font: 600 14px "IBM Plex Sans", sans-serif; border: 1px solid rgba(232, 224, 212, .16);
	background: #1a1613; color: #e8e0d4; transition: transform .15s ease, filter .2s ease;
}
.tcc-ibtn:hover:not(:disabled) { transform: translateY(-1px); }
.tcc-ibtn:disabled { opacity: .6; cursor: progress; }
.tcc-ibtn-ghost { background: transparent; }
.tcc-ibtn-brass { background: linear-gradient(180deg, #e2c894, #c9a36a); color: #14110e; border-color: transparent; }

.tcc-idrop {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 6px; padding: 24px 16px; cursor: pointer; text-align: center;
	background: #100e0c; border: 2px dashed rgba(232, 224, 212, .16); border-radius: 22px;
	transition: border-color .25s ease, background .25s ease;
}
.tcc-idrop:hover, .tcc-idrop.is-dragover { border-color: #c9a36a; background: #1a1613; }
.tcc-idrop-icon { font-size: 26px; }
.tcc-idrop b { font: 600 15px "IBM Plex Sans", sans-serif; }
.tcc-idrop small { color: rgba(232, 224, 212, .6); font-size: 12px; max-width: 420px; }
.tcc-idrop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; clip: rect(0 0 0 0); }
.tcc-idrop-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tcc-idrop-row {
	display: flex; align-items: center; gap: 10px; padding: 8px 12px;
	background: #100e0c; border: 1px solid rgba(232, 224, 212, .07); border-radius: 12px;
}
.tcc-idrop-row.is-done { border-color: rgba(127, 185, 138, .45); }
.tcc-idrop-row.is-err { border-color: rgba(217, 160, 91, .55); }
.tcc-idrop-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tcc-idrop-meta b { font: 500 13px "IBM Plex Sans", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcc-idrop-meta small { color: rgba(232, 224, 212, .6); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.tcc-idrop-bar { display: block; height: 4px; border-radius: 2px; background: #1a1613; overflow: hidden; }
.tcc-idrop-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c9a36a, #e2c894); }
.tcc-idrop-x { appearance: none; background: none; border: 0; cursor: pointer; color: rgba(232, 224, 212, .6); font-size: 18px; padding: 2px 6px; }

.tcc-inote { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; }
.tcc-inote.is-ok { background: rgba(127, 185, 138, .12); color: #7fb98a; border: 1px solid rgba(127, 185, 138, .35); }
.tcc-inote.is-bad { background: rgba(217, 160, 91, .12); color: #d9a05b; border: 1px solid rgba(217, 160, 91, .45); }

@media (max-width: 640px) {
	.tcc-irow, .tcc-inew-customer { grid-template-columns: 1fr; }
	.tcc-imodal { padding: 12px 8px; }
	.tcc-imodal-body { max-height: none; }
	.tcc-imodal-foot .tcc-ibtn { flex: 1; }
}

/* ======================================================= v1.8.0 DRYDOCK */

/* ---- guest auth modal ---- */
.tcc-authtabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tcc-authtabs button {
	flex: 1; appearance: none; cursor: pointer; padding: 10px 12px; border-radius: 999px;
	background: #100e0c; border: 1px solid rgba(232, 224, 212, .12);
	color: rgba(232, 224, 212, .62); font: 600 13px "IBM Plex Sans", sans-serif;
}
.tcc-authtabs button.is-active { background: linear-gradient(180deg, #e2c894, #c9a36a); color: #14110e; border-color: transparent; }
.tcc-icheck { display: flex; align-items: center; gap: 10px; color: rgba(232, 224, 212, .7); font-size: 13px; cursor: pointer; margin-bottom: 12px; }
.tcc-icheck input { width: 16px; height: 16px; accent-color: #c9a36a; }
.tcc-ilink {
	appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
	color: #c9a36a; font: 500 13px "IBM Plex Sans", sans-serif; text-decoration: underline;
}
.tcc-ilink:hover { color: #e2c894; }

/* ---- dispatch ---- */
.tcc-dispatch { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.tcc-dispatch-map { position: relative; }
.tcc-map { height: 560px; border-radius: var(--tcc-r); border: 1px solid var(--tcc-line-soft); overflow: hidden; background: var(--tcc-panel); }
.tcc-map-wait { height: 560px; display: grid; place-items: center; border-radius: var(--tcc-r); border: 1px solid var(--tcc-line-soft); background: var(--tcc-panel); }
.tcc-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.tcc-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--tcc-oyster-dim); }
.tcc-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tcc-dispatch-side { display: flex; flex-direction: column; gap: 12px; }
.tcc-run { background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft); border-radius: var(--tcc-r); padding: 14px; }
.tcc-run-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tcc-run-stop {
	display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
	background: var(--tcc-field-2); border: 1px solid var(--tcc-line-soft); border-radius: var(--tcc-r-s);
	padding: 9px 11px; margin-top: 6px; color: var(--tcc-oyster);
}
.tcc-run-stop:hover { border-color: var(--tcc-brass); }
.tcc-run-num {
	width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none;
	background: var(--tcc-brass); color: var(--tcc-ink); font: 700 11px var(--tcc-font-mono);
}
.tcc-run-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tcc-run-main b { font: 500 13px var(--tcc-font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcc-run-main small { color: var(--tcc-oyster-dim); font-size: 11px; }
.tcc-run-hrs { font-family: var(--tcc-font-mono); font-size: 11px; color: var(--tcc-brass-2); }
.tcc-unmapped { border-left: 2px solid var(--tcc-warn); padding-left: 10px; }
.tcc-dispatch .leaflet-popup-content-wrapper, .tcc-dispatch .leaflet-popup-tip { background: #14110e; color: #e8e0d4; border: 1px solid rgba(232,224,212,.14); }
.tcc-dispatch .leaflet-popup-content-wrapper { border-radius: 16px; }

/* ---- feed ---- */
.tcc-feedday { margin-bottom: 20px; }
.tcc-post {
	display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
	background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft); border-radius: var(--tcc-r);
	padding: 14px 16px; margin-bottom: 8px; transition: border-color .2s ease, transform .15s ease;
}
.tcc-post:hover { border-color: var(--tcc-brass); transform: translateY(-1px); }
.tcc-post-mark {
	width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center;
	background: linear-gradient(180deg, var(--tcc-brass-2), var(--tcc-brass)); color: var(--tcc-ink);
	font: 700 14px var(--tcc-font-display);
}
.tcc-post-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tcc-post-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tcc-post-top b { font: 600 14px var(--tcc-font-ui); }
.tcc-post-body { margin: 0; color: var(--tcc-oyster); font-size: 13.5px; line-height: 1.5; }

/* ---- knowledge base ---- */
.tcc-kb { display: flex; flex-direction: column; gap: 8px; }
.tcc-kb-card { background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft); border-radius: var(--tcc-r); overflow: hidden; }
.tcc-kb-card.is-open { border-color: var(--tcc-brass); }
.tcc-kb-q {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	appearance: none; background: none; border: 0; cursor: pointer; padding: 16px 18px;
	color: var(--tcc-oyster); font: 600 15px var(--tcc-font-ui); text-align: left;
}
.tcc-kb-q span { color: var(--tcc-brass); font-size: 20px; line-height: 1; }
.tcc-kb-a { padding: 0 18px 16px; }
.tcc-kb-a p { margin: 0 0 10px; color: var(--tcc-oyster-dim); line-height: 1.6; font-size: 14px; }
.tcc-kb-tags { display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 900px) {
	.tcc-dispatch { grid-template-columns: 1fr; }
	.tcc-map, .tcc-map-wait { height: 380px; }
}

/* ==================================================================== *
 * v1.9.0-LIGHTHOUSE — project Dashboard, 3D media rings, checkpoints,
 * task thumbs and the Hermes panel.
 *
 * Everything below still nests under .tcc-scope, so an Impreza page that
 * happens to use .tcc-dash somewhere else is untouched. The 22px kanban
 * radius and the brass/oyster pairing carry through unchanged — this is a
 * new surface in an existing house, not a new house.
 * ==================================================================== */

/* ------------------------------------------------------------- dashboard */
.tcc-scope .tcc-dash { display: grid; gap: 22px; }

.tcc-scope .tcc-dash-hero {
	display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px;
	background: linear-gradient(135deg, var(--tcc-panel), var(--tcc-field-2));
	border: 1px solid var(--tcc-line); border-radius: var(--tcc-r);
	padding: 26px; position: relative; overflow: hidden;
}
/* Slow brass sweep — one pass every 9s, and off entirely under
   prefers-reduced-motion further down. */
.tcc-scope .tcc-dash-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, transparent 38%, rgba(201, 163, 106, 0.09) 50%, transparent 62%);
	background-size: 260% 100%; animation: tcc-sheen 9s linear infinite;
}
@keyframes tcc-sheen { 0% { background-position: 180% 0; } 100% { background-position: -80% 0; } }

.tcc-scope .tcc-dash-eyebrow {
	font-family: var(--tcc-font-mono); font-size: 11px; letter-spacing: .16em;
	text-transform: uppercase; color: var(--tcc-brass);
}
.tcc-scope .tcc-dash-title {
	font-family: var(--tcc-font-display); font-size: 30px; line-height: 1.15;
	margin: 8px 0 6px; color: var(--tcc-oyster);
}
.tcc-scope .tcc-dash-desc { color: var(--tcc-oyster-dim); margin: 0 0 16px; max-width: 54ch; }

.tcc-scope .tcc-dash-progress-bar {
	height: 8px; border-radius: 99px; background: rgba(232, 224, 212, 0.08);
	overflow: hidden; margin-bottom: 6px;
}
.tcc-scope .tcc-dash-progress-bar span {
	display: block; height: 100%; border-radius: 99px;
	background: linear-gradient(90deg, var(--tcc-brass), var(--tcc-brass-2));
	transition: width 600ms cubic-bezier(.22,.8,.26,1);
}
.tcc-scope .tcc-dash-progress small { color: var(--tcc-oyster-dim); font-size: 12px; }

.tcc-scope .tcc-dash-next {
	background: rgba(9, 8, 7, 0.55); border: 1px solid var(--tcc-line);
	border-radius: var(--tcc-r-s); padding: 18px; align-self: start;
	position: relative; z-index: 1;
}
.tcc-scope .tcc-dash-next-tag {
	display: block; font-family: var(--tcc-font-mono); font-size: 10px;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--tcc-oyster-dim); margin-bottom: 8px;
}
.tcc-scope .tcc-dash-next b { display: block; font-size: 16px; margin-bottom: 6px; }
.tcc-scope .tcc-dash-next p { color: var(--tcc-oyster-dim); font-size: 14px; margin: 0 0 10px; }

/* ------------------------------------------------------------ stat tiles */
.tcc-scope .tcc-dash-cards {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.tcc-scope .tcc-dash-card {
	background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); padding: 18px;
	transition: border-color 200ms ease, transform 200ms ease;
}
.tcc-scope .tcc-dash-card:hover { border-color: var(--tcc-line); transform: translateY(-2px); }
.tcc-scope .tcc-dash-card-icon { font-size: 22px; display: block; margin-bottom: 8px; }
.tcc-scope .tcc-dash-card b {
	font-family: var(--tcc-font-display); font-size: 26px; display: block; line-height: 1;
}
.tcc-scope .tcc-dash-card-label { display: block; font-size: 14px; margin: 4px 0 2px; }
.tcc-scope .tcc-dash-card small { color: var(--tcc-oyster-dim); font-size: 12px; }

/* ---------------------------------------------------------- the insight */
.tcc-scope .tcc-dash-insight,
.tcc-scope .tcc-stage-insight {
	background: var(--tcc-panel-2); border: 1px solid var(--tcc-line-soft);
	border-left: 3px solid var(--tcc-brass);
	border-radius: var(--tcc-r-s); padding: 18px 20px;
}
.tcc-scope .tcc-dash-insight-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tcc-scope .tcc-dash-insight p,
.tcc-scope .tcc-stage-insight p { margin: 8px 0; color: var(--tcc-oyster); }
.tcc-scope .tcc-stage-insight { margin: 14px 0; }

/* ----------------------------------------------------- spine + detail */
.tcc-scope .tcc-dash-split {
	display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start;
}
.tcc-scope .tcc-dash-spine,
.tcc-scope .tcc-dash-detail {
	background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r); padding: 20px;
}
.tcc-scope .tcc-dash-detail-h {
	font-family: var(--tcc-font-display); font-size: 21px; margin: 0 0 4px;
}

.tcc-scope .tcc-spine { list-style: none; margin: 10px 0 0; padding: 0; }
.tcc-scope .tcc-spine-step { position: relative; }
/* The connector line — drawn on the step, not between steps, so it never
   dangles past the last item. */
.tcc-scope .tcc-spine-step:not(:last-child)::before {
	content: ""; position: absolute; left: 17px; top: 34px; bottom: -4px;
	width: 2px; background: var(--tcc-line-soft);
}
.tcc-scope .tcc-spine-step.is-done::before { background: rgba(127, 185, 138, 0.4); }

.tcc-scope .tcc-spine-hit {
	display: flex; gap: 12px; align-items: flex-start; width: 100%;
	background: none; border: 0; padding: 6px 4px 14px; cursor: pointer;
	text-align: left; color: inherit; font: inherit;
}
.tcc-scope .tcc-spine-dot {
	flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
	display: grid; place-items: center; font-size: 13px; font-weight: 700;
	background: rgba(232, 224, 212, 0.07); color: var(--tcc-oyster-dim);
	border: 1px solid var(--tcc-line-soft); position: relative; z-index: 1;
}
.tcc-scope .tcc-spine-step.is-done .tcc-spine-dot {
	background: rgba(127, 185, 138, 0.16); color: var(--tcc-ok); border-color: rgba(127, 185, 138, 0.35);
}
.tcc-scope .tcc-spine-step.is-current .tcc-spine-dot {
	background: var(--tcc-brass); color: #120f0b; border-color: var(--tcc-brass-2);
	box-shadow: 0 0 0 4px rgba(201, 163, 106, 0.15);
}
.tcc-scope .tcc-spine-body { flex: 1 1 auto; min-width: 0; }
.tcc-scope .tcc-spine-body b { display: block; font-size: 15px; }
.tcc-scope .tcc-spine-now {
	display: inline-block; margin-top: 4px; font-style: normal; font-size: 11px;
	padding: 2px 9px; border-radius: 99px;
	background: rgba(201, 163, 106, 0.16); color: var(--tcc-brass-2);
}
.tcc-scope .tcc-spine-count,
.tcc-scope .tcc-spine-intent {
	display: block; color: var(--tcc-oyster-dim); font-size: 12px; margin-top: 3px;
}
.tcc-scope .tcc-spine-caret { color: var(--tcc-oyster-dim); font-size: 18px; line-height: 1; }
.tcc-scope .tcc-spine-step.is-open .tcc-spine-hit { background: rgba(232, 224, 212, 0.03); border-radius: var(--tcc-r-s); }

/* ------------------------------------------------------- phase + tasks */
.tcc-scope .tcc-phase-intent {
	background: rgba(9, 8, 7, 0.4); border-radius: var(--tcc-r-s);
	padding: 12px 16px; margin: 12px 0;
}
.tcc-scope .tcc-phase-intent b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--tcc-brass); }
.tcc-scope .tcc-phase-intent p { margin: 4px 0 0; color: var(--tcc-oyster-dim); font-size: 14px; }

.tcc-scope .tcc-dtasks { display: grid; gap: 12px; margin: 14px 0; }
.tcc-scope .tcc-dtask {
	display: flex; gap: 14px; align-items: flex-start;
	background: var(--tcc-panel-2); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); padding: 16px;
	transition: border-color 200ms ease, opacity 200ms ease;
}
.tcc-scope .tcc-dtask:hover { border-color: var(--tcc-line); }
.tcc-scope .tcc-dtask.is-done { opacity: .68; }
.tcc-scope .tcc-dtask.is-down { border-color: rgba(217, 160, 91, 0.4); }
.tcc-scope .tcc-dtask-main { flex: 1 1 auto; min-width: 0; }
.tcc-scope .tcc-dtask h5 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.tcc-scope .tcc-dtask p { margin: 0 0 10px; font-size: 14px; color: var(--tcc-oyster-dim); }
.tcc-scope .tcc-dtask-meta { display: flex; flex-wrap: wrap; gap: 6px; }

.tcc-scope .tcc-dtask-vote { display: flex; flex-direction: column; gap: 6px; }
.tcc-scope .tcc-thumb {
	width: 38px; height: 38px; border-radius: var(--tcc-r-s);
	background: rgba(232, 224, 212, 0.05); border: 1px solid var(--tcc-line-soft);
	font-size: 17px; cursor: pointer; line-height: 1;
	transition: transform 140ms ease, background 160ms ease, border-color 160ms ease;
}
.tcc-scope .tcc-thumb:hover:not(:disabled) { transform: scale(1.08); border-color: var(--tcc-line); }
.tcc-scope .tcc-thumb:disabled { opacity: .4; cursor: not-allowed; }
.tcc-scope .tcc-thumb.is-on { background: rgba(127, 185, 138, 0.2); border-color: rgba(127, 185, 138, 0.45); }
.tcc-scope .tcc-thumb.is-down.is-on { background: rgba(217, 160, 91, 0.2); border-color: rgba(217, 160, 91, 0.45); }

.tcc-scope .tcc-reroll-ask { margin-top: 10px; }
.tcc-scope .tcc-reroll-ask textarea {
	width: 100%; min-height: 68px; margin-top: 6px; padding: 10px 12px;
	background: var(--tcc-field); color: var(--tcc-oyster);
	border: 1px solid var(--tcc-line); border-radius: var(--tcc-r-s);
	font: inherit; font-size: 14px; resize: vertical;
}
.tcc-scope .tcc-reroll-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.tcc-scope .tcc-phase-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0; }

/* ----------------------------------------------------------- checkpoints */
.tcc-scope .tcc-checks { display: grid; gap: 8px; }
.tcc-scope .tcc-checks-inline { margin: 16px 0; }
.tcc-scope .tcc-check {
	display: flex; gap: 12px; align-items: center;
	padding: 10px 12px; border-radius: var(--tcc-r-s);
	background: rgba(232, 224, 212, 0.03);
}
.tcc-scope .tcc-check.is-done { background: rgba(127, 185, 138, 0.08); }
.tcc-scope .tcc-check-box {
	flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
	background: transparent; border: 1.5px solid var(--tcc-line);
	color: var(--tcc-ok); font-size: 14px; font-weight: 700;
	cursor: pointer; display: grid; place-items: center; line-height: 1;
}
.tcc-scope .tcc-check-box.is-static { cursor: default; border-color: rgba(127, 185, 138, 0.5); }
.tcc-scope .tcc-check.is-done .tcc-check-box { border-color: rgba(127, 185, 138, 0.6); background: rgba(127, 185, 138, 0.14); }
.tcc-scope .tcc-check-body b { display: block; font-size: 14px; font-weight: 500; }
.tcc-scope .tcc-check-body small { color: var(--tcc-oyster-dim); font-size: 12px; }

/* -------------------------------------------------------- hermes panel */
.tcc-scope .tcc-dash-bottom { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: start; }
.tcc-scope .tcc-hermes-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.tcc-scope .tcc-hermes-log {
	max-height: 340px; overflow-y: auto; display: grid; gap: 14px;
	padding-right: 4px; margin-bottom: 12px;
}
.tcc-scope .tcc-hermes-turn { display: grid; gap: 6px; }
.tcc-scope .tcc-hermes-q {
	justify-self: end; max-width: 82%; padding: 9px 14px;
	background: var(--tcc-brass); color: #120f0b;
	border-radius: 16px 16px 4px 16px; font-size: 14px;
}
.tcc-scope .tcc-hermes-a {
	max-width: 92%; padding: 12px 15px; white-space: pre-wrap;
	background: var(--tcc-panel-2); border: 1px solid var(--tcc-line-soft);
	border-radius: 16px 16px 16px 4px; font-size: 14px; line-height: 1.6;
}
.tcc-scope .tcc-hermes-prov { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tcc-scope .tcc-hermes-form { display: flex; gap: 8px; }
.tcc-scope .tcc-hermes-form input {
	flex: 1 1 auto; padding: 11px 14px; background: var(--tcc-field);
	color: var(--tcc-oyster); border: 1px solid var(--tcc-line);
	border-radius: var(--tcc-r-s); font: inherit; font-size: 14px;
}
.tcc-scope .tcc-shimmer-line {
	display: block; height: 13px; width: 62%; border-radius: 6px;
	background: linear-gradient(90deg, rgba(232,224,212,0.05), rgba(232,224,212,0.16), rgba(232,224,212,0.05));
	background-size: 900px 100%; animation: tcc-shimmer 1.5s linear infinite;
}
@keyframes tcc-shimmer { 0% { background-position: -450px 0; } 100% { background-position: 450px 0; } }

/* ============================================================ 3D ring */
.tcc-scope .tcc-stage-rails { display: grid; gap: 26px; margin: 20px 0; }
.tcc-scope .tcc-ring-wrap { margin: 6px 0; }
.tcc-scope .tcc-ring-head { margin-bottom: 6px; }

.tcc-scope .tcc-ring-stage {
	position: relative; perspective: 1400px; width: 100%;
	user-select: none; cursor: grab; outline: none;
}
.tcc-scope .tcc-ring-stage:active { cursor: grabbing; }
.tcc-scope .tcc-ring-stage:focus-visible { outline: 2px solid var(--tcc-brass); outline-offset: 6px; border-radius: var(--tcc-r); }

.tcc-scope .tcc-ring {
	position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform;
}
.tcc-scope .tcc-ring-slot { position: absolute; left: 50%; top: 50%; }

.tcc-scope .tcc-ring-card {
	width: 100%; height: 100%; display: flex; flex-direction: column;
	background: var(--tcc-panel); border: 1px solid var(--tcc-line);
	border-radius: var(--tcc-r); overflow: hidden;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
	transition: border-color 200ms ease;
}
.tcc-scope .tcc-ring-card.is-front { cursor: pointer; border-color: rgba(201, 163, 106, 0.5); }
.tcc-scope .tcc-ring-card.is-front:hover { border-color: var(--tcc-brass); }
.tcc-scope .tcc-ring-card.is-internal { border-style: dashed; }

.tcc-scope .tcc-ring-media { position: relative; flex: 1 1 auto; overflow: hidden; background: var(--tcc-field-2); }
.tcc-scope .tcc-ring-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcc-scope .tcc-ring-doc {
	width: 100%; height: 100%; display: grid; place-content: center; gap: 8px; justify-items: center;
}
.tcc-scope .tcc-ring-glyph { font-size: 46px; line-height: 1; }
.tcc-scope .tcc-ring-ext {
	font-family: var(--tcc-font-mono); font-size: 11px; letter-spacing: .14em;
	color: var(--tcc-oyster-dim);
}
.tcc-scope .tcc-ring-flag {
	position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 99px;
	background: rgba(217, 160, 91, 0.9); color: #120f0b;
	font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
}
.tcc-scope .tcc-ring-meta { padding: 12px 14px; border-top: 1px solid var(--tcc-line-soft); }
.tcc-scope .tcc-ring-meta b {
	display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tcc-scope .tcc-ring-meta small { display: block; color: var(--tcc-oyster-dim); font-size: 11px; }
.tcc-scope .tcc-ring-sha { font-family: var(--tcc-font-mono); opacity: .7; }

.tcc-scope .tcc-ring-btn {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 40;
	width: 46px; height: 46px; border-radius: 50%;
	background: rgba(9, 8, 7, 0.86); border: 1px solid var(--tcc-line);
	color: var(--tcc-oyster); font-size: 24px; line-height: 1; cursor: pointer;
	transition: background 160ms ease, transform 160ms ease;
}
.tcc-scope .tcc-ring-btn:hover { background: var(--tcc-brass); color: #120f0b; transform: translateY(-50%) scale(1.06); }
.tcc-scope .tcc-ring-btn.is-prev { left: 2px; }
.tcc-scope .tcc-ring-btn.is-next { right: 2px; }

.tcc-scope .tcc-ring-foot {
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px; margin-top: 14px; flex-wrap: wrap;
}
.tcc-scope .tcc-ring-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.tcc-scope .tcc-ring-dots button {
	width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
	background: rgba(232, 224, 212, 0.22); border: 0; transition: all 180ms ease;
}
.tcc-scope .tcc-ring-dots button.is-on { background: var(--tcc-brass); width: 24px; border-radius: 99px; }

/* Flat rail — reduced motion, or a single file. */
.tcc-scope .tcc-rail-strip {
	display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px;
	scroll-snap-type: x mandatory;
}
.tcc-scope .tcc-rail-cell { flex: 0 0 auto; height: 300px; scroll-snap-align: start; }

/* ------------------------------------------------------------ lightbox */
.tcc-scope .tcc-lightbox,
.tcc-lightbox {
	position: fixed; inset: 0; z-index: 999999;
	background: rgba(5, 4, 4, 0.93); backdrop-filter: blur(6px);
	display: grid; place-items: center; padding: 3vh 3vw;
}
.tcc-lightbox-inner {
	width: min(1180px, 96vw); max-height: 94vh; display: flex; flex-direction: column;
	background: var(--tcc-panel, #14110e); color: var(--tcc-oyster, #e8e0d4);
	border: 1px solid rgba(232, 224, 212, 0.14); border-radius: 22px; overflow: hidden;
	font-family: var(--tcc-font-ui, sans-serif);
}
.tcc-lightbox-head {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 16px 20px; border-bottom: 1px solid rgba(232, 224, 212, 0.1);
}
.tcc-lightbox-head b { display: block; font-size: 15px; }
.tcc-lightbox-head small { display: block; opacity: .62; font-size: 12px; }
.tcc-lightbox-tools { display: flex; align-items: center; gap: 10px; }
.tcc-lightbox-x {
	width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 22px;
	background: rgba(232, 224, 212, 0.07); border: 1px solid rgba(232, 224, 212, 0.14);
	color: inherit; line-height: 1;
}
.tcc-lightbox-stage {
	position: relative; flex: 1 1 auto; min-height: 0;
	display: grid; place-items: center; padding: 20px; overflow: auto;
}
.tcc-lightbox-stage img { max-width: 100%; max-height: 74vh; border-radius: 12px; display: block; }
.tcc-lightbox-doc { text-align: center; display: grid; gap: 12px; justify-items: center; max-width: 46ch; }
.tcc-lightbox-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 50px; height: 50px; border-radius: 50%; font-size: 28px; cursor: pointer;
	background: rgba(9, 8, 7, 0.8); border: 1px solid rgba(232, 224, 212, 0.14);
	color: inherit; line-height: 1;
}
.tcc-lightbox-nav.is-prev { left: 12px; }
.tcc-lightbox-nav.is-next { right: 12px; }
.tcc-lightbox-foot { padding: 12px 20px; border-top: 1px solid rgba(232, 224, 212, 0.1); text-align: center; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
	.tcc-scope .tcc-dash-split { grid-template-columns: 1fr; }
	.tcc-scope .tcc-dash-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.tcc-scope .tcc-dash-hero { grid-template-columns: 1fr; padding: 20px; }
	.tcc-scope .tcc-dash-title { font-size: 25px; }
	.tcc-scope .tcc-dash-cards { grid-template-columns: 1fr; }
	.tcc-scope .tcc-ring-btn { width: 40px; height: 40px; font-size: 20px; }
	.tcc-scope .tcc-hermes-q { max-width: 92%; }
}
@media (max-width: 560px) {
	.tcc-scope .tcc-dash-spine,
	.tcc-scope .tcc-dash-detail { padding: 16px; }
	.tcc-scope .tcc-dtask { flex-direction: column; }
	.tcc-scope .tcc-dtask-vote { flex-direction: row; align-self: flex-end; }
	.tcc-lightbox-inner { border-radius: 16px; }
	.tcc-lightbox-stage { padding: 10px; }
}

/* Motion is a preference, not a decoration. Honour it. */
@media (prefers-reduced-motion: reduce) {
	.tcc-scope .tcc-dash-hero::after { animation: none; }
	.tcc-scope .tcc-shimmer-line { animation: none; background: rgba(232, 224, 212, 0.1); }
	.tcc-scope .tcc-ring { transition: none !important; }
	.tcc-scope .tcc-dash-card:hover,
	.tcc-scope .tcc-thumb:hover:not(:disabled) { transform: none; }
	.tcc-scope .tcc-dash-progress-bar span { transition: none; }
}

/* ==================================================================== *
 * v1.10.0-KEYSTONE — flipbook, lead form, BOQ, stage journal,
 * next-action buttons and the live job header.
 * ==================================================================== */

/* ---------------------------------------------------------- flipbook */
.tcc-fb-inner { width: min(1120px, 96vw); }
.tcc-fb-title b { display: block; font-size: 15px; }
.tcc-fb-title small { display: block; opacity: .62; font-size: 12px; }

.tcc-fb-zoom {
	display: flex; align-items: center; gap: 8px; padding: 4px 10px;
	border: 1px solid rgba(232,224,212,.14); border-radius: 99px;
	font-family: var(--tcc-font-mono, monospace); font-size: 12px;
}
.tcc-fb-zoom button {
	width: 24px; height: 24px; border-radius: 50%; cursor: pointer; line-height: 1;
	background: rgba(232,224,212,.07); border: 0; color: inherit; font-size: 15px;
}

.tcc-fb-warn {
	margin: 0; padding: 10px 20px; font-size: 13px;
	background: rgba(217,160,91,.12); color: #d9a05b;
	border-bottom: 1px solid rgba(232,224,212,.1);
}

.tcc-fb-stage {
	position: relative; flex: 1 1 auto; min-height: 0; overflow: auto;
	display: grid; place-items: start center; padding: 24px 70px;
	background: #0b0a09; perspective: 2200px;
}

/* The page turn. Origin on the spine so it reads as paper, not a slide. */
.tcc-fb-sheet {
	transform-origin: left center; transform-style: preserve-3d;
	will-change: transform, opacity;
}
.tcc-fb-sheet.is-fwd { animation: tcc-turn-fwd 460ms cubic-bezier(.3,.7,.3,1); }
.tcc-fb-sheet.is-back { animation: tcc-turn-back 460ms cubic-bezier(.3,.7,.3,1); }
@keyframes tcc-turn-fwd {
	0% { transform: rotateY(0deg); opacity: 1; }
	45% { transform: rotateY(-26deg); opacity: .55; }
	100% { transform: rotateY(0deg); opacity: 1; }
}
@keyframes tcc-turn-back {
	0% { transform: rotateY(0deg); opacity: 1; }
	45% { transform: rotateY(26deg); opacity: .55; }
	100% { transform: rotateY(0deg); opacity: 1; }
}

.tcc-fb-canvas {
	display: block; border-radius: 6px; box-shadow: 0 22px 60px rgba(0,0,0,.6);
	background: #fff;
}
.tcc-fb-image { max-width: 100%; max-height: 76vh; border-radius: 10px; display: block; }

/* A readable page — light paper, dark ink. A construction document is read,
   not admired, and 900 words of oyster-on-charcoal is a headache. */
.tcc-fb-page {
	background: #f7f4ef; color: #1a1714; border-radius: 8px;
	padding: 46px 52px; min-height: 62vh;
	box-shadow: 0 22px 60px rgba(0,0,0,.55);
	font-family: var(--tcc-font-ui, sans-serif); line-height: 1.68;
}
.tcc-fb-page h1, .tcc-fb-page h2, .tcc-fb-page h3,
.tcc-fb-page h4, .tcc-fb-page h5, .tcc-fb-page h6 {
	font-family: var(--tcc-font-display, Georgia, serif);
	color: #0f0d0b; margin: 1.4em 0 .5em; line-height: 1.25;
}
.tcc-fb-page h1 { font-size: 1.75em; margin-top: 0; }
.tcc-fb-page h2 { font-size: 1.4em; }
.tcc-fb-page h3 { font-size: 1.18em; }
.tcc-fb-page p { margin: 0 0 1em; }
.tcc-fb-page ul, .tcc-fb-page ol { margin: 0 0 1em 1.3em; }
.tcc-fb-page li { margin-bottom: .38em; }
.tcc-fb-page hr { border: 0; border-top: 1px solid rgba(0,0,0,.14); margin: 1.6em 0; }
.tcc-fb-page blockquote {
	margin: 0 0 1em; padding: .5em 1em; border-left: 3px solid #c9a36a;
	background: rgba(201,163,106,.1); font-style: italic;
}
.tcc-fb-page code {
	background: rgba(0,0,0,.07); padding: .12em .4em; border-radius: 4px;
	font-family: var(--tcc-font-mono, monospace); font-size: .88em;
}
.tcc-fb-page pre {
	background: #14110e; color: #e8e0d4; padding: 14px 16px; border-radius: 8px;
	overflow-x: auto; font-size: .84em;
}
.tcc-fb-page pre code { background: none; padding: 0; }
.tcc-fb-page table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .9em; }
.tcc-fb-page th, .tcc-fb-page td { border: 1px solid rgba(0,0,0,.14); padding: 8px 10px; text-align: left; }
.tcc-fb-page th { background: rgba(0,0,0,.05); font-weight: 600; }
.tcc-fb-page a { color: #8a6a2f; }

.tcc-fb-nopreview { text-align: center; display: grid; gap: 12px; justify-items: center; max-width: 44ch; padding: 40px 0; }
.tcc-fb-fail { color: var(--tcc-warn, #d9a05b); padding: 40px; text-align: center; }
.tcc-fb-foot { display: grid; gap: 8px; justify-items: center; }
.tcc-fb-slider { width: min(460px, 80%); accent-color: var(--tcc-brass, #c9a36a); }

.tcc-scope .tcc-ring-read {
	position: absolute; bottom: 10px; right: 10px; padding: 4px 11px; border-radius: 99px;
	background: var(--tcc-brass); color: #120f0b; font-size: 11px; font-weight: 700;
}

/* ------------------------------------------------------- next actions */
.tcc-scope .tcc-acts { display: grid; gap: 8px; margin-top: 14px; }
.tcc-scope .tcc-act {
	display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer;
	padding: 12px 14px; text-align: left; font: inherit; color: inherit;
	background: rgba(232,224,212,.04); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); transition: border-color 160ms ease, transform 160ms ease;
}
.tcc-scope .tcc-act:hover:not(:disabled) { border-color: var(--tcc-brass); transform: translateX(3px); }
.tcc-scope .tcc-act.is-gate { border-left: 3px solid var(--tcc-warn); }
.tcc-scope .tcc-act.is-advance { border-left: 3px solid var(--tcc-brass); }
.tcc-scope .tcc-act.is-work { border-left: 3px solid var(--tcc-ok); }
.tcc-scope .tcc-act.is-blocked { opacity: .55; }
.tcc-scope .tcc-act-icon { font-size: 18px; line-height: 1; }
.tcc-scope .tcc-act-body { flex: 1 1 auto; min-width: 0; }
.tcc-scope .tcc-act-body b { display: block; font-size: 14px; }
.tcc-scope .tcc-act-body small { color: var(--tcc-oyster-dim); font-size: 12px; }
.tcc-scope .tcc-act-go { color: var(--tcc-brass); font-size: 16px; }

.tcc-scope .tcc-dash-advance { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }

/* Flash target for a "take me there" jump. */
.tcc-scope .is-flash { animation: tcc-flash 1.4s ease; }
@keyframes tcc-flash {
	0%, 100% { box-shadow: none; }
	20% { box-shadow: 0 0 0 3px rgba(201,163,106,.55); }
}

/* -------------------------------------------------- header metrics */
.tcc-scope .tcc-dash-metrics {
	display: flex; flex-wrap: wrap; gap: 10px; padding: 0; border: 0; background: none;
}
.tcc-scope .tcc-dash-metrics .tcc-metric {
	flex: 1 1 150px; background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); padding: 13px 16px;
}
.tcc-scope .tcc-dash-metrics .tcc-metric small {
	display: block; font-family: var(--tcc-font-mono); font-size: 10px;
	letter-spacing: .16em; text-transform: uppercase; color: var(--tcc-oyster-dim);
}
.tcc-scope .tcc-dash-metrics .tcc-metric b { font-size: 18px; display: block; margin-top: 3px; }
.tcc-scope .tcc-dash-metrics .tcc-metric em {
	font-style: normal; font-size: 11px; color: var(--tcc-oyster-dim);
}
.tcc-scope .tcc-dash-metrics .is-estimate b { color: var(--tcc-brass-2); }
.tcc-scope .tcc-dash-metrics .is-permit b { font-family: var(--tcc-font-mono); font-size: 15px; }

/* ------------------------------------------------------ stage journal */
.tcc-scope .tcc-dash-journal { margin-top: 4px; }
.tcc-scope .tcc-journal-compose {
	background: rgba(9,8,7,.4); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); padding: 14px; margin-bottom: 14px;
}
.tcc-scope .tcc-journal-compose textarea {
	width: 100%; min-height: 74px; padding: 11px 13px; margin-bottom: 10px;
	background: var(--tcc-field); color: var(--tcc-oyster);
	border: 1px solid var(--tcc-line); border-radius: var(--tcc-r-s);
	font: inherit; font-size: 14px; resize: vertical;
}
.tcc-scope .tcc-journal-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.tcc-scope .tcc-rec.is-on {
	background: rgba(200, 70, 70, .22); border-color: rgba(200,70,70,.5); color: #f3b0b0;
	animation: tcc-pulse 1.6s ease-in-out infinite;
}
@keyframes tcc-pulse { 0%,100% { opacity: 1; } 50% { opacity: .62; } }

.tcc-scope .tcc-journal-list { display: grid; gap: 10px; }
.tcc-scope .tcc-journal-row {
	display: flex; gap: 12px; padding: 12px 14px;
	background: var(--tcc-panel-2); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s);
}
.tcc-scope .tcc-journal-row.is-internal { border-style: dashed; }
.tcc-scope .tcc-journal-row.is-voice { border-left: 3px solid var(--tcc-brass); }
.tcc-scope .tcc-journal-glyph { font-size: 16px; line-height: 1.5; }
.tcc-scope .tcc-journal-body { flex: 1 1 auto; min-width: 0; }
.tcc-scope .tcc-journal-body p { margin: 0 0 8px; font-size: 14px; }
.tcc-scope .tcc-journal-audio { width: 100%; max-width: 380px; height: 34px; margin-bottom: 8px; }
.tcc-scope .tcc-journal-file {
	display: block; width: 100%; text-align: left; cursor: pointer; margin-bottom: 8px;
	background: rgba(232,224,212,.05); border: 1px solid var(--tcc-line-soft);
	border-radius: 10px; padding: 9px 12px; color: inherit; font: inherit; font-size: 13px;
}
.tcc-scope .tcc-journal-file:hover { border-color: var(--tcc-brass); }
.tcc-scope .tcc-journal-file small { display: block; color: var(--tcc-oyster-dim); font-size: 11px; }

/* ============================================================== BOQ */
.tcc-scope .tcc-boq-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tcc-scope .tcc-boq-steps button {
	padding: 9px 16px; border-radius: 99px; cursor: pointer; font: inherit; font-size: 14px;
	background: var(--tcc-panel); color: var(--tcc-oyster-dim); border: 1px solid var(--tcc-line-soft);
}
.tcc-scope .tcc-boq-steps button.is-active { background: #fff; color: #120f0b; font-weight: 600; border-color: #fff; }

/* measurements */
.tcc-scope .tcc-meas-group { margin-bottom: 26px; }
.tcc-scope .tcc-meas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tcc-scope .tcc-meas-cell { display: block; position: relative; }
.tcc-scope .tcc-meas-label {
	display: flex; align-items: center; gap: 6px; margin-bottom: 5px;
	font-family: var(--tcc-font-mono); font-size: 10px; letter-spacing: .12em;
	text-transform: uppercase; color: var(--tcc-oyster-dim);
}
.tcc-scope .tcc-meas-label i {
	width: 6px; height: 6px; border-radius: 50%; background: rgba(232,224,212,.25); flex: 0 0 auto;
}
.tcc-scope .tcc-meas-cell.is-on .tcc-meas-label { color: var(--tcc-ok); }
.tcc-scope .tcc-meas-cell.is-on .tcc-meas-label i { background: var(--tcc-ok); }
.tcc-scope .tcc-meas-label em { font-style: normal; opacity: .6; margin-left: auto; }
.tcc-scope .tcc-meas-cell input {
	width: 100%; padding: 11px 13px; background: var(--tcc-field); color: var(--tcc-oyster);
	border: 1px solid var(--tcc-line); border-radius: var(--tcc-r-s); font: inherit;
}
.tcc-scope .tcc-meas-cell.is-on input {
	border-color: rgba(127,185,138,.5); box-shadow: 0 0 0 3px rgba(127,185,138,.1);
}
.tcc-scope .tcc-meas-in {
	position: absolute; top: 0; right: 0; font-size: 9px; letter-spacing: .1em;
	text-transform: uppercase; color: var(--tcc-ok);
}

/* scope */
.tcc-scope .tcc-scopepick-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.tcc-scope .tcc-scopepick-tools { display: flex; gap: 8px; align-items: center; }
.tcc-scope .tcc-scopepick-group { margin-bottom: 22px; }
.tcc-scope .tcc-scopepick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tcc-scope .tcc-scopecard {
	position: relative; text-align: left; cursor: pointer; padding: 14px 16px; font: inherit;
	background: var(--tcc-panel); color: var(--tcc-oyster-dim);
	border: 1px solid var(--tcc-line-soft); border-radius: var(--tcc-r-s);
	transition: border-color 160ms ease, background 160ms ease;
}
.tcc-scope .tcc-scopecard:hover { border-color: var(--tcc-line); }
.tcc-scope .tcc-scopecard.is-on {
	background: linear-gradient(120deg, rgba(127,185,138,.13), var(--tcc-panel));
	border-color: rgba(127,185,138,.4); color: var(--tcc-oyster);
}
.tcc-scope .tcc-scopecard b { display: block; font-size: 14px; margin-bottom: 4px; }
.tcc-scope .tcc-scopecard small { font-size: 11px; opacity: .7; }
.tcc-scope .tcc-scopecard-state {
	position: absolute; top: 12px; right: 14px; font-size: 9px; letter-spacing: .12em;
	color: var(--tcc-oyster-dim);
}
.tcc-scope .tcc-scopecard.is-on .tcc-scopecard-state { color: var(--tcc-ok); }

/* bill of quantities */
.tcc-scope .tcc-boq-totals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.tcc-scope .tcc-boq-total {
	background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); padding: 13px 15px;
}
.tcc-scope .tcc-boq-total small {
	display: block; font-family: var(--tcc-font-mono); font-size: 10px;
	letter-spacing: .12em; text-transform: uppercase; color: var(--tcc-oyster-dim);
}
.tcc-scope .tcc-boq-total b { font-size: 17px; display: block; margin-top: 3px; }
.tcc-scope .tcc-boq-total.is-grand { border-color: var(--tcc-brass); }
.tcc-scope .tcc-boq-total.is-grand b { color: var(--tcc-brass-2); }

.tcc-scope .tcc-boq-margin {
	display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
	background: rgba(9,8,7,.4); border-radius: var(--tcc-r-s); padding: 14px 16px;
}
.tcc-scope .tcc-boq-margin label { flex: 1 1 auto; font-size: 13px; }
.tcc-scope .tcc-boq-margin label em { font-style: normal; color: var(--tcc-oyster-dim); font-size: 11px; display: block; }
.tcc-scope .tcc-boq-margin input[type=range] { width: 100%; margin-top: 8px; accent-color: var(--tcc-brass); }
.tcc-scope .tcc-boq-margin-val { font-family: var(--tcc-font-display); font-size: 24px; color: var(--tcc-brass-2); }

.tcc-scope .tcc-boq-group { margin-bottom: 22px; }
.tcc-scope .tcc-boq-gtotal { margin-left: auto; color: var(--tcc-brass-2); }
.tcc-scope .tcc-boq-group .tcc-panel-h { display: flex; align-items: center; gap: 10px; }
.tcc-scope .tcc-wbs { font-family: var(--tcc-font-mono); font-size: 11px; color: var(--tcc-oyster-dim); }
.tcc-scope .tcc-boq-table { display: grid; gap: 4px; }
.tcc-scope .tcc-boq-row {
	display: grid; grid-template-columns: 60px 1.6fr 90px 56px 80px 90px 90px 100px 100px;
	gap: 8px; align-items: center; padding: 10px 12px; font-size: 13px;
	background: var(--tcc-panel-2); border: 1px solid var(--tcc-line-soft); border-radius: 10px;
}
.tcc-scope .tcc-boq-row.is-head {
	background: none; border: 0; padding-bottom: 2px; font-size: 10px;
	letter-spacing: .1em; text-transform: uppercase; color: var(--tcc-oyster-dim);
}
.tcc-scope .tcc-boq-row.is-override { border-color: rgba(201,163,106,.45); }
.tcc-scope .tcc-boq-work b { display: block; font-size: 13px; }
.tcc-scope .tcc-boq-work small { color: var(--tcc-oyster-dim); font-size: 11px; }
.tcc-scope .tcc-boq-row em { font-style: normal; color: var(--tcc-oyster-dim); font-size: 11px; }
.tcc-scope .tcc-boq-row input {
	width: 100%; padding: 6px 8px; background: var(--tcc-field); color: var(--tcc-oyster);
	border: 1px solid var(--tcc-line); border-radius: 8px; font: inherit; font-size: 12px;
}
.tcc-scope .tcc-boq-line { font-weight: 600; }
.tcc-scope .tcc-boq-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--tcc-line-soft);
}
.tcc-scope .tcc-boq-public { font-family: var(--tcc-font-display); font-size: 34px; color: var(--tcc-brass-2); margin: 8px 0; }

/* 4D / 5D */
.tcc-scope .tcc-4d-heads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.tcc-scope .tcc-4d-heads div { background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft); border-radius: var(--tcc-r-s); padding: 14px; }
.tcc-scope .tcc-4d-heads small { display: block; font-family: var(--tcc-font-mono); font-size: 10px; letter-spacing: .12em; color: var(--tcc-oyster-dim); }
.tcc-scope .tcc-4d-heads b { font-size: 18px; }
.tcc-scope .tcc-4d-bars { display: grid; gap: 8px; }
.tcc-scope .tcc-4d-row { display: grid; grid-template-columns: 170px 1fr 110px 70px; gap: 12px; align-items: center; font-size: 13px; }
.tcc-scope .tcc-4d-track { height: 22px; background: rgba(232,224,212,.06); border-radius: 6px; overflow: hidden; }
.tcc-scope .tcc-4d-track i { display: block; height: 100%; background: rgba(232,224,212,.2); }
.tcc-scope .tcc-4d-row.is-done .tcc-4d-track i { background: rgba(127,185,138,.55); }
.tcc-scope .tcc-4d-row.is-current .tcc-4d-track i { background: var(--tcc-brass); }
.tcc-scope .tcc-4d-count { color: var(--tcc-oyster-dim); font-size: 11px; }

/* tender */
.tcc-scope .tcc-tender-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tcc-scope .tcc-tender-preview {
	background: var(--tcc-field); border: 1px solid var(--tcc-line-soft); border-radius: var(--tcc-r-s);
	padding: 16px; font-family: var(--tcc-font-mono); font-size: 12px; line-height: 1.6;
	max-height: 420px; overflow: auto; white-space: pre-wrap;
}

/* ========================================================== lead form */
.tcc-scope .tcc-lf,
.tcc-lead-mount .tcc-lf {
	background: var(--tcc-panel, #14110e); color: var(--tcc-oyster, #e8e0d4);
	border: 1px solid var(--tcc-line, rgba(232,224,212,.14));
	border-radius: 22px; padding: 28px; max-width: 720px; margin: 0 auto;
	font-family: var(--tcc-font-ui, sans-serif);
}
.tcc-lf-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.tcc-lf-mark { font-size: 28px; line-height: 1; }
.tcc-lf-head h3 { font-family: var(--tcc-font-display, Georgia, serif); font-size: 22px; margin: 0; }
.tcc-lf-head p { color: var(--tcc-oyster-dim, rgba(232,224,212,.62)); margin: 4px 0 0; font-size: 14px; }

.tcc-lf-progress { height: 4px; border-radius: 99px; background: rgba(232,224,212,.08); overflow: hidden; margin-bottom: 24px; }
.tcc-lf-progress span {
	display: block; height: 100%; border-radius: 99px;
	background: linear-gradient(90deg, var(--tcc-brass, #c9a36a), var(--tcc-brass-2, #e2c894));
	transition: width 340ms cubic-bezier(.22,.8,.26,1);
}

.tcc-lf-slide { min-height: 190px; }
.tcc-lf-q { font-family: var(--tcc-font-display, Georgia, serif); font-size: 21px; margin: 0 0 6px; }
.tcc-lf-hint { color: var(--tcc-oyster-dim, rgba(232,224,212,.62)); font-size: 13px; margin: 0 0 14px; }
.tcc-lf-err { color: var(--tcc-warn, #d9a05b); font-size: 13px; margin-top: 8px; }

.tcc-lf input[type=text], .tcc-lf input[type=email], .tcc-lf input[type=tel],
.tcc-lf input[type=password], .tcc-lf textarea {
	width: 100%; padding: 13px 15px; font: inherit; font-size: 15px;
	background: var(--tcc-field, #090807); color: inherit;
	border: 1px solid var(--tcc-line, rgba(232,224,212,.14)); border-radius: 12px;
}
.tcc-lf textarea { resize: vertical; }
.tcc-lf-rows { display: grid; gap: 10px; }
.tcc-lf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tcc-lf-field label { display: block; font-size: 13px; margin-bottom: 5px; }
.tcc-lf-field label em { color: var(--tcc-brass, #c9a36a); font-style: normal; }

.tcc-lf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tcc-lf-pick {
	padding: 13px 14px; cursor: pointer; font: inherit; font-size: 13px; text-align: left;
	background: rgba(232,224,212,.04); color: inherit;
	border: 1px solid var(--tcc-line, rgba(232,224,212,.14)); border-radius: 12px;
}
.tcc-lf-pick.is-on { background: var(--tcc-brass, #c9a36a); color: #120f0b; font-weight: 600; }

.tcc-lf-link {
	background: none; border: 0; cursor: pointer; padding: 4px 0; font: inherit; font-size: 13px;
	color: var(--tcc-brass-2, #e2c894); text-decoration: underline; text-align: left;
}
.tcc-lf-signin { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.tcc-lf-review { display: grid; gap: 8px; }
.tcc-lf-review > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(232,224,212,.07); }
.tcc-lf-review span { color: var(--tcc-oyster-dim, rgba(232,224,212,.62)); font-size: 13px; }

.tcc-lf-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.tcc-lf-count { font-family: var(--tcc-font-mono, monospace); font-size: 12px; color: var(--tcc-oyster-dim, rgba(232,224,212,.62)); }
.tcc-lf-done { text-align: center; }
.tcc-lf-done h3 { font-family: var(--tcc-font-display, Georgia, serif); font-size: 22px; margin: 12px 0 8px; }
.tcc-lf-done p { color: var(--tcc-oyster-dim, rgba(232,224,212,.62)); font-size: 14px; max-width: 46ch; margin: 0 auto 18px; }

.tcc-lead-boot { display: grid; gap: 10px; padding: 28px; }
.tcc-lead-fallback { padding: 24px; }

/* ------------------------------------------------------- responsive */
@media (max-width: 1080px) {
	.tcc-scope .tcc-meas-grid { grid-template-columns: repeat(2, 1fr); }
	.tcc-scope .tcc-scopepick-grid { grid-template-columns: repeat(2, 1fr); }
	.tcc-scope .tcc-boq-totals { grid-template-columns: repeat(3, 1fr); }
	.tcc-scope .tcc-boq-row { grid-template-columns: 52px 1.4fr 76px 48px 70px 78px 78px 88px 88px; font-size: 12px; }
}
@media (max-width: 860px) {
	.tcc-fb-stage { padding: 14px 52px; }
	.tcc-fb-page { padding: 28px 26px; min-height: 54vh; }
	.tcc-scope .tcc-4d-row { grid-template-columns: 110px 1fr 90px; }
	.tcc-scope .tcc-4d-count { display: none; }
	/* A nine-column table on a phone is a scroll bar with extra steps. */
	.tcc-scope .tcc-boq-row { grid-template-columns: 1fr 1fr; gap: 6px; }
	.tcc-scope .tcc-boq-row.is-head { display: none; }
	.tcc-scope .tcc-boq-work { grid-column: 1 / -1; }
	.tcc-lf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.tcc-scope .tcc-meas-grid,
	.tcc-scope .tcc-scopepick-grid,
	.tcc-scope .tcc-boq-totals { grid-template-columns: 1fr; }
	.tcc-lf-two, .tcc-lf-grid { grid-template-columns: 1fr; }
	.tcc-scope .tcc-lf, .tcc-lead-mount .tcc-lf { padding: 20px; border-radius: 16px; }
	.tcc-fb-stage { padding: 10px 44px; }
	.tcc-scope .tcc-dash-metrics .tcc-metric { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.tcc-fb-sheet.is-fwd, .tcc-fb-sheet.is-back { animation: none; }
	.tcc-scope .tcc-act:hover:not(:disabled) { transform: none; }
	.tcc-scope .tcc-rec.is-on { animation: none; }
	.tcc-scope .is-flash { animation: none; }
	.tcc-lf-progress span { transition: none; }
}

/* ==================================================================== *
 * v1.11.0-LODESTAR — citations, source cards, grounding.
 * ==================================================================== */

.tcc-scope .tcc-cited { margin: 0; white-space: pre-wrap; }

/* An inline citation. Small, tappable, unmistakably a control rather than
   punctuation — a marker that looks like text gets read as text. */
.tcc-scope .tcc-cite {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 17px; height: 17px; padding: 0 4px; margin: 0 1px;
	vertical-align: 1px; cursor: pointer; font: inherit; font-size: 10px;
	font-family: var(--tcc-font-mono); font-weight: 600; line-height: 1;
	background: rgba(201,163,106,.2); color: var(--tcc-brass-2);
	border: 1px solid rgba(201,163,106,.4); border-radius: 5px;
}
.tcc-scope .tcc-cite:hover { background: var(--tcc-brass); color: #120f0b; }

.tcc-scope .tcc-sources { margin-top: 12px; display: grid; gap: 6px; }
.tcc-scope .tcc-sources-head {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--tcc-font-mono); font-size: 10px; letter-spacing: .12em;
	text-transform: uppercase; color: var(--tcc-oyster-dim);
}
.tcc-scope .tcc-ground { color: var(--tcc-ok); }
.tcc-scope .tcc-ground.is-thin { color: var(--tcc-warn); }

.tcc-scope .tcc-source {
	display: flex; align-items: flex-start; gap: 10px; width: 100%;
	padding: 9px 12px; cursor: pointer; text-align: left; font: inherit;
	color: inherit; background: rgba(232,224,212,.035);
	border: 1px solid var(--tcc-line-soft); border-radius: 10px;
	transition: border-color 150ms ease;
}
.tcc-scope .tcc-source:hover { border-color: var(--tcc-brass); }
.tcc-scope .tcc-source.is-flash { animation: tcc-flash 1.2s ease; }
.tcc-scope .tcc-source-n {
	flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px;
	display: grid; place-items: center; border-radius: 5px;
	background: rgba(201,163,106,.22); color: var(--tcc-brass-2);
	font-family: var(--tcc-font-mono); font-size: 10px; font-weight: 600;
}
.tcc-scope .tcc-source-body { flex: 1 1 auto; min-width: 0; }
.tcc-scope .tcc-source-body b { display: block; font-size: 12.5px; }
.tcc-scope .tcc-source-body small {
	display: block; color: var(--tcc-oyster-dim); font-size: 11.5px;
	overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tcc-scope .tcc-source-go { color: var(--tcc-brass); font-size: 13px; }

@media (max-width: 560px) {
	.tcc-scope .tcc-source-body small { -webkit-line-clamp: 3; }
}
@media (prefers-reduced-motion: reduce) {
	.tcc-scope .tcc-source.is-flash { animation: none; }
}

/* ==================================================================== *
 * v1.12.0-BEDROCK — chat openers, runner diagnostics.
 * ==================================================================== */

.tcc-scope .tcc-hermes-openers { display: grid; gap: 7px; padding: 4px 0 8px; }
.tcc-scope .tcc-hermes-openers .tcc-hint { margin: 0 0 4px; }
.tcc-scope .tcc-opener {
	text-align: left; cursor: pointer; font: inherit; font-size: 13.5px;
	padding: 10px 13px; color: inherit;
	background: rgba(232,224,212,.04); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); transition: border-color 150ms ease, transform 150ms ease;
}
.tcc-scope .tcc-opener:hover:not(:disabled) { border-color: var(--tcc-brass); transform: translateX(3px); }
.tcc-scope .tcc-opener:disabled { opacity: .5; cursor: default; }

/* Live-context sources read as fact rather than as retrieved documents. */
.tcc-scope .tcc-source.is-live .tcc-source-n {
	background: rgba(127,185,138,.22); color: var(--tcc-ok);
}

@media (prefers-reduced-motion: reduce) {
	.tcc-scope .tcc-opener:hover:not(:disabled) { transform: none; }
}

/* ==================================================================== *
 * v1.13.0-KEELSON — timeline focus, job site, crew, meetings.
 * ==================================================================== */

/* ---------------------------------------------------- timeline focus *
 * The step you are reading was visually identical to the sixteen you are
 * not. `is-open` was applied in the markup and had no rule behind it, so
 * clicking between steps changed the panel below with nothing on the rail
 * to say which one you had landed on.                                   */
.tcc-scope .tcc-step {
	cursor: pointer; border-radius: var(--tcc-r-s);
	padding-left: 10px; margin-left: -10px; padding-right: 10px;
	transition: background 150ms ease, box-shadow 150ms ease;
}
.tcc-scope .tcc-step:hover { background: rgba(232,224,212,.03); }
.tcc-scope .tcc-step.is-open {
	background: linear-gradient(96deg, rgba(201,163,106,.13), rgba(201,163,106,.03));
	box-shadow: inset 3px 0 0 var(--tcc-brass);
}
.tcc-scope .tcc-step.is-open .tcc-step-body b { color: var(--tcc-brass-2); }
.tcc-scope .tcc-step.is-open .tcc-step-dot {
	border-color: var(--tcc-brass); box-shadow: 0 0 0 4px rgba(201,163,106,.16);
}
/* A word, not just a colour — colour alone fails for ~8% of men. */
.tcc-scope .tcc-step.is-open .tcc-step-body b::after {
	content: "· viewing"; margin-left: 8px; font: 500 10px var(--tcc-font-mono);
	letter-spacing: .12em; text-transform: uppercase; color: var(--tcc-brass);
}

/* ------------------------------------------------------------ job site */
.tcc-scope .tcc-jobsite { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tcc-scope .tcc-jobsite-col { display: grid; gap: 14px; align-content: start; }

.tcc-scope .tcc-map {
	background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); overflow: hidden;
}
.tcc-scope .tcc-map iframe { width: 100%; height: 230px; border: 0; display: block; filter: saturate(.82) contrast(1.05); }
.tcc-scope .tcc-map-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 11px 14px; border-top: 1px solid var(--tcc-line-soft);
}
.tcc-scope .tcc-map-foot b { display: block; font-size: 13.5px; }
.tcc-scope .tcc-map-foot small { color: var(--tcc-oyster-dim); font-size: 11.5px; }
.tcc-scope .tcc-map-none {
	background: var(--tcc-panel); border: 1px dashed var(--tcc-line);
	border-radius: var(--tcc-r-s); padding: 26px; text-align: center;
}

/* ------------------------------------------------------------- weather */
.tcc-scope .tcc-wx {
	background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); padding: 13px 14px;
}
.tcc-scope .tcc-wx-head {
	display: flex; justify-content: space-between; align-items: baseline;
	font-family: var(--tcc-font-mono); font-size: 10px; letter-spacing: .14em;
	text-transform: uppercase; color: var(--tcc-oyster-dim); margin-bottom: 10px;
}
.tcc-scope .tcc-wx-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.tcc-scope .tcc-wx-day {
	display: grid; gap: 3px; justify-items: center; padding: 9px 3px;
	border-radius: 10px; background: rgba(232,224,212,.04);
	border-top: 2px solid transparent; font-size: 11px;
}
.tcc-scope .tcc-wx-day.is-go { border-top-color: rgba(127,185,138,.55); }
.tcc-scope .tcc-wx-day.is-caution { border-top-color: rgba(217,160,91,.6); }
.tcc-scope .tcc-wx-day.is-stop { border-top-color: rgba(200,80,80,.7); background: rgba(200,80,80,.07); }
.tcc-scope .tcc-wx-dow { font-family: var(--tcc-font-mono); font-size: 10px; color: var(--tcc-oyster-dim); }
.tcc-scope .tcc-wx-glyph { font-size: 17px; line-height: 1; }
.tcc-scope .tcc-wx-temp { font-size: 12px; font-weight: 600; }
.tcc-scope .tcc-wx-temp i { font-style: normal; opacity: .5; margin-left: 3px; font-weight: 400; }
.tcc-scope .tcc-wx-pop { font-size: 10px; color: var(--tcc-oyster-dim); }
.tcc-scope .tcc-wx-callout { margin: 10px 0 0; font-size: 12.5px; }
.tcc-scope .tcc-wx-callout.is-caution { color: var(--tcc-warn); }
.tcc-scope .tcc-wx-callout.is-stop { color: #e88; }

/* ---------------------------------------------------------------- reel */
.tcc-scope .tcc-reel {
	position: relative; background: #0b0a09; border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); overflow: hidden;
}
.tcc-scope .tcc-reel img,
.tcc-scope .tcc-reel video { width: 100%; height: 250px; object-fit: cover; display: block; }
.tcc-scope .tcc-reel-cap {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 11px;
	background: linear-gradient(to top, rgba(0,0,0,.82), transparent);
}
.tcc-scope .tcc-reel-cap b { display: block; font-size: 13px; }
.tcc-scope .tcc-reel-cap small { color: rgba(232,224,212,.75); font-size: 11px; }
.tcc-scope .tcc-reel-dots { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; }
.tcc-scope .tcc-reel-dots button {
	width: 6px; height: 6px; padding: 0; border-radius: 50%; cursor: pointer;
	background: rgba(232,224,212,.35); border: 0;
}
.tcc-scope .tcc-reel-dots button.is-on { background: var(--tcc-brass); width: 16px; border-radius: 3px; }
.tcc-scope .tcc-reel-empty {
	background: var(--tcc-panel); border: 1px dashed var(--tcc-line);
	border-radius: var(--tcc-r-s); padding: 30px; text-align: center;
}
.tcc-scope .tcc-reel-empty span { font-size: 26px; }

/* ---------------------------------------------------------------- crew */
.tcc-scope .tcc-crew {
	background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); padding: 13px 14px; display: grid; gap: 12px;
}
.tcc-scope .tcc-crew-head {
	display: flex; justify-content: space-between; align-items: baseline;
	font-family: var(--tcc-font-mono); font-size: 10px; letter-spacing: .12em;
	text-transform: uppercase; color: var(--tcc-oyster-dim); margin-bottom: 7px;
}
.tcc-scope .tcc-crew-faces { display: flex; flex-wrap: wrap; gap: 10px; }
.tcc-scope .tcc-crew-face { display: grid; justify-items: center; gap: 3px; width: 52px; }
.tcc-scope .tcc-crew-face img {
	width: 30px; height: 30px; border-radius: 50%;
	border: 1px solid var(--tcc-line); object-fit: cover;
}
.tcc-scope .tcc-crew-face i {
	font-style: normal; font-size: 10px; color: var(--tcc-oyster-dim);
	max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tcc-scope .tcc-crew-flags { display: flex; flex-wrap: wrap; gap: 6px; }

/* card summary in Recent / Archived */
.tcc-scope .tcc-card-crew {
	display: flex; align-items: center; gap: 8px; margin-top: 9px;
	padding-top: 9px; border-top: 1px solid var(--tcc-line-soft);
}
.tcc-scope .tcc-card-crew img {
	width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--tcc-line);
	margin-left: -7px; object-fit: cover;
}
.tcc-scope .tcc-card-crew img:first-child { margin-left: 0; }
.tcc-scope .tcc-card-crew small { color: var(--tcc-oyster-dim); font-size: 11px; margin-left: auto; }
.tcc-scope .tcc-card-crew .is-stale { color: var(--tcc-warn); }

/* ------------------------------------------------------------ meetings */
.tcc-scope .tcc-meet-form { display: grid; gap: 9px; margin-bottom: 14px;
	background: rgba(9,8,7,.4); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); padding: 14px; }
.tcc-scope .tcc-meet-form input,
.tcc-scope .tcc-meet-form textarea,
.tcc-scope .tcc-meet-form select {
	width: 100%; padding: 10px 12px; font: inherit; font-size: 14px;
	background: var(--tcc-field); color: var(--tcc-oyster);
	border: 1px solid var(--tcc-line); border-radius: var(--tcc-r-s);
}
.tcc-scope .tcc-meet-modes { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.tcc-scope .tcc-meet-modes select { width: auto; }
.tcc-scope .tcc-meet-link { display: grid; gap: 7px; }
.tcc-scope .tcc-meet-row {
	display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap;
	padding: 12px 14px; margin-bottom: 8px;
	background: var(--tcc-panel-2); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s);
}
.tcc-scope .tcc-meet-row.is-confirmed { border-left: 3px solid var(--tcc-ok); }
.tcc-scope .tcc-meet-row.is-requested { border-left: 3px solid var(--tcc-brass); }
.tcc-scope .tcc-meet-row.is-declined { opacity: .65; }
.tcc-scope .tcc-meet-body b { display: block; font-size: 13.5px; }
.tcc-scope .tcc-meet-body small { color: var(--tcc-oyster-dim); font-size: 11.5px; }
.tcc-scope .tcc-meet-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.tcc-scope .tcc-meet-slots { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tcc-scope .tcc-meet-decline {
	background: none; border: 0; cursor: pointer; font: inherit; font-size: 12px;
	color: var(--tcc-oyster-dim); text-decoration: underline;
}

/* --------------------------------------------------------- responsive */
@media (max-width: 900px) {
	.tcc-scope .tcc-jobsite { grid-template-columns: 1fr; }
	.tcc-scope .tcc-wx-row { grid-template-columns: repeat(4, 1fr); }
	.tcc-scope .tcc-wx-day:nth-child(n+5) { display: none; }
}
@media (max-width: 560px) {
	.tcc-scope .tcc-map iframe { height: 180px; }
	.tcc-scope .tcc-reel img, .tcc-scope .tcc-reel video { height: 190px; }
	.tcc-scope .tcc-meet-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	.tcc-scope .tcc-step { transition: none; }
}

/* ==================================================================== *
 * v1.14.0-TRANSOM — one-row job strip, month picker, unified vault.
 * ==================================================================== */

/* --------------------------------------------------------- job strip *
 * A grid of columns with FIXED heights. v1.13.0 used two stacked columns
 * and let the map stretch to match its neighbour, so a job with two photos
 * got a tall empty panel under the pin. Nothing here can stretch, so
 * nothing here can leave a hole.                                        */
.tcc-scope .tcc-dash-strip { margin-bottom: 16px; }
.tcc-scope .tcc-jobstrip {
	display: grid; grid-template-columns: 1.5fr 1.1fr 1fr; gap: 12px;
	align-items: stretch;
}
.tcc-scope .tcc-js-side { display: grid; grid-template-rows: auto auto; gap: 12px; align-content: start; }

/* map — the widest, tallest thing, zoomed to street level */
.tcc-scope .tcc-js-map {
	position: relative; height: 232px; overflow: hidden;
	background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s);
}
.tcc-scope .tcc-js-map iframe {
	width: 100%; height: 100%; border: 0; display: block;
	filter: saturate(.78) contrast(1.06) brightness(.94);
}
.tcc-scope .tcc-js-map.is-empty {
	display: grid; place-content: center; gap: 6px; text-align: center;
	border-style: dashed; color: var(--tcc-oyster-dim);
}
.tcc-scope .tcc-js-map.is-empty span { font-size: 24px; }
.tcc-scope .tcc-js-map-bar {
	position: absolute; left: 0; right: 0; bottom: 0;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
	padding: 26px 13px 10px;
	background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.55) 55%, transparent);
}
.tcc-scope .tcc-js-map-bar b { display: block; font-size: 13px; line-height: 1.3; }
.tcc-scope .tcc-js-map-bar small { color: rgba(232,224,212,.72); font-size: 11px; }
.tcc-scope .tcc-js-dir {
	flex: 0 0 auto; padding: 5px 11px; border-radius: 99px; font-size: 11.5px;
	background: rgba(232,224,212,.14); color: var(--tcc-oyster);
	border: 1px solid rgba(232,224,212,.2); text-decoration: none; white-space: nowrap;
}
.tcc-scope .tcc-js-dir:hover { background: var(--tcc-brass); color: #120f0b; border-color: var(--tcc-brass); }

/* weather — the widget that already worked, tightened */
.tcc-scope .tcc-js-wx {
	background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); padding: 9px 10px;
}
.tcc-scope .tcc-js-wx-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.tcc-scope .tcc-js-wx-day {
	display: grid; gap: 1px; justify-items: center; padding: 6px 2px;
	border-radius: 8px; background: rgba(232,224,212,.04);
	border-top: 2px solid transparent;
}
.tcc-scope .tcc-js-wx-day.is-go { border-top-color: rgba(127,185,138,.5); }
.tcc-scope .tcc-js-wx-day.is-caution { border-top-color: rgba(217,160,91,.6); }
.tcc-scope .tcc-js-wx-day.is-stop { border-top-color: rgba(200,80,80,.7); background: rgba(200,80,80,.07); }
.tcc-scope .tcc-js-wx-day .d { font-family: var(--tcc-font-mono); font-size: 9px; color: var(--tcc-oyster-dim); }
.tcc-scope .tcc-js-wx-day .g { font-size: 15px; line-height: 1.1; }
.tcc-scope .tcc-js-wx-day .t { font-size: 11px; font-weight: 600; }
.tcc-scope .tcc-js-wx-day .t i { font-style: normal; opacity: .48; margin-left: 2px; font-weight: 400; }
.tcc-scope .tcc-js-wx-day .p { font-size: 9px; color: var(--tcc-oyster-dim); }
.tcc-scope .tcc-js-wx-line { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; }
.tcc-scope .tcc-js-wx-line.is-caution { color: var(--tcc-warn); }
.tcc-scope .tcc-js-wx-line.is-stop { color: #e88; }

/* activity — two rows, no more */
.tcc-scope .tcc-js-act {
	background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); padding: 9px 11px; display: grid; gap: 6px;
}
.tcc-scope .tcc-js-act-row { display: flex; align-items: center; gap: 8px; }
.tcc-scope .tcc-js-act-label {
	flex: 0 0 62px; font-family: var(--tcc-font-mono); font-size: 9px;
	letter-spacing: .1em; text-transform: uppercase; color: var(--tcc-oyster-dim);
}
.tcc-scope .tcc-js-act-faces { flex: 1 1 auto; display: flex; }
.tcc-scope .tcc-js-act-faces img {
	width: 21px; height: 21px; border-radius: 50%; object-fit: cover;
	border: 1px solid var(--tcc-panel); margin-left: -6px;
}
.tcc-scope .tcc-js-act-faces img:first-child { margin-left: 0; }
.tcc-scope .tcc-js-act-faces i { color: var(--tcc-oyster-dim); font-style: normal; font-size: 12px; }
.tcc-scope .tcc-js-act-ago { font-size: 10.5px; color: var(--tcc-oyster-dim); white-space: nowrap; }
.tcc-scope .tcc-js-act-flag {
	margin: 2px 0 0; font-size: 10.5px; color: var(--tcc-warn); line-height: 1.35;
}

/* gallery */
.tcc-scope .tcc-js-gal {
	position: relative; height: 232px; overflow: hidden;
	background: #0b0a09; border: 1px solid var(--tcc-line-soft); border-radius: var(--tcc-r-s);
}
.tcc-scope .tcc-js-gal img,
.tcc-scope .tcc-js-gal video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcc-scope .tcc-js-gal img { cursor: zoom-in; }
.tcc-scope .tcc-js-gal.is-empty {
	display: grid; place-content: center; gap: 6px; text-align: center;
	border-style: dashed; color: var(--tcc-oyster-dim);
}
.tcc-scope .tcc-js-gal.is-empty span { font-size: 24px; }
.tcc-scope .tcc-js-gal-bar {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 9px;
	background: linear-gradient(to top, rgba(0,0,0,.88), transparent);
}
.tcc-scope .tcc-js-gal-bar b { display: block; font-size: 12px; }
.tcc-scope .tcc-js-gal-bar small { color: rgba(232,224,212,.7); font-size: 10.5px; }
.tcc-scope .tcc-js-gal-dots { position: absolute; top: 9px; right: 9px; display: flex; gap: 3px; }
.tcc-scope .tcc-js-gal-dots button {
	width: 5px; height: 5px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(232,224,212,.4); cursor: pointer;
}
.tcc-scope .tcc-js-gal-dots button.is-on { background: var(--tcc-brass); width: 14px; border-radius: 3px; }

/* ------------------------------------------------- timeline per-step % */
.tcc-scope .tcc-step-meta { display: flex; gap: 7px; align-items: center; margin-top: 4px; }
.tcc-scope .tcc-step-pct {
	font-style: normal; font-family: var(--tcc-font-mono); font-size: 10px;
	letter-spacing: .06em; color: var(--tcc-oyster-dim);
}
.tcc-scope .tcc-step-pct.is-ready { color: var(--tcc-ok); }

/* ------------------------------------------------------- unified vault */
.tcc-scope .tcc-vault-one { margin-top: 18px; }
.tcc-scope .tcc-vault-one .tcc-panel-h { display: flex; align-items: center; gap: 10px; }
.tcc-scope .tcc-vault-all {
	margin-left: auto; font-size: 11.5px; color: var(--tcc-brass-2);
	text-decoration: none; font-weight: 400;
}
.tcc-scope .tcc-vault-all:hover { text-decoration: underline; }

/* --------------------------------------------------------- month picker */
.tcc-scope .tcc-cal {
	background: var(--tcc-field); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); padding: 11px;
}
.tcc-scope .tcc-cal-head {
	display: flex; align-items: center; justify-content: space-between;
	margin-bottom: 9px; font-family: var(--tcc-font-display); font-size: 14px;
}
.tcc-scope .tcc-cal-head button {
	width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 15px;
	background: rgba(232,224,212,.06); border: 1px solid var(--tcc-line-soft); color: inherit;
}
.tcc-scope .tcc-cal-head button:disabled { opacity: .28; cursor: default; }
.tcc-scope .tcc-cal-dow,
.tcc-scope .tcc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.tcc-scope .tcc-cal-dow span {
	text-align: center; font-family: var(--tcc-font-mono); font-size: 9px;
	color: var(--tcc-oyster-dim); padding-bottom: 4px;
}
.tcc-scope .tcc-cal-day {
	aspect-ratio: 1; display: grid; place-items: center; cursor: pointer;
	border-radius: 8px; font: inherit; font-size: 12.5px; color: inherit;
	background: rgba(232,224,212,.04); border: 1px solid transparent;
}
.tcc-scope .tcc-cal-day:hover:not(:disabled) { border-color: var(--tcc-brass); }
.tcc-scope .tcc-cal-day.is-on { background: var(--tcc-brass); color: #120f0b; font-weight: 700; }
.tcc-scope .tcc-cal-day.is-off { opacity: .22; cursor: default; background: none; }
.tcc-scope .tcc-cal-pad { aspect-ratio: 1; }
.tcc-scope .tcc-cal-times { display: flex; flex-wrap: wrap; gap: 5px; }
.tcc-scope .tcc-cal-time {
	padding: 7px 12px; border-radius: 99px; cursor: pointer; font: inherit; font-size: 12px;
	background: rgba(232,224,212,.05); color: inherit; border: 1px solid var(--tcc-line-soft);
}
.tcc-scope .tcc-cal-time.is-on { background: var(--tcc-brass); color: #120f0b; font-weight: 600; border-color: var(--tcc-brass); }
.tcc-scope .tcc-cal-summary { margin: 2px 0 0; font-size: 12px; color: var(--tcc-brass-2); }

/* ------------------------------------------------------------ proposal */
.tcc-scope .tcc-proposal-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.tcc-scope .tcc-proposal-sum > div {
	background: var(--tcc-panel); border: 1px solid var(--tcc-line-soft);
	border-radius: var(--tcc-r-s); padding: 12px 14px;
}
.tcc-scope .tcc-proposal-sum small {
	display: block; font-family: var(--tcc-font-mono); font-size: 10px;
	letter-spacing: .12em; color: var(--tcc-oyster-dim);
}
.tcc-scope .tcc-proposal-sum b { font-size: 17px; }
.tcc-scope .tcc-boq-margin-was {
	display: block; font-style: normal; font-size: 10px;
	color: var(--tcc-oyster-dim); font-family: var(--tcc-font-mono);
}

/* --------------------------------------------------------- responsive */
@media (max-width: 1100px) {
	.tcc-scope .tcc-jobstrip { grid-template-columns: 1.4fr 1fr; }
	.tcc-scope .tcc-js-gal { grid-column: 1 / -1; height: 200px; }
}
@media (max-width: 720px) {
	.tcc-scope .tcc-jobstrip { grid-template-columns: 1fr; }
	.tcc-scope .tcc-js-map, .tcc-scope .tcc-js-gal { height: 180px; }
	.tcc-scope .tcc-js-wx-days { grid-template-columns: repeat(4, 1fr); }
	.tcc-scope .tcc-js-wx-day:nth-child(n+5) { display: none; }
	.tcc-scope .tcc-proposal-sum { grid-template-columns: 1fr; }
}
