/*
 * TECHNOLOGY WORK ORDER SYSTEM — design system, 1.2.0 "Soft SaaS".
 * Light gray-blue canvas, floating white cards with soft shadows, slate primary, pastel status colours.
 * Fonts are declared by PHP (techwo_font_css) so URLs are absolute and only bundled files are referenced.
 * Older rules below still use the legacy token names; they are mapped onto the new palette here,
 * and the "Soft SaaS layer" at the end of the file restyles the components.
 */
.techwo-ui {
	/* Palette */
	--techwo-bg: #F2F3F4;        /* app background */
	--techwo-surface: #FFFFFF;   /* cards, panels */
	--techwo-soft: #F4F6FA;      /* table heads, hovers, wells */
	--techwo-ink: #25324B;       /* primary text */
	--techwo-sub: #5A6680;       /* secondary text (AA on white, soft and canvas) */
	--techwo-faint: #8490A5;     /* icons, placeholders, decoration */
	--techwo-hair: #E5EAF1;      /* muted border */
	--techwo-slate: #003087;     /* primary accent */
	--techwo-slate-hover: #00246A;
	--techwo-blue: #2F5BB7;      --techwo-blue-bg: #E3ECFB;
	--techwo-purple: #5A6680;    --techwo-purple-bg: #F4F6FA; /* 1.2.6: purple removed; 1.2.8: lavender removed → gray */
	--techwo-peach: #25324B;     --techwo-peach-bg: #E4E8F0;  /* 1.2.6: peach removed → neutral pill */
	--techwo-mint: #5A6680;      --techwo-mint-bg: #F4F6FA;   /* 1.2.6: mint removed → quiet gray */
	--techwo-lav: #003087;       --techwo-lav-bg: #F4F6FA;   /* 1.2.8: lavender removed */
	--techwo-warn: #9A5B13;      --techwo-warn-bg: #FDF0DE;
	--techwo-err: #25324B;       --techwo-err-bg: #E4E8F0;    /* 1.2.6: red removed → ink */
	--techwo-shadow: 0 1px 2px rgba(37, 50, 75, .04), 0 6px 20px rgba(37, 50, 75, .06);
	--techwo-shadow-hover: 0 2px 4px rgba(37, 50, 75, .05), 0 12px 32px rgba(37, 50, 75, .10);
	--techwo-shadow-pop: 0 4px 12px rgba(37, 50, 75, .08), 0 24px 48px rgba(37, 50, 75, .14);
	--techwo-radius: 20px;
	--techwo-ease: 160ms cubic-bezier(.2, .7, .3, 1);

	/* Legacy names, mapped onto the new palette */
	--techwo-white: var(--techwo-surface);
	--techwo-charcoal: var(--techwo-ink);
	--techwo-light: var(--techwo-soft);
	--techwo-mid: var(--techwo-sub);
	--techwo-line: var(--techwo-hair);
	--techwo-red: var(--techwo-err);

	--techwo-primary: var(--techwo-slate);
	--techwo-primary-hover: var(--techwo-slate-hover);
	--techwo-text: var(--techwo-ink);
	--techwo-muted: var(--techwo-sub);
	--techwo-canvas: var(--techwo-bg);

	--techwo-font: "techwo Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--techwo-font-head: "techwo Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--techwo-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--techwo-ring: 0 0 0 3px rgba(52, 61, 88, .28);

	container-type: inline-size;
	box-sizing: border-box;
	font-family: var(--techwo-font);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--techwo-charcoal);
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

/* ---------- Reset inside the wrapper (theme and wp-admin defence) ---------- */
.techwo-ui *, .techwo-ui *::before, .techwo-ui *::after { box-sizing: border-box; }
.techwo-ui h1, .techwo-ui h2, .techwo-ui h3, .techwo-ui h4, .techwo-ui p, .techwo-ui ul, .techwo-ui ol, .techwo-ui dl, .techwo-ui figure, .techwo-ui fieldset, .techwo-ui legend {
	margin: 0; padding: 0; color: inherit; letter-spacing: normal; text-transform: none; text-shadow: none; font-style: normal;
}
.techwo-ui p { font-size: inherit; line-height: 1.5; }
.techwo-ui h1, .techwo-ui h2, .techwo-ui h3, .techwo-ui h4 { font-family: var(--techwo-font-head); font-weight: 700; line-height: 1.2; }
.techwo-ui button, .techwo-ui input, .techwo-ui select, .techwo-ui textarea { font-family: var(--techwo-font); font-size: 15px; color: var(--techwo-charcoal); letter-spacing: normal; text-transform: none; text-shadow: none; }
.techwo-ui a { color: var(--techwo-charcoal); text-decoration-color: var(--techwo-charcoal); }
.techwo-ui a:hover, .techwo-ui a:focus, .techwo-ui a:active { color: var(--techwo-charcoal); }
.techwo-ui img { max-width: 100%; }
.techwo-ui [hidden] { display: none !important; }
.techwo-ui svg.techwo-icon { width: 18px; height: 18px; flex: none; vertical-align: middle; fill: none; stroke: currentColor; }
.techwo-ui ::selection { background: var(--techwo-charcoal); color: var(--techwo-white); }
.techwo-sr, .techwo-ui .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Focus: keyboard only. */
.techwo-ui *:focus { outline: none; box-shadow: none; }
.techwo-ui *:focus-visible { outline: none; box-shadow: var(--techwo-ring); }

/* ---------- Canvas & layout ---------- */
.techwo-canvas { background: var(--techwo-light); display: flex; flex-direction: column; gap: 24px; }
.techwo-stack { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Header bar (admin screens) ---------- */
.techwo-header {
	display: flex; align-items: center; gap: 16px; flex-wrap: nowrap;
	background: var(--techwo-white); border: 1px solid var(--techwo-line); border-radius: 26px;
	padding: 10px 12px 10px 24px; min-height: 64px;
}
.techwo-header-name { font-family: var(--techwo-font-head); font-size: 16px; font-weight: 700; white-space: nowrap; color: var(--techwo-charcoal); }
.techwo-nav { display: flex; gap: 4px; flex: 1 1 auto; justify-content: center; min-width: 0; }
.techwo-ui .techwo-nav-pill {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
	color: var(--techwo-mid); background: var(--techwo-white); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer;
}
.techwo-ui .techwo-nav-pill:hover { background: var(--techwo-light); color: var(--techwo-charcoal); }
.techwo-ui .techwo-nav-pill[aria-current="page"] { background: var(--techwo-charcoal); color: var(--techwo-white); }
.techwo-nav-count { display: inline-flex; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--techwo-charcoal); color: var(--techwo-white); font-variant-numeric: tabular-nums; }
.techwo-nav-pill[aria-current="page"] .techwo-nav-count { background: var(--techwo-white); color: var(--techwo-charcoal); }
.techwo-nav-count:empty { display: none; }
.techwo-asof { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--techwo-mid); white-space: nowrap; padding-right: 12px; }
.techwo-asof::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--techwo-charcoal); flex: none; }

/* ---------- Page heading ---------- */
.techwo-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.techwo-ui .techwo-title { font-family: var(--techwo-font-head); font-size: clamp(30px, 2.2vw + 14px, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; color: var(--techwo-charcoal); }
.techwo-ui .techwo-intro { font-size: 16px; color: var(--techwo-mid); margin-top: 8px !important; max-width: 72ch; }
.techwo-page-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.techwo-ui .techwo-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--techwo-line);
	background: var(--techwo-white); color: var(--techwo-charcoal);
	font-family: var(--techwo-font); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: none;
}
.techwo-ui .techwo-btn:hover { background: var(--techwo-light); color: var(--techwo-charcoal); border-color: var(--techwo-line); }
.techwo-ui .techwo-btn-primary { background: var(--techwo-primary); color: var(--techwo-white); border-color: var(--techwo-primary); }
.techwo-ui .techwo-btn-primary:hover { background: var(--techwo-primary-hover); color: var(--techwo-white); border-color: var(--techwo-primary-hover); }
.techwo-ui .techwo-btn-red { background: var(--techwo-red); border-color: var(--techwo-red); color: var(--techwo-white); }
.techwo-ui .techwo-btn-red:hover { background: var(--techwo-charcoal); border-color: var(--techwo-charcoal); color: var(--techwo-white); }
.techwo-ui .techwo-btn-quiet { background: var(--techwo-white); border-color: var(--techwo-white); color: var(--techwo-charcoal); }
.techwo-ui .techwo-btn-quiet:hover { background: var(--techwo-light); border-color: var(--techwo-light); }
.techwo-ui .techwo-btn-delete { background: var(--techwo-white); border-color: var(--techwo-line); color: var(--techwo-charcoal); font-weight: 700; }
.techwo-ui .techwo-btn-delete:hover { background: var(--techwo-charcoal); border-color: var(--techwo-charcoal); color: var(--techwo-white); }
.techwo-ui .techwo-btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.techwo-ui .techwo-btn-xs { min-height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.techwo-ui .techwo-btn-xs svg.techwo-icon { width: 15px; height: 15px; }
.techwo-ui .techwo-btn-edit { background: var(--techwo-light); border-color: var(--techwo-light); }
.techwo-ui .techwo-btn-edit:hover { background: var(--techwo-charcoal); border-color: var(--techwo-charcoal); color: var(--techwo-white); }
.techwo-ui .techwo-btn[disabled] { cursor: not-allowed; color: var(--techwo-mid); }
.techwo-ui .techwo-btn[disabled]:hover { background: var(--techwo-white); }
.techwo-ui .techwo-btn.is-busy { cursor: progress; }
.techwo-ui .techwo-btn.is-busy::before {
	content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
	border: 2px solid var(--techwo-line); border-top-color: var(--techwo-charcoal);
	animation: techwo-spin .8s linear infinite;
}
.techwo-ui .techwo-btn-primary.is-busy::before { border-color: var(--techwo-mid); border-top-color: var(--techwo-white); }
.techwo-ui .techwo-btn-red.is-busy::before { border-color: var(--techwo-charcoal); border-top-color: var(--techwo-white); }
@keyframes techwo-spin { to { transform: rotate(360deg); } }
.techwo-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Cards ---------- */
.techwo-card { background: var(--techwo-white); border: 1px solid var(--techwo-line); border-radius: 22px; padding: 24px; min-width: 0; }
.techwo-ui .techwo-card-title { font-family: var(--techwo-font-head); font-size: 17px; font-weight: 700; }
.techwo-ui .techwo-section-title { font-family: var(--techwo-font-head); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.techwo-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.techwo-ui .techwo-countline { font-size: 14px; color: var(--techwo-mid); margin-top: 4px !important; }
.techwo-ui .techwo-muted { color: var(--techwo-mid); font-size: 14px; }
.techwo-ui .techwo-small { font-size: 14px; }

/* ---------- Stat cards ---------- */
.techwo-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.techwo-ui .techwo-stat {
	background: var(--techwo-white); border: 1px solid var(--techwo-line); border-radius: 22px; padding: 20px 22px;
	display: flex; flex-direction: column; gap: 4px; text-align: left; color: var(--techwo-charcoal); min-width: 0;
	font: inherit; text-decoration: none;
}
.techwo-ui button.techwo-stat, .techwo-ui a.techwo-stat { cursor: pointer; }
.techwo-ui button.techwo-stat:hover, .techwo-ui a.techwo-stat:hover { border-color: var(--techwo-charcoal); }
.techwo-ui .techwo-stat[aria-pressed="true"] { border-color: var(--techwo-charcoal); box-shadow: inset 0 0 0 1px var(--techwo-charcoal); }
.techwo-stat-label { font-size: 13px; font-weight: 600; }
.techwo-stat-value { font-family: var(--techwo-font-head); font-size: 34px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.techwo-ui .techwo-stat-cap { font-size: 12px; color: var(--techwo-mid); }
.techwo-ui .techwo-stat-total { background: #003087; border-color: #003087; color: var(--techwo-white); } /* 1.3.7: total tile #003087 (1.3.3 had #A00D25) */
.techwo-ui .techwo-stat-total .techwo-stat-cap { color: var(--techwo-white); }
.techwo-ui button.techwo-stat-total:hover { border-color: var(--techwo-mid); }

/* Summary tiles */
.techwo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.techwo-tile { background: var(--techwo-light); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--techwo-charcoal); }
.techwo-tile .v { font-family: var(--techwo-font-head); font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.techwo-tile .l { font-size: 13px; font-weight: 600; }
.techwo-ui .techwo-tile .d { font-size: 12px; color: var(--techwo-charcoal); }
.techwo-tile-total { background: var(--techwo-charcoal); color: var(--techwo-white); }
.techwo-ui .techwo-tile-total .d { color: var(--techwo-white); }

/* ---------- Urgent banner ---------- */
.techwo-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; background: var(--techwo-charcoal); color: var(--techwo-white); border-radius: 22px; padding: 14px 16px 14px 22px; font-weight: 600; }
.techwo-banner-text { display: flex; align-items: center; gap: 10px; }
.techwo-ui .techwo-banner .techwo-btn { background: var(--techwo-white); border-color: var(--techwo-white); color: var(--techwo-charcoal); }
.techwo-ui .techwo-banner .techwo-btn:hover { background: var(--techwo-light); border-color: var(--techwo-light); }
.techwo-ui .techwo-banner .techwo-btn:focus-visible { box-shadow: 0 0 0 2px #171717, 0 0 0 4px #FFFFFF; }

/* ---------- Pills, chips, badges ---------- */
.techwo-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; background: var(--techwo-light); color: var(--techwo-charcoal); border: 1px solid var(--techwo-light); justify-self: start; }
.techwo-pill-dark { background: var(--techwo-charcoal); color: var(--techwo-white); border-color: var(--techwo-charcoal); }
.techwo-pill-red { background: var(--techwo-red); color: var(--techwo-white); border-color: var(--techwo-red); }
.techwo-pill-outline { background: var(--techwo-white); color: var(--techwo-charcoal); border-color: var(--techwo-charcoal); }
.techwo-pill-quiet { background: var(--techwo-white); color: var(--techwo-mid); border-color: var(--techwo-line); }
.techwo-pill-white { background: var(--techwo-white); color: var(--techwo-charcoal); border-color: var(--techwo-white); }
.techwo-code { font-family: var(--techwo-mono); font-size: 12.5px; font-weight: 600; background: var(--techwo-light); color: var(--techwo-charcoal); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.techwo-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- Notices ---------- */
.techwo-notices { display: flex; flex-direction: column; gap: 12px; }
.techwo-notices:empty { display: none; }
.techwo-notice {
	display: flex; align-items: center; gap: 14px; background: var(--techwo-white); border: 1px solid var(--techwo-line);
	border-left: 6px solid var(--techwo-mid); border-radius: 16px; padding: 12px 12px 12px 14px; font-size: 14px; font-weight: 600; color: var(--techwo-charcoal);
}
.techwo-notice-err { border-left-color: var(--techwo-charcoal); }
.techwo-notice-icon { width: 34px; height: 34px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--techwo-light); color: var(--techwo-charcoal); }
.techwo-notice-err .techwo-notice-icon { background: var(--techwo-charcoal); color: var(--techwo-white); }
.techwo-notice-msg { flex: 1 1 auto; min-width: 0; }
.techwo-ui .techwo-notice-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--techwo-white); color: var(--techwo-mid); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; }
.techwo-ui .techwo-notice-x:hover { background: var(--techwo-light); color: var(--techwo-charcoal); }

/* ---------- Toolbar ---------- */
.techwo-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.techwo-toolbar-end { margin-left: auto; display: flex; gap: 8px; }
.techwo-search { position: relative; flex: 1 1 260px; min-width: 200px; }
.techwo-search svg.techwo-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--techwo-mid); pointer-events: none; }
.techwo-ui .techwo-search input[type="search"] { padding-left: 44px; border-radius: 999px; }
.techwo-ui .techwo-toolbar select { border-radius: 999px; width: auto; flex: 0 1 190px; min-width: 150px; max-width: 220px; }

/* ---------- Inputs ---------- */
.techwo-ui input[type="text"], .techwo-ui input[type="email"], .techwo-ui input[type="tel"], .techwo-ui input[type="search"], .techwo-ui input[type="number"], .techwo-ui input[type="url"], .techwo-ui select, .techwo-ui textarea {
	width: 100%; max-width: none; min-height: 44px; margin: 0; padding: 10px 14px; line-height: 1.4;
	background: var(--techwo-white); color: var(--techwo-charcoal); border: 1px solid var(--techwo-mid); border-radius: 12px; box-shadow: none; font-size: 15px;
}
.techwo-ui select {
	padding-right: 40px; -webkit-appearance: none; appearance: none; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238490A5' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
}
.techwo-ui select:hover { color: var(--techwo-charcoal); }
.techwo-ui textarea { min-height: 120px; resize: vertical; }
.techwo-ui input:focus, .techwo-ui select:focus, .techwo-ui textarea:focus { border-color: var(--techwo-charcoal); box-shadow: none; outline: none; }
.techwo-ui input:focus-visible, .techwo-ui select:focus-visible, .techwo-ui textarea:focus-visible { border-color: var(--techwo-charcoal); box-shadow: var(--techwo-ring); }
.techwo-ui input[readonly] { background: var(--techwo-light); }
.techwo-ui input::placeholder, .techwo-ui textarea::placeholder { color: var(--techwo-mid); opacity: 1; }
.techwo-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.techwo-ui .techwo-label, .techwo-field > label { font-size: 13px; font-weight: 600; color: var(--techwo-charcoal); }
.techwo-req { color: var(--techwo-charcoal); font-weight: 800; }
.techwo-ui .techwo-hint { font-size: 12px; color: var(--techwo-mid); }
.techwo-ui .techwo-field-error { font-size: 13px; font-weight: 700; color: var(--techwo-charcoal); display: flex; gap: 6px; align-items: baseline; }
.techwo-ui .techwo-field-error::before { content: "!"; display: inline-flex; width: 16px; height: 16px; border-radius: 50%; background: var(--techwo-charcoal); color: var(--techwo-white); font-size: 11px; align-items: center; justify-content: center; flex: none; transform: translateY(2px); }
.techwo-ui .has-error input, .techwo-ui .has-error select, .techwo-ui .has-error textarea { border-color: var(--techwo-charcoal); border-width: 2px; padding: 9px 13px; }
.techwo-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.techwo-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Visually hidden but focusable inputs (segmented toggles, tiles, checkboxes, drop zones). */
.techwo-vh { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; -webkit-appearance: none; appearance: none; }

/* Segmented toggle */
.techwo-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--techwo-light); border-radius: 999px; align-self: flex-start; }
.techwo-seg label { position: relative; cursor: pointer; display: inline-flex; }
.techwo-seg span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--techwo-charcoal); background: var(--techwo-light); }
.techwo-seg label:hover span { background: var(--techwo-white); }
.techwo-seg input:checked + span { background: var(--techwo-charcoal); color: var(--techwo-white); }
.techwo-seg input:focus-visible + span { box-shadow: var(--techwo-ring); }

/* Custom checkbox */
.techwo-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; position: relative; color: var(--techwo-charcoal); }
.techwo-box { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px; border: 1.5px solid var(--techwo-mid); background: var(--techwo-white); display: inline-flex; align-items: center; justify-content: center; color: var(--techwo-white); }
.techwo-ui .techwo-box svg.techwo-icon { width: 12px; height: 12px; visibility: hidden; stroke-width: 3; }
.techwo-ui input:checked + .techwo-box { background: var(--techwo-charcoal); border-color: var(--techwo-charcoal); }
.techwo-ui input:checked + .techwo-box svg.techwo-icon { visibility: visible; }
.techwo-ui input:focus-visible + .techwo-box { box-shadow: var(--techwo-ring); }
.techwo-check-text small { display: block; color: var(--techwo-mid); font-size: 12px; margin-top: 2px; }

/* Option tiles */
.techwo-tiles-opt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.techwo-opt { position: relative; display: flex; cursor: pointer; }
.techwo-opt-body { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--techwo-line); border-radius: 16px; background: var(--techwo-white); font-size: 14px; font-weight: 600; color: var(--techwo-charcoal); }
.techwo-radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--techwo-mid); background: var(--techwo-white); }
.techwo-opt:hover .techwo-opt-body { background: var(--techwo-light); }
.techwo-opt input:checked + .techwo-opt-body { border-color: var(--techwo-charcoal); box-shadow: inset 0 0 0 1px var(--techwo-charcoal); }
.techwo-opt input:checked + .techwo-opt-body .techwo-radio { border: 5px solid var(--techwo-charcoal); }
.techwo-opt input:focus-visible + .techwo-opt-body { box-shadow: var(--techwo-ring); }
.techwo-has-error .techwo-opt-body { border-color: var(--techwo-mid); }

/* Drop zone */
.techwo-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 96px; padding: 18px; border: 2px dashed var(--techwo-mid); border-radius: 16px; background: var(--techwo-white); cursor: pointer; text-align: center; font-size: 14px; color: var(--techwo-charcoal); }
.techwo-drop:hover { background: var(--techwo-light); }
.techwo-drop.is-over { border-style: solid; border-color: var(--techwo-charcoal); background: var(--techwo-light); }
.techwo-drop:focus-within { box-shadow: var(--techwo-ring); }
.techwo-ui .techwo-drop-files { font-size: 12px; color: var(--techwo-mid); }
.techwo-thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.techwo-thumbs:empty { display: none; }
.techwo-thumb { position: relative; width: 112px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--techwo-line); background: var(--techwo-light); }
.techwo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.techwo-ui .techwo-thumb-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--techwo-line); background: var(--techwo-white); color: var(--techwo-charcoal); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.techwo-ui .techwo-thumb-x:hover { background: var(--techwo-charcoal); color: var(--techwo-white); border-color: var(--techwo-charcoal); }
.techwo-ui .techwo-thumb-x svg.techwo-icon { width: 14px; height: 14px; }

/* ---------- Forms with numbered sections + steps rail ---------- */
.techwo-formwrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.techwo-rail { position: sticky; top: 48px; background: var(--techwo-white); border: 1px solid var(--techwo-line); border-radius: 22px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.techwo-ui .techwo-rail a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px 6px 8px; border-radius: 999px; text-decoration: none; color: var(--techwo-charcoal); font-size: 14px; font-weight: 600; }
.techwo-ui .techwo-rail a:hover { background: var(--techwo-light); }
.techwo-rail-num { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--techwo-light); color: var(--techwo-charcoal); font-size: 13px; font-weight: 700; flex: none; }
.techwo-ui .techwo-rail a[aria-current="step"] { background: var(--techwo-charcoal); color: var(--techwo-white); }
.techwo-ui .techwo-rail a[aria-current="step"] .techwo-rail-num { background: var(--techwo-white); color: var(--techwo-charcoal); }
.techwo-form { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.techwo-ui .techwo-section { background: var(--techwo-white); border: 1px solid var(--techwo-line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; scroll-margin-top: 32px; }
.techwo-ui .techwo-section > legend { float: left; width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.techwo-ui .techwo-section > legend + * { clear: both; }
.techwo-step { width: 32px; height: 32px; border-radius: 50%; background: var(--techwo-charcoal); color: var(--techwo-white); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; grid-row: span 2; }
.techwo-legend-title { font-family: var(--techwo-font-head); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.techwo-ui .techwo-legend-hint { font-size: 14px; font-weight: 400; color: var(--techwo-mid); grid-column: 2; }
.techwo-savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--techwo-white); border: 1px solid var(--techwo-line); border-radius: 999px; padding: 10px; }
.techwo-ui .techwo-savebar-note { font-size: 14px; color: var(--techwo-mid); padding: 0 8px; }
.techwo-savebar-end { margin-left: auto; display: flex; gap: 10px; }
.techwo-ui .techwo-form-error { font-size: 14px; font-weight: 700; color: var(--techwo-charcoal); padding: 0 8px; }

/* Success */
.techwo-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 48px 24px; }
.techwo-ui .techwo-success h2 { font-family: var(--techwo-font-head); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.techwo-ui .techwo-ref { font-family: var(--techwo-mono); font-size: 30px; font-weight: 700; background: var(--techwo-light); border-radius: 999px; padding: 8px 26px; }
.techwo-ui .techwo-callout { border-left: 6px solid var(--techwo-charcoal); background: var(--techwo-light); border-radius: 16px; padding: 14px 18px; text-align: left; max-width: 620px; }

/* ---------- Tables ---------- */
.techwo-table-wrap { position: relative; overflow-x: auto; }
.techwo-ui table.techwo-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: var(--techwo-white); border: 0; margin: 0; }
.techwo-ui .techwo-table th { background: var(--techwo-light); color: var(--techwo-charcoal); font-size: 12px; font-weight: 700; text-align: left; padding: 12px 16px; white-space: nowrap; border: 0; }
.techwo-ui .techwo-table th:first-child { border-radius: 12px 0 0 12px; }
.techwo-ui .techwo-table th:last-child { border-radius: 0 12px 12px 0; }
.techwo-ui .techwo-table th a { color: var(--techwo-charcoal); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; }
.techwo-ui .techwo-table th a:hover { text-decoration: underline; }
.techwo-sort-ind { font-size: 11px; width: 10px; display: inline-block; }
.techwo-ui .techwo-table td { padding: 16px; border: 0; border-bottom: 1px solid var(--techwo-line); vertical-align: middle; color: var(--techwo-charcoal); background: var(--techwo-white); }
.techwo-ui .techwo-table tbody tr:last-child td { border-bottom: 0; }
.techwo-ui .techwo-table tbody tr.is-row { cursor: pointer; }
.techwo-ui .techwo-table tbody tr.is-row:hover td { background: var(--techwo-light); }
.techwo-ui .techwo-table tfoot td { font-weight: 700; border-top: 1px solid var(--techwo-charcoal); border-bottom: 0; }
.techwo-ui .techwo-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.techwo-ui .techwo-cell-main { font-weight: 600; display: block; }
.techwo-ui .techwo-cell-sub { display: block; font-size: 13px; color: var(--techwo-mid); max-width: 34ch; overflow-wrap: anywhere; }
.techwo-rowact { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.techwo-ui .techwo-table select { min-height: 36px; padding: 4px 32px 4px 12px; border-radius: 999px; font-size: 13px; width: 150px; max-width: 100%; background-position: right 12px center; }
.techwo-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; }
.techwo-pager > div { display: flex; gap: 8px; }
.techwo-ui .techwo-empty { text-align: center; color: var(--techwo-mid); padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.techwo-ui .techwo-empty p { max-width: 52ch; }

/* ---------- Stats ---------- */
.techwo-seg-btns { display: inline-flex; gap: 4px; padding: 4px; background: var(--techwo-light); border-radius: 999px; }
.techwo-ui .techwo-seg-btns button { min-height: 36px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--techwo-light); color: var(--techwo-charcoal); font-weight: 600; font-size: 14px; cursor: pointer; }
.techwo-ui .techwo-seg-btns button:hover { background: var(--techwo-white); }
.techwo-ui .techwo-seg-btns button[aria-pressed="true"] { background: var(--techwo-charcoal); color: var(--techwo-white); }
.techwo-chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; height: 220px; border-bottom: 1px solid var(--techwo-charcoal); }
.techwo-chart-col { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; min-width: 0; }
.techwo-chart-col span { width: min(16px, 42%); border-radius: 6px 6px 0 0; min-height: 2px; }
.techwo-chart-col .c { background: var(--techwo-charcoal); }
.techwo-chart-col .d { background: var(--techwo-white); border: 1.5px solid var(--techwo-charcoal); border-bottom: 0; }
.techwo-chart-x { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; font-size: 12px; text-align: center; margin-top: 8px; color: var(--techwo-charcoal); }
.techwo-chart-x span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.techwo-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.techwo-legend span { display: inline-flex; align-items: center; gap: 8px; }
.techwo-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; background: var(--techwo-charcoal); }
.techwo-legend i.d { background: var(--techwo-white); border: 1.5px solid var(--techwo-charcoal); }
.techwo-rank { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }
.techwo-rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 14px; }
.techwo-meter { grid-column: 1 / -1; height: 6px; background: var(--techwo-light); border-radius: 999px; overflow: hidden; }
.techwo-meter > span { display: block; height: 100%; background: var(--techwo-charcoal); border-radius: 999px; }
.techwo-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- Dialog (detail and full form) ---------- */
.techwo-ui .techwo-dialog { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; background: var(--techwo-light); color: var(--techwo-charcoal); font-family: var(--techwo-font); }
.techwo-ui .techwo-dialog::backdrop { background: var(--techwo-light); }
.techwo-dialog-inner { container-type: inline-size; max-width: 1240px; margin: 0 auto; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.techwo-dlg-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.techwo-dlg-cols > div { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.techwo-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; font-size: 14px; margin-top: 14px !important; }
.techwo-dl dt { color: var(--techwo-mid); }
.techwo-dl dd { margin: 0; font-weight: 600; word-break: break-word; }
.techwo-ui .techwo-desc { background: var(--techwo-light); border-radius: 16px; padding: 16px 18px; white-space: pre-wrap; word-break: break-word; margin-top: 14px; }
.techwo-activity { list-style: none; margin: 14px 0 0 !important; padding: 0; display: flex; flex-direction: column; }
.techwo-activity li { position: relative; padding: 12px 0 12px 20px; border-bottom: 1px solid var(--techwo-line); font-size: 14px; }
.techwo-activity li:last-child { border-bottom: 0; }
.techwo-activity li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--techwo-charcoal); }
.techwo-activity li.a-note::before { background: var(--techwo-white); box-shadow: inset 0 0 0 2px var(--techwo-charcoal); }
.techwo-activity small { display: block; font-size: 12px; color: var(--techwo-mid); }
.techwo-activity .t { white-space: pre-wrap; word-break: break-word; }
.techwo-form-stack { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }

/* Photo viewer */
.techwo-ui .techwo-viewer { position: fixed; inset: 0; z-index: 100000; background: var(--techwo-charcoal); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 64px 16px 24px; }
.techwo-ui .techwo-viewer img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 12px; }
.techwo-ui .techwo-viewer-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--techwo-white); background: var(--techwo-charcoal); color: var(--techwo-white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.techwo-ui .techwo-viewer-close:hover { background: var(--techwo-mid); }
.techwo-ui .techwo-viewer .techwo-viewer-close:focus-visible, .techwo-ui .techwo-viewer .techwo-btn:focus-visible { box-shadow: 0 0 0 2px #171717, 0 0 0 4px #FFFFFF; }

/* Login / no access */
.techwo-login { max-width: 560px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; padding: 40px 32px; }
.techwo-ui .techwo-login h2 { font-family: var(--techwo-font-head); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.techwo-ui .techwo-eyebrow { font-family: var(--techwo-font-head); font-size: 16px; font-weight: 700; }

/* Settings */
.techwo-switch { display: flex; align-items: center; gap: 12px; margin: 0; }
.techwo-ui .techwo-switch .techwo-seg-btns button { min-height: 40px; min-width: 64px; }
.techwo-banner form { margin: 0; }
.techwo-settings-form { display: flex; flex-direction: column; gap: 20px; margin-top: 18px; }
.techwo-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.techwo-ui .techwo-group { border: 1px solid var(--techwo-line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.techwo-ui .techwo-group > legend { font-family: var(--techwo-font-head); font-size: 17px; font-weight: 700; padding: 0 6px; margin-left: -6px; }
.techwo-sublabel { font-size: 13px; font-weight: 600; margin-top: 6px; }
.techwo-details { border: 1px solid var(--techwo-line); border-radius: 16px; padding: 14px 18px; }
.techwo-details summary { cursor: pointer; font-weight: 700; }
.techwo-details[open] summary { margin-bottom: 12px; }
.techwo-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 12px; }
.techwo-subhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 28px 0 14px; padding-top: 22px; border-top: 1px solid var(--techwo-line); }
.techwo-inline-forms { display: flex; gap: 8px; flex-wrap: wrap; }
.techwo-inline-forms form { margin: 0; }
.techwo-people { max-height: 300px; overflow-y: auto; border: 1px solid var(--techwo-line); border-radius: 16px; position: relative; }
.techwo-person { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--techwo-line); position: relative; }
.techwo-ui .techwo-person .techwo-seg span { min-height: 36px; padding: 0 14px; font-size: 13px; }
.techwo-ui .techwo-person .techwo-pill { min-height: 36px; padding: 0 14px; font-size: 13px; }
.techwo-access-types { margin-bottom: 4px; }
.techwo-addpeople { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; padding: 18px; border: 1px solid var(--techwo-line); border-radius: 16px; background: var(--techwo-light); }
.techwo-addpeople .techwo-search { flex: none; }
.techwo-addpeople .techwo-people { background: var(--techwo-white); max-height: 300px; }
.techwo-person-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.techwo-people { max-height: 520px; }
.techwo-person:last-child { border-bottom: 0; }
.techwo-person:hover { background: var(--techwo-light); }
.techwo-person-text { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.techwo-person-text small { color: var(--techwo-mid); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Responsive (container queries on the wrapper) ---------- */
/* ---------- Additions from FACILITIES WORK ORDER SYSTEM: photo sets, import dialog ---------- */
.techwo-ui .techwo-photo-head { font-family: var(--techwo-font); font-size: 13px; font-weight: 700; margin: 18px 0 10px; }
.techwo-imp-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.techwo-ui .techwo-imp-steps li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px 6px 8px; border-radius: 999px; background: var(--techwo-white); border: 1px solid var(--techwo-line); font-size: 14px; font-weight: 600; color: var(--techwo-charcoal); }
.techwo-ui .techwo-imp-steps li[aria-current="step"] { background: var(--techwo-charcoal); border-color: var(--techwo-charcoal); color: var(--techwo-white); }
.techwo-ui .techwo-imp-steps li[aria-current="step"] .techwo-rail-num { background: var(--techwo-white); color: var(--techwo-charcoal); }
.techwo-imp-issues { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.techwo-ui .techwo-imp-issues li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--techwo-line); font-size: 14px; }
.techwo-ui .techwo-imp-issues li:last-child { border-bottom: 0; }
.techwo-ui .techwo-imp-issues .techwo-pill { flex: none; }
.techwo-import-dialog .techwo-dialog-inner { max-width: 1100px; }
.techwo-banner + .techwo-banner { margin-top: 12px; }
.techwo-ui .techwo-table .techwo-col-desc { min-width: 220px; max-width: 340px; }
.techwo-ui .techwo-desc-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; white-space: normal; word-break: break-word; font-size: 14px; line-height: 1.45; color: var(--techwo-charcoal); }
@container (max-width: 760px) { .techwo-ui .techwo-table .techwo-col-desc { min-width: 0; max-width: none; } }
/* All work orders (with the description column): wrap between words only, and stack actions and status pills so the table fits. */
.techwo-ui .techwo-table-all .techwo-cell-sub { overflow-wrap: break-word; }
.techwo-ui .techwo-table-all td[data-label="Request"] { min-width: 140px; }
.techwo-ui .techwo-table-all .techwo-col-desc { min-width: 180px; }
.techwo-due-age { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.techwo-ui .techwo-table-all th, .techwo-ui .techwo-table-all td { padding-left: 12px; padding-right: 12px; }
/* High - Safety Hazard: a red "High" pill with "Safety Hazard" in small gray text below (charcoal on gray hover rows, for contrast). */
.techwo-ui .techwo-pri-high { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.techwo-ui .techwo-pri-sub { font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--techwo-mid); white-space: nowrap; }
.techwo-ui .techwo-table tbody tr.is-row:hover .techwo-pri-sub { color: var(--techwo-charcoal); }
/* Low / Medium priority: a white pill with a hairline border (Medium charcoal text, Low gray), distinct from the status pills. */
.techwo-ui .techwo-pill-pri { background: var(--techwo-white); border-color: var(--techwo-line); color: var(--techwo-charcoal); font-weight: 500; }
.techwo-ui .techwo-pill-pri-low { color: var(--techwo-mid); }
/* Notes under the description (All work orders): charcoal left bar, small uppercase label. */
.techwo-ui .techwo-note-callout { display: block; margin-top: 10px; padding: 2px 0 2px 10px; border-left: 3px solid var(--techwo-charcoal); }
.techwo-ui .techwo-note-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--techwo-charcoal); line-height: 1.4; }
.techwo-ui .techwo-note-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; white-space: pre-line; word-break: break-word; font-size: 13px; line-height: 1.45; color: var(--techwo-charcoal); }
.techwo-ui .techwo-note-meta { display: block; margin-top: 2px; font-size: 12px; color: var(--techwo-mid); }
.techwo-ui .techwo-table tbody tr.is-row:hover .techwo-note-meta { color: var(--techwo-charcoal); }
.techwo-ui .techwo-table-all td[data-label="Status"] .techwo-pills { flex-direction: column; align-items: flex-start; }
.techwo-ui .techwo-table-all .techwo-rowact { flex-direction: column; align-items: stretch; }
@container (max-width: 760px) {
	.techwo-ui .techwo-table-all td[data-label="Request"] { min-width: 0; }
	.techwo-ui .techwo-table-all .techwo-rowact { flex-direction: row; }
}

@container (max-width: 1180px) {
	.techwo-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.techwo-stats .techwo-stat-total { grid-column: 1 / -1; order: 99; }
}
@container (max-width: 980px) {
	.techwo-formwrap { grid-template-columns: minmax(0, 1fr); }
	.techwo-rail { display: none; }
	.techwo-dlg-cols, .techwo-grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 900px) {
	.techwo-header { flex-wrap: wrap; padding: 12px; border-radius: 22px; }
	.techwo-header-name { padding-left: 10px; }
	.techwo-asof { margin-left: auto; }
	.techwo-nav { order: 3; flex: 1 1 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; position: relative; }
	.techwo-nav::-webkit-scrollbar { display: none; }
	.techwo-settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 760px) {
	.techwo-card, .techwo-ui .techwo-section { padding: 20px; }
	.techwo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.techwo-stat-value { font-size: 28px; }
	.techwo-tiles-opt { grid-template-columns: minmax(0, 1fr); }
	.techwo-toolbar { flex-direction: column; align-items: stretch; }
	.techwo-search { flex: none; min-width: 0; }
	.techwo-ui .techwo-toolbar select { width: 100%; max-width: none; flex: none; }
	.techwo-toolbar-end { margin-left: 0; }
	.techwo-page-actions { width: 100%; }
	.techwo-page-actions .techwo-btn { flex: 1 1 0; padding: 0 14px; }
	.techwo-ui table.techwo-table thead { display: none; }
	.techwo-ui table.techwo-table, .techwo-ui .techwo-table tbody, .techwo-ui .techwo-table tfoot, .techwo-ui .techwo-table tr { display: block; width: 100%; }
	.techwo-ui .techwo-table tr { border: 1px solid var(--techwo-line); border-radius: 16px; margin-bottom: 12px; padding: 0; background: var(--techwo-white); overflow: hidden; }
	.techwo-ui .techwo-table tfoot tr { border-color: var(--techwo-charcoal); }
	.techwo-ui .techwo-table td { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 16px; border: 0; text-align: left; }
	.techwo-ui .techwo-table td.num { text-align: left; }
	.techwo-ui .techwo-table td::before { content: attr(data-label); font-size: 12px; font-weight: 600; color: var(--techwo-charcoal); padding-top: 2px; }
	.techwo-ui .techwo-table td > * { justify-self: start; }
	.techwo-ui .techwo-table tbody tr.is-row:hover { background: var(--techwo-light); }
	.techwo-ui .techwo-table td:first-child { border-radius: 16px 16px 0 0; }
	.techwo-ui .techwo-table td:last-child { border-radius: 0 0 16px 16px; }
	.techwo-rowact { justify-content: flex-start; }
	.techwo-ui .techwo-table .techwo-code { white-space: normal; word-break: break-all; }
	.techwo-ui .techwo-cell-sub { max-width: 100%; }
	.techwo-chart { height: 180px; }
	.techwo-chart-x span:nth-child(even) { visibility: hidden; }
	.techwo-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.techwo-dl dd { margin-bottom: 10px; }
	.techwo-contacts { grid-template-columns: minmax(0, 1fr); }
	.techwo-dialog-inner { padding: 16px; }
}
@container (max-width: 640px) {
	.techwo-grid-2 { grid-template-columns: minmax(0, 1fr); }
	.techwo-person-actions { width: 100%; }
	.techwo-person .techwo-seg { flex: 1 1 auto; }
	.techwo-person .techwo-seg label { flex: 1 1 0; }
	.techwo-ui .techwo-person .techwo-seg span { width: 100%; justify-content: center; padding: 0 8px; }
}
@container (max-width: 560px) {
	.techwo-savebar { border-radius: 22px; }
	.techwo-savebar-end { margin-left: 0; width: 100%; }
	.techwo-savebar-end .techwo-btn, .techwo-savebar > .techwo-btn { flex: 1 1 auto; }
	.techwo-ui .techwo-savebar-note { flex: 1 1 100%; }
	.techwo-header-name { flex: 1 1 100%; }
	.techwo-asof { margin-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.techwo-ui .techwo-btn.is-busy::before { animation: none; }
}

/* ---------- Email logo (1.1.0): Settings → Notifications ---------- */
.techwo-ui .techwo-logo-field { margin-top: 20px; }
.techwo-ui .techwo-logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 8px 0 12px; }
.techwo-ui .techwo-logo-preview { display: flex; align-items: center; justify-content: flex-start; min-width: 240px; min-height: 96px; padding: 20px; background: var(--techwo-white); border: 1px solid var(--techwo-line); border-radius: 12px; }
.techwo-ui .techwo-logo-preview img { display: block; max-width: 240px; max-height: 56px; width: auto; height: auto; }
.techwo-ui .techwo-logo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.techwo-ui .techwo-logo-field input[type="url"] { max-width: 520px; }
@media (max-width: 600px) { .techwo-ui .techwo-logo-preview { min-width: 0; width: 100%; } }

/* =====================================================================
 * Soft SaaS layer (1.2.0)
 * ===================================================================== */
.techwo-ui { color: var(--techwo-ink); font-size: 15px; }
.techwo-ui a, .techwo-ui button, .techwo-ui input, .techwo-ui select, .techwo-ui textarea, .techwo-ui .techwo-btn, .techwo-ui .techwo-stat, .techwo-ui .techwo-card, .techwo-ui .techwo-opt-body, .techwo-ui .techwo-table td, .techwo-ui .techwo-nav-pill {
	transition: background-color var(--techwo-ease), color var(--techwo-ease), border-color var(--techwo-ease), box-shadow var(--techwo-ease), transform var(--techwo-ease);
}
.techwo-ui ::selection { background: var(--techwo-slate); color: #FFFFFF; }
.techwo-ui h1, .techwo-ui h2, .techwo-ui h3, .techwo-ui h4 { font-weight: 600; }
.techwo-canvas { background: var(--techwo-bg); gap: 24px; }
.techwo-ui.techwo-front { background: var(--techwo-bg); }

/* Header: floating bar with icon navigation */
.techwo-header { background: var(--techwo-surface); border: 0; border-radius: 18px; box-shadow: var(--techwo-shadow); padding: 8px 10px 8px 22px; min-height: 60px; }
.techwo-header-name { min-width: 0; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--techwo-slate); }
.techwo-nav { gap: 14px; }
.techwo-ui .techwo-nav-pill { min-height: 40px; padding: 0 16px; border-radius: 12px; color: var(--techwo-sub); background: transparent; font-weight: 500; }
.techwo-ui .techwo-nav-pill .techwo-nav-ic { color: var(--techwo-faint); width: 17px; height: 17px; }
.techwo-ui .techwo-nav-pill:hover { background: var(--techwo-soft); color: var(--techwo-ink); }
.techwo-ui .techwo-nav-pill:hover .techwo-nav-ic { color: var(--techwo-ink); }
.techwo-ui .techwo-nav-pill[aria-current="page"] { background: var(--techwo-soft); color: var(--techwo-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--techwo-hair); }
.techwo-ui .techwo-nav-pill[aria-current="page"] .techwo-nav-ic { color: var(--techwo-slate); }
.techwo-nav-count, .techwo-nav-pill[aria-current="page"] .techwo-nav-count { background: var(--techwo-purple-bg); color: var(--techwo-purple); font-weight: 600; }
.techwo-asof { color: var(--techwo-sub); font-size: 12.5px; }
.techwo-asof::before { background: #8490A5; box-shadow: none; }

/* Page heading: medium weight, not oversized */
.techwo-ui .techwo-title { font-size: clamp(24px, 1.2vw + 16px, 30px); font-weight: 600; letter-spacing: -0.02em; color: var(--techwo-ink); }
.techwo-ui .techwo-intro { font-size: 15px; color: var(--techwo-sub); margin-top: 6px !important; }

/* Buttons: compact, softly rounded */
.techwo-ui .techwo-btn { min-height: 40px; padding: 0 16px; border-radius: 12px; border-color: var(--techwo-hair); background: var(--techwo-surface); color: var(--techwo-ink); font-size: 14px; font-weight: 600; }
.techwo-ui .techwo-btn:hover { background: var(--techwo-soft); border-color: #D8DFEA; color: var(--techwo-ink); }
.techwo-ui .techwo-btn-primary, .techwo-ui .techwo-btn-red { background: var(--techwo-slate); border-color: var(--techwo-slate); color: #FFFFFF; box-shadow: 0 1px 2px rgba(37, 50, 75, .12), 0 4px 12px rgba(52, 61, 88, .18); }
.techwo-ui .techwo-btn-primary:hover, .techwo-ui .techwo-btn-red:hover { background: var(--techwo-slate-hover); border-color: var(--techwo-slate-hover); color: #FFFFFF; transform: translateY(-1px); }
.techwo-ui .techwo-btn-quiet { background: transparent; border-color: transparent; }
.techwo-ui .techwo-btn-quiet:hover { background: var(--techwo-soft); border-color: transparent; }
.techwo-ui .techwo-btn-edit { background: var(--techwo-soft); border-color: var(--techwo-soft); }
.techwo-ui .techwo-btn-edit:hover { background: var(--techwo-slate); border-color: var(--techwo-slate); color: #FFFFFF; }
.techwo-ui .techwo-btn-delete { color: var(--techwo-err); font-weight: 600; }
.techwo-ui .techwo-btn-delete:hover { background: var(--techwo-err-bg); border-color: var(--techwo-err-bg); color: var(--techwo-err); }
.techwo-ui .techwo-btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.techwo-ui .techwo-btn-xs { min-height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.techwo-ui .techwo-btn[disabled] { color: var(--techwo-faint); }
.techwo-ui .techwo-btn.is-busy::before { border-color: var(--techwo-hair); border-top-color: var(--techwo-slate); }
.techwo-ui .techwo-btn-primary.is-busy::before, .techwo-ui .techwo-btn-red.is-busy::before { border-color: rgba(255, 255, 255, .35); border-top-color: #FFFFFF; }

/* Cards: floating, borderless */
.techwo-card, .techwo-ui .techwo-section, .techwo-rail { background: var(--techwo-surface); border: 0; border-radius: var(--techwo-radius); box-shadow: var(--techwo-shadow); }
.techwo-card { padding: 24px; }
.techwo-ui .techwo-card-title { font-size: 16px; font-weight: 600; }
.techwo-ui .techwo-section-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.techwo-ui .techwo-countline, .techwo-ui .techwo-muted { color: var(--techwo-sub); }

/* KPI cards: label, value, pastel meter (no icons since 1.2.1) */
.techwo-ui .techwo-stat { background: var(--techwo-surface); border: 0; border-radius: var(--techwo-radius); box-shadow: var(--techwo-shadow); padding: 18px 20px; gap: 8px; }
.techwo-ui button.techwo-stat:hover, .techwo-ui a.techwo-stat:hover { border-color: transparent; box-shadow: var(--techwo-shadow-hover); transform: translateY(-2px); }
.techwo-ui .techwo-stat[aria-pressed="true"] { box-shadow: var(--techwo-shadow), inset 0 0 0 2px var(--techwo-slate); }
.techwo-stat-top { display: flex; align-items: center; gap: 10px; }
.techwo-stat-ic { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--techwo-lav-bg); color: var(--techwo-lav); }
.techwo-ui .techwo-stat-ic svg.techwo-icon { width: 17px; height: 17px; }
.techwo-stat-label { font-size: 13px; font-weight: 500; color: var(--techwo-sub); }
.techwo-stat-value { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--techwo-ink); margin-top: 2px; }
.techwo-stat-bar { display: block; height: 6px; border-radius: 999px; background: var(--techwo-soft); overflow: hidden; }
.techwo-stat-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--techwo-lav); }
.techwo-ui .techwo-stat-cap { font-size: 12px; color: var(--techwo-sub); }
.techwo-stat[data-stat="open"] .techwo-stat-ic { background: var(--techwo-blue-bg); color: var(--techwo-blue); }
.techwo-stat[data-stat="open"] .techwo-stat-bar > span { background: #7FA3E8; }
.techwo-stat[data-stat="assigned"] .techwo-stat-ic { background: var(--techwo-purple-bg); color: var(--techwo-purple); }
.techwo-stat[data-stat="assigned"] .techwo-stat-bar > span { background: #8490A5; }
.techwo-stat[data-stat="in_progress"] .techwo-stat-ic { background: var(--techwo-peach-bg); color: var(--techwo-peach); }
.techwo-stat[data-stat="in_progress"] .techwo-stat-bar > span { background: #003087; }
.techwo-stat[data-stat="on_hold"] .techwo-stat-ic { background: var(--techwo-warn-bg); color: var(--techwo-warn); }
.techwo-stat[data-stat="on_hold"] .techwo-stat-bar > span { background: #9A5B13; } /* 1.2.8: #EDC07E removed */
.techwo-ui .techwo-stat-total { background: #003087; color: #FFFFFF; } /* 1.3.7: total tile #003087 (1.3.3 had #A00D25) */
.techwo-ui .techwo-stat-total .techwo-stat-label, .techwo-ui .techwo-stat-total .techwo-stat-value, .techwo-ui .techwo-stat-total .techwo-stat-cap { color: #FFFFFF; }
.techwo-ui .techwo-stat-total .techwo-stat-ic { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.techwo-ui .techwo-stat-total[aria-pressed="true"] { box-shadow: var(--techwo-shadow), inset 0 0 0 2px #FFFFFF; }

/* Summary tiles (Settings, import, statistics) */
.techwo-tile { background: var(--techwo-soft); border-radius: 16px; }
.techwo-tile .v { font-size: 24px; font-weight: 600; }
.techwo-tile .l { font-weight: 500; color: var(--techwo-sub); }
.techwo-ui .techwo-tile .d { color: var(--techwo-sub); }
.techwo-tile-total { background: var(--techwo-slate); }
.techwo-ui .techwo-tile-total .l, .techwo-ui .techwo-tile-total .d { color: #FFFFFF; }

/* Banners: soft tinted alerts */
.techwo-banner { background: var(--techwo-err-bg); color: var(--techwo-err); border-radius: 16px; padding: 10px 10px 10px 18px; font-weight: 600; font-size: 14px; }
.techwo-banner-due { background: var(--techwo-warn-bg); color: var(--techwo-warn); }
.techwo-ui .techwo-banner .techwo-btn { background: #FFFFFF; border-color: #FFFFFF; color: var(--techwo-ink); box-shadow: 0 1px 2px rgba(37, 50, 75, .08); }
.techwo-ui .techwo-banner .techwo-btn:hover { background: var(--techwo-surface); color: var(--techwo-ink); transform: translateY(-1px); }
.techwo-ui .techwo-banner .techwo-btn:focus-visible { box-shadow: var(--techwo-ring); }
.techwo-banner + .techwo-banner { margin-top: 10px; }

/* Pills: pastel, borderless */
.techwo-pill { min-height: 24px; padding: 2px 10px; border: 0; background: var(--techwo-soft); color: #4A5671; font-weight: 600; font-size: 12px; }
.techwo-pill-dark { background: #E4E8F0; color: var(--techwo-ink); }
.techwo-pill-outline { background: #FFFFFF; color: var(--techwo-ink); box-shadow: inset 0 0 0 1px #D8DFEA; }
.techwo-pill-quiet { background: var(--techwo-soft); color: var(--techwo-sub); }
.techwo-pill-white { background: #FFFFFF; color: var(--techwo-ink); }
.techwo-pill-red { background: var(--techwo-err-bg); color: var(--techwo-err); }
.techwo-pill.techwo-st-open { background: var(--techwo-blue-bg); color: var(--techwo-blue); box-shadow: none; }
.techwo-pill.techwo-st-assigned { background: var(--techwo-purple-bg); color: var(--techwo-purple); }
.techwo-pill.techwo-st-in_progress { background: var(--techwo-peach-bg); color: var(--techwo-peach); }
.techwo-pill.techwo-st-on_hold { background: var(--techwo-warn-bg); color: var(--techwo-warn); }
.techwo-pill.techwo-st-completed { background: var(--techwo-mint-bg); color: var(--techwo-mint); }
.techwo-pill[class*="techwo-st-"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.techwo-pill.techwo-due-over { background: var(--techwo-err-bg); color: var(--techwo-err); }
.techwo-pill.techwo-due-today { background: var(--techwo-warn-bg); color: var(--techwo-warn); }
.techwo-pill.techwo-due-soon { background: #FFFFFF; color: var(--techwo-ink); box-shadow: inset 0 0 0 1px #D8DFEA; }
.techwo-pill.techwo-age-old { background: var(--techwo-warn-bg); color: var(--techwo-warn); }
.techwo-pill.techwo-age-mid { background: #FFFFFF; color: var(--techwo-ink); box-shadow: inset 0 0 0 1px #D8DFEA; }
.techwo-ui .techwo-pill-pri { background: var(--techwo-soft); color: var(--techwo-ink); box-shadow: none; font-weight: 500; }
.techwo-ui .techwo-pill-pri-low { color: var(--techwo-sub); }
.techwo-ui .techwo-pri-sub { color: var(--techwo-sub); }
.techwo-ui .techwo-table tbody tr.is-row:hover .techwo-pri-sub, .techwo-ui .techwo-table tbody tr.is-row:hover .techwo-note-meta { color: var(--techwo-sub); }
.techwo-code { background: var(--techwo-soft); color: var(--techwo-slate); }

/* Notices: toast-like cards */
.techwo-notice { border: 0; border-left: 0; border-radius: 14px; box-shadow: var(--techwo-shadow-hover); font-weight: 500; }
.techwo-notice-icon { background: var(--techwo-mint-bg); color: var(--techwo-mint); border-radius: 10px; }
.techwo-notice-err .techwo-notice-icon { background: var(--techwo-err-bg); color: var(--techwo-err); }
.techwo-ui .techwo-notice-x { background: transparent; }

/* Inputs: rounded, calm */
.techwo-ui input[type="text"], .techwo-ui input[type="email"], .techwo-ui input[type="tel"], .techwo-ui input[type="search"], .techwo-ui input[type="number"], .techwo-ui input[type="url"], .techwo-ui input[type="date"], .techwo-ui select, .techwo-ui textarea {
	min-height: 42px; border: 1px solid #DCE2EC; border-radius: 12px; background-color: #FFFFFF; color: var(--techwo-ink); font-size: 15px;
}
.techwo-ui input:hover, .techwo-ui select:hover, .techwo-ui textarea:hover { border-color: #C9D2E0; }
.techwo-ui input:focus, .techwo-ui select:focus, .techwo-ui textarea:focus, .techwo-ui input:focus-visible, .techwo-ui select:focus-visible, .techwo-ui textarea:focus-visible { border-color: var(--techwo-slate); box-shadow: var(--techwo-ring); }
.techwo-ui input::placeholder, .techwo-ui textarea::placeholder { color: var(--techwo-faint); }
.techwo-ui input[readonly] { background: var(--techwo-soft); }
.techwo-ui .techwo-label, .techwo-field > label { font-size: 13px; font-weight: 500; color: var(--techwo-ink); }
.techwo-req { color: var(--techwo-err); font-weight: 600; }
.techwo-ui .techwo-hint { color: var(--techwo-sub); }
.techwo-ui .techwo-field-error { color: var(--techwo-err); font-weight: 600; }
.techwo-ui .techwo-field-error::before { background: var(--techwo-err); }
.techwo-ui .has-error input, .techwo-ui .has-error select, .techwo-ui .has-error textarea { border-color: var(--techwo-err); border-width: 1px; padding: 10px 14px; box-shadow: 0 0 0 3px var(--techwo-err-bg); }
.techwo-ui .techwo-form-error { color: var(--techwo-err); }
.techwo-ui .techwo-search input[type="search"] { border-radius: 12px; background-color: var(--techwo-soft); border-color: transparent; }
.techwo-ui .techwo-search input[type="search"]:focus { background-color: #FFFFFF; border-color: var(--techwo-slate); }
.techwo-ui .techwo-toolbar select { border-radius: 12px; }
.techwo-search svg.techwo-icon { color: var(--techwo-faint); }

/* Segmented controls, checkboxes, toggles */
.techwo-seg, .techwo-seg-btns { background: var(--techwo-soft); border-radius: 12px; padding: 4px; }
.techwo-seg span, .techwo-ui .techwo-seg-btns button { background: transparent; border-radius: 9px; color: var(--techwo-sub); font-weight: 500; min-height: 36px; }
.techwo-seg label:hover span, .techwo-ui .techwo-seg-btns button:hover { background: rgba(255, 255, 255, .7); color: var(--techwo-ink); }
.techwo-seg input:checked + span, .techwo-ui .techwo-seg-btns button[aria-pressed="true"] { background: #FFFFFF; color: var(--techwo-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(37, 50, 75, .08), 0 2px 8px rgba(37, 50, 75, .06); }
.techwo-box { border-radius: 6px; border: 1.5px solid #C3CCDA; }
.techwo-ui input:checked + .techwo-box { background: var(--techwo-slate); border-color: var(--techwo-slate); }
.techwo-radio { border-color: #C3CCDA; }
.techwo-opt-body { border: 1px solid var(--techwo-hair); border-radius: 14px; font-weight: 500; }
.techwo-opt:hover .techwo-opt-body { background: var(--techwo-soft); }
.techwo-opt input:checked + .techwo-opt-body { border-color: var(--techwo-slate); box-shadow: inset 0 0 0 1px var(--techwo-slate); background: #F7F8FC; }
.techwo-opt input:checked + .techwo-opt-body .techwo-radio { border-color: var(--techwo-slate); }
.techwo-drop { border: 1.5px dashed #C3CCDA; border-radius: 16px; background: var(--techwo-soft); }
.techwo-drop:hover, .techwo-drop.is-over { background: #EEF2F8; border-color: var(--techwo-slate); }
.techwo-thumb { border: 0; border-radius: 12px; box-shadow: var(--techwo-shadow); }
.techwo-ui .techwo-thumb-x:hover { background: var(--techwo-err); border-color: var(--techwo-err); }

/* Forms: step rail and numbered sections */
.techwo-ui .techwo-rail a { border-radius: 12px; font-weight: 500; color: var(--techwo-sub); }
.techwo-ui .techwo-rail a:hover { background: var(--techwo-soft); color: var(--techwo-ink); }
.techwo-rail-num { background: var(--techwo-soft); color: var(--techwo-sub); font-weight: 600; }
.techwo-ui .techwo-rail a[aria-current="step"] { background: var(--techwo-soft); color: var(--techwo-ink); font-weight: 600; }
.techwo-ui .techwo-rail a[aria-current="step"] .techwo-rail-num { background: var(--techwo-slate); color: #FFFFFF; }
.techwo-step { background: var(--techwo-lav-bg); color: var(--techwo-lav); font-weight: 600; }
.techwo-legend-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.techwo-ui .techwo-legend-hint { color: var(--techwo-sub); }
.techwo-savebar { border: 0; border-radius: 16px; box-shadow: var(--techwo-shadow-pop); }
.techwo-ui .techwo-success h2, .techwo-ui .techwo-login h2 { font-weight: 600; }
.techwo-ui .techwo-ref { background: var(--techwo-lav-bg); color: var(--techwo-lav); border-radius: 14px; font-size: 26px; }
.techwo-ui .techwo-callout { border-left: 0; background: var(--techwo-warn-bg); color: #6B3F0C; border-radius: 14px; }
.techwo-ui .techwo-eyebrow { font-size: 13px; font-weight: 600; color: var(--techwo-sub); }

/* Tables: airy rows, soft header */
.techwo-ui .techwo-table th { background: var(--techwo-soft); color: var(--techwo-sub); font-weight: 500; font-size: 12.5px; }
.techwo-ui .techwo-table th a { color: var(--techwo-sub); }
.techwo-ui .techwo-table th a:hover { color: var(--techwo-ink); text-decoration: none; }
.techwo-ui .techwo-table td { border-bottom-color: #EEF1F6; color: var(--techwo-ink); }
.techwo-ui .techwo-table tbody tr.is-row:hover td { background: #F8FAFC; }
.techwo-ui .techwo-table tfoot td { border-top: 1px solid var(--techwo-hair); color: var(--techwo-ink); font-weight: 600; }
.techwo-ui .techwo-cell-main { font-weight: 600; }
.techwo-ui .techwo-cell-sub { color: var(--techwo-sub); }
.techwo-ui .techwo-table select { border-radius: 10px; }
.techwo-ui .techwo-note-callout { border-left: 3px solid #C3CCDA; }
.techwo-ui .techwo-note-label { color: var(--techwo-purple); letter-spacing: .04em; }
.techwo-ui .techwo-empty { color: var(--techwo-sub); }

/* Charts: pastel bars, light grid */
.techwo-chart { border-bottom: 1px solid var(--techwo-hair); background-image: linear-gradient(to top, var(--techwo-hair) 1px, transparent 1px); background-size: 100% 25%; }
.techwo-chart-col span { border-radius: 6px 6px 2px 2px; }
.techwo-chart-col .c { background: #003087; }
.techwo-chart-col .d { background: #8FB0EE; border: 0; }
.techwo-chart-x { color: var(--techwo-sub); }
.techwo-legend i { background: #003087; border-radius: 4px; }
.techwo-legend i.d { background: #8FB0EE; border: 0; }
.techwo-meter { background: var(--techwo-soft); }
.techwo-meter > span { background: #8FB0EE; }

/* Detail / form dialog: slide-in */
.techwo-ui .techwo-dialog { background: var(--techwo-bg); color: var(--techwo-ink); }
.techwo-ui .techwo-dialog::backdrop { background: rgba(37, 50, 75, .35); }
.techwo-ui .techwo-dialog[open] { animation: techwo-slide-in 220ms cubic-bezier(.2, .7, .3, 1); }
@keyframes techwo-slide-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.techwo-dl dt { color: var(--techwo-sub); }
.techwo-dl dd { font-weight: 500; }
.techwo-ui .techwo-desc { background: var(--techwo-soft); border-radius: 14px; }
.techwo-activity li { border-bottom-color: #EEF1F6; }
.techwo-activity li::before { background: #8490A5; box-shadow: 0 0 0 3px var(--techwo-soft); }
.techwo-activity li.a-note::before { background: #FFFFFF; box-shadow: inset 0 0 0 2px #8490A5, 0 0 0 3px var(--techwo-soft); }
.techwo-activity small { color: var(--techwo-sub); }
.techwo-ui .techwo-viewer { background: rgba(23, 30, 46, .94); }
.techwo-ui .techwo-viewer-close { background: transparent; border-color: rgba(255, 255, 255, .5); }

/* Settings */
.techwo-ui .techwo-group, .techwo-details, .techwo-people { border: 1px solid var(--techwo-hair); border-radius: 16px; }
.techwo-ui .techwo-group > legend { font-size: 15px; font-weight: 600; }
.techwo-subhead { border-top-color: var(--techwo-hair); }
.techwo-addpeople { border: 0; background: var(--techwo-soft); }
.techwo-person { border-bottom-color: #EEF1F6; }
.techwo-person:hover { background: #F8FAFC; }
.techwo-person-text small { color: var(--techwo-sub); }
.techwo-ui .techwo-logo-preview { border: 0; background: var(--techwo-soft); border-radius: 14px; }
.techwo-imp-steps li { border: 0; box-shadow: var(--techwo-shadow); }
.techwo-ui .techwo-imp-steps li[aria-current="step"] { background: var(--techwo-slate); }

/* Loading skeletons (empty containers while data loads) */
.techwo-stats:empty { min-height: 132px; border-radius: var(--techwo-radius); background: linear-gradient(90deg, rgba(255, 255, 255, .55) 25%, rgba(255, 255, 255, .9) 37%, rgba(255, 255, 255, .55) 63%) 0 0 / 400% 100%; animation: techwo-shimmer 1.4s ease infinite; }
@keyframes techwo-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Responsive: icon-first navigation */
@container (max-width: 1480px) {
	.techwo-asof { display: none; }
}
@container (max-width: 1280px) {
	.techwo-nav { gap: 8px; }
	.techwo-ui .techwo-nav-pill { padding: 0 12px; gap: 6px; }
}
@container (max-width: 1100px) {
	.techwo-ui .techwo-nav-pill .techwo-nav-ic { display: none; }
}
@container (min-width: 901px) {
	.techwo-nav { justify-content: flex-end; }
}
@container (max-width: 900px) {
	.techwo-header { border-radius: 16px; }
	.techwo-asof { display: inline-flex; }
	.techwo-ui .techwo-nav-pill .techwo-nav-ic { display: inline-block; }
	.techwo-nav { gap: 6px; }
	.techwo-ui .techwo-nav-pill { padding: 0 12px; }
}
@container (max-width: 560px) {
	.techwo-ui .techwo-nav-pill .techwo-nav-text { display: none; }
	.techwo-ui .techwo-nav-pill[aria-current="page"] .techwo-nav-text { display: inline; }
	.techwo-stat-value { font-size: 24px; }
	.techwo-ui .techwo-stat { padding: 14px 16px; }
}
@container (max-width: 760px) {
	.techwo-ui .techwo-table tr { border: 0; box-shadow: var(--techwo-shadow); }
	.techwo-ui .techwo-table td::before { color: var(--techwo-sub); font-weight: 500; }
	.techwo-ui .techwo-table tfoot tr { border: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.techwo-ui *, .techwo-ui *::before, .techwo-ui *::after { transition: none !important; animation: none !important; }
	.techwo-ui .techwo-btn-primary:hover, .techwo-ui button.techwo-stat:hover { transform: none; }
}

/* 1.2.6: red removed — urgent / overdue / urgent bar use the slate primary with white text (10.7:1) */
.techwo-pill-red, .techwo-pill.techwo-due-over { background: #003087; color: #FFFFFF; }
.techwo-banner { background: #003087; color: #FFFFFF; }
.techwo-banner-due { background: var(--techwo-warn-bg); color: var(--techwo-warn); }
.techwo-ui .techwo-has-error input, .techwo-ui .has-error input, .techwo-ui .has-error select, .techwo-ui .has-error textarea { border-color: #25324B; }

/* 1.2.7: more prominent page titles — Inter Display ExtraBold, larger, tighter */
.techwo-ui .techwo-title { font-family: "techwo Inter Display", "techwo Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: clamp(32px, 1.6vw + 18px, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; color: var(--techwo-ink); }
.techwo-ui .techwo-intro { margin-top: 8px !important; }

/* 1.2.8: lavender #EEEDF8 / #4F4E8C removed */
.techwo-pill.techwo-st-assigned { background: #FFFFFF; color: #25324B; box-shadow: inset 0 0 0 1px #D8DFEA; }
.techwo-nav-count, .techwo-nav-pill[aria-current="page"] .techwo-nav-count { background: #003087; color: #FFFFFF; }
.techwo-step { background: #003087; color: #FFFFFF; }
.techwo-ui .techwo-ref { background: #F4F6FA; color: #25324B; }
.techwo-ui .techwo-note-label { color: #5A6680; }

/* 1.2.9: every meter uses the Unassigned blue #7FA3E8 */
.techwo-stat-bar > span, .techwo-stat[data-stat] .techwo-stat-bar > span, .techwo-meter > span { background: #7FA3E8; }

/* 1.3.5: every percent / status meter and the bar graph in #003087. Completed bars use a light tint (#8098C3) so the two series stay apart. */
.techwo-ui .techwo-stat-bar > span, .techwo-ui .techwo-stat[data-stat] .techwo-stat-bar > span, .techwo-ui .techwo-meter > span { background: #003087; }
.techwo-ui .techwo-chart-col .c, .techwo-ui .techwo-legend i { background: #003087; }
.techwo-ui .techwo-chart-col .d, .techwo-ui .techwo-legend i.d { background: #D2CDCA; border: 0; } /* 1.3.8: the gray from the East Orange logo (was #8098C3) */

/* 1.3.6: every primary button (New work order, Submit work order, Save, Create, Close, Filter, Import, Log in …) in #A00D25; hover a step darker.
   Replaces the 1.3.4 / 1.3.5 blue on New work order and Submit work order. Meters and the bar graph stay #003087. */
.techwo-ui .techwo-btn-primary, .techwo-ui .techwo-btn-red { background: #A00D25; border-color: #A00D25; color: #FFFFFF; }
.techwo-ui .techwo-btn-primary:hover, .techwo-ui .techwo-btn-red:hover { background: #820A1E; border-color: #820A1E; color: #FFFFFF; }

/* 1.3.11: the Safety Issue pill (and the Dashboard "N safety" count) in #A00D25. Past-due pills stay slate. */
.techwo-ui .techwo-pill-red { background: #A00D25; border-color: #A00D25; color: #FFFFFF; }

/* 1.3.14: dark summary tiles (Statistics "Open now", import review "New", Settings → Access administrators) in #003087, like the total stat tile. */
.techwo-ui .techwo-tile-total { background: #003087; color: #FFFFFF; }
.techwo-ui .techwo-tile-total .l, .techwo-ui .techwo-tile-total .v, .techwo-ui .techwo-tile-total .d { color: #FFFFFF; }

/* ------------------------------------------------------------------ */
/* 1.3.15: Statistics page, one week or month at a time               */
/* ------------------------------------------------------------------ */
.techwo-stats-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.techwo-stats-actions[hidden] { display: none !important; }
.techwo-ui .techwo-period-toggle { background: #FFFFFF; border: 1px solid var(--techwo-hair); border-radius: 999px; padding: 3px; }
.techwo-ui .techwo-period-toggle button { border-radius: 999px; padding: 0 18px; min-height: 34px; }
.techwo-ui .techwo-period-toggle button[aria-pressed="true"] { background: #003087; color: #FFFFFF; box-shadow: none; }
.techwo-ui .techwo-period-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; }
.techwo-period-label { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; min-width: 0; }
.techwo-ui .techwo-period-label .techwo-section-title { margin: 0; font-size: 22px; }
.techwo-ui .techwo-period-nav .techwo-btn { border-radius: 999px; }
.techwo-ui .techwo-period-nav .techwo-btn:disabled { opacity: .45; cursor: default; }
.techwo-ui .techwo-tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.techwo-ui .techwo-tiles-5 .techwo-tile { background: #FFFFFF; border-radius: 20px; padding: 20px; box-shadow: var(--techwo-shadow); }
.techwo-ui .techwo-tiles-5 .techwo-tile .l { font-weight: 600; font-size: 13px; color: var(--techwo-ink); }
.techwo-ui .techwo-tiles-5 .techwo-tile .v { font-size: 30px; font-weight: 800; line-height: 1.15; }
.techwo-ui .techwo-tiles-5 .techwo-tile-total { background: #003087; }
.techwo-ui .techwo-tiles-5 .techwo-tile-total .l, .techwo-ui .techwo-tiles-5 .techwo-tile-total .v, .techwo-ui .techwo-tiles-5 .techwo-tile-total .d { color: #FFFFFF; }
.techwo-ui .techwo-stats-chart { padding: 22px; }
.techwo-ui .techwo-chart-days { height: 220px; gap: 4px; }
.techwo-ui .techwo-chart-days .techwo-chart-col span { width: min(12px, 40%); }
.techwo-ui .techwo-stats-chart .techwo-chart-x { gap: 4px; font-size: 11.5px; }
.techwo-ui .techwo-chart-x .is-today { color: #A00D25; font-weight: 700; }
.techwo-ui .techwo-share-card { padding: 22px; }
.techwo-ui .techwo-share-card .techwo-card-head { align-items: center; margin-bottom: 10px; }
.techwo-ui .techwo-share-table th:nth-child(3), .techwo-ui .techwo-share-table td.techwo-share { width: 38%; }
.techwo-ui .techwo-share { white-space: nowrap; }
.techwo-ui .techwo-share .techwo-meter { display: inline-block; vertical-align: middle; width: calc(100% - 52px); }
.techwo-ui .techwo-share-pct { display: inline-block; width: 44px; text-align: right; font-size: 12.5px; color: var(--techwo-sub); font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .techwo-ui .techwo-tiles-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 782px) {
	.techwo-ui .techwo-tiles-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.techwo-ui .techwo-tiles-5 .techwo-tile-total { grid-column: 1 / -1; }
	.techwo-ui .techwo-period-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.techwo-period-label { grid-column: 1 / -1; grid-row: 1; }
	.techwo-ui .techwo-chart-days { gap: 2px; }
	.techwo-ui .techwo-chart-days .techwo-chart-col { gap: 1px; }
	.techwo-ui .techwo-chart-days .techwo-chart-col span { width: 45%; min-width: 2px; border-radius: 3px 3px 0 0; }
	.techwo-ui .techwo-stats-chart .techwo-chart-x { gap: 2px; font-size: 10px; }
	.techwo-ui .techwo-stats-chart .techwo-chart-x span { overflow: visible; }
	.techwo-ui .techwo-stats-chart .techwo-chart-x span:nth-child(even):not(.is-today) { visibility: hidden; }
	.techwo-ui .techwo-stats-chart .techwo-chart-x span.is-today { visibility: visible; }
	/* Share tables stay tables on phones: item, count, percent. */
	.techwo-ui table.techwo-share-table { display: table; }
	.techwo-ui .techwo-share-table thead { display: table-header-group !important; }
	.techwo-ui .techwo-share-table tbody { display: table-row-group; }
	.techwo-ui .techwo-share-table tr { display: table-row; border: 0; border-radius: 0; margin: 0; }
	.techwo-ui .techwo-share-table td, .techwo-ui .techwo-share-table th { display: table-cell; padding: 10px 6px; border-bottom: 1px solid var(--techwo-line); border-radius: 0 !important; }
	.techwo-ui .techwo-share-table td::before { content: none; }
	.techwo-ui .techwo-share-table td.num, .techwo-ui .techwo-share-table th.num { text-align: right; }
	.techwo-ui .techwo-share-table th:nth-child(3), .techwo-ui .techwo-share-table td.techwo-share { width: 30%; }
	.techwo-ui .techwo-share .techwo-meter { display: none; }
	.techwo-ui .techwo-share-pct { width: auto; }
}

/* "Download PDF": print only the Statistics page. */
@media print {
	body.techwo-printing { background: #FFFFFF !important; }
	body.techwo-printing * { visibility: hidden !important; }
	body.techwo-printing .techwo-print-root, body.techwo-printing .techwo-print-root * { visibility: visible !important; }
	body.techwo-printing .techwo-print-root { position: absolute; left: 0; top: 0; width: 100%; margin: 0 !important; padding: 0 !important; background: #FFFFFF !important; }
	body.techwo-printing .techwo-print-root .techwo-header,
	body.techwo-printing .techwo-print-root .techwo-page-actions,
	body.techwo-printing .techwo-print-root .techwo-period-nav .techwo-btn,
	body.techwo-printing .techwo-print-root [data-techwo-stats],
	body.techwo-printing .techwo-print-root [data-techwo-banner],
	body.techwo-printing .techwo-print-root .techwo-notices,
	body.techwo-printing .techwo-print-root [data-techwo-panel]:not([data-techwo-panel="stats"]) { display: none !important; }
	body.techwo-printing .techwo-print-root .techwo-card, body.techwo-printing .techwo-print-root .techwo-tile { box-shadow: none !important; border: 1px solid #E5EAF1; break-inside: avoid; }
	body.techwo-printing .techwo-print-root * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	body.techwo-printing .techwo-print-root .techwo-tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	body.techwo-printing .techwo-print-root .techwo-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 1.3.16: Week / Month and Download PDF match Henry's design: a joined pill toggle and a pill button, bold labels. Colours unchanged. */
.techwo-ui .techwo-stats-actions { gap: 12px; }
.techwo-ui .techwo-period-toggle { display: inline-flex; gap: 0; padding: 0; background: #FFFFFF; border: 1px solid #5A6680; border-radius: 999px; overflow: hidden; box-shadow: none; }
.techwo-ui .techwo-period-toggle button { min-height: 46px; padding: 0 26px; border: 0; border-radius: 0; background: #FFFFFF; color: var(--techwo-ink); font-size: 15px; font-weight: 700; box-shadow: none; }
.techwo-ui .techwo-period-toggle button:hover { background: #F4F6FA; color: var(--techwo-ink); }
.techwo-ui .techwo-period-toggle button[aria-pressed="true"], .techwo-ui .techwo-period-toggle button[aria-pressed="true"]:hover { background: #003087; color: #FFFFFF; box-shadow: none; }
.techwo-ui .techwo-btn-pill { min-height: 48px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 700; gap: 10px; }

/* 1.3.17: every primary button is a pill (fully rounded, bold), like Download PDF. Sizes and colours unchanged. */
.techwo-ui .techwo-btn-primary, .techwo-ui .techwo-btn-red, .techwo-ui .techwo-btn-primary.techwo-btn-sm, .techwo-ui .techwo-btn-primary.techwo-btn-xs { border-radius: 999px; font-weight: 700; padding-left: 22px; padding-right: 22px; }
.techwo-ui .techwo-btn-primary.techwo-btn-sm { padding-left: 18px; padding-right: 18px; }
.techwo-ui .techwo-btn-primary.techwo-btn-pill { padding-left: 26px; padding-right: 26px; }

/* 1.3.19: every button is a pill (fully rounded): secondary, quiet, edit, delete, small and extra-small buttons, the top navigation tabs and the segmented toggles. Sizes and colours unchanged. Round icon buttons stay circles. */
.techwo-ui .techwo-btn, .techwo-ui .techwo-btn-sm, .techwo-ui .techwo-btn-xs, .techwo-ui a.techwo-btn,
.techwo-ui .techwo-nav-pill,
.techwo-seg, .techwo-seg-btns, .techwo-seg span, .techwo-ui .techwo-seg-btns button { border-radius: 999px; }
.techwo-ui .techwo-btn:not(.techwo-btn-pill):not(.techwo-btn-primary):not(.techwo-btn-red) { padding-left: 18px; padding-right: 18px; }
.techwo-ui .techwo-btn-sm:not(.techwo-btn-primary):not(.techwo-btn-red) { padding-left: 15px; padding-right: 15px; }
.techwo-ui .techwo-btn-xs:not(.techwo-btn-primary):not(.techwo-btn-red) { padding-left: 12px; padding-right: 12px; }
.techwo-ui .techwo-period-toggle { border-radius: 999px; }
.techwo-ui .techwo-period-toggle button { border-radius: 0; }

/* 1.3.20: top navigation matches Henry's design: text-only bold tabs, grey labels, a light grey pill on hover and a solid #003087 pill (white text) for the active tab. Phones keep icons so every tab still fits. */
.techwo-ui .techwo-nav { gap: 6px; }
.techwo-ui .techwo-nav-pill { min-height: 44px; padding: 0 20px; border-radius: 999px; background: transparent; color: #6B7280; font-size: 15px; font-weight: 700; box-shadow: none; }
.techwo-ui .techwo-nav-pill .techwo-nav-ic { display: none; }
.techwo-ui .techwo-nav-pill:hover { background: #F2F3F4; color: #1F2937; box-shadow: none; }
.techwo-ui .techwo-nav-pill[aria-current="page"], .techwo-ui .techwo-nav-pill[aria-current="page"]:hover { background: #003087; color: #FFFFFF; font-weight: 700; box-shadow: none; }
.techwo-ui .techwo-nav-pill[aria-current="page"] .techwo-nav-count { background: #FFFFFF; color: #003087; }
.techwo-ui .techwo-nav-pill:focus-visible { outline: 2px solid #003087; outline-offset: 2px; }
@container (max-width: 1100px) {
	.techwo-ui .techwo-nav-pill { padding: 0 14px; font-size: 14px; }
}
@container (max-width: 560px) {
	.techwo-ui .techwo-nav { gap: 4px; }
	.techwo-ui .techwo-nav-pill { min-height: 40px; padding: 0 12px; }
	.techwo-ui .techwo-nav-pill .techwo-nav-ic { display: inline-block; color: inherit; }
}
