/* DD Construction Project Tracker. Uses the color and type tokens from style.css. */

/* ---------- Login screen ---------- */
.tk-gate {
	background: var(--black);
	min-height: calc(100vh - 72px);
	display: grid;
	place-items: center;
	padding: 56px var(--gutter);
	position: relative;
	overflow: hidden;
}
.tk-gate::before {
	content: "";
	position: absolute; right: -6%; top: -4%;
	width: min(60vw, 820px); aspect-ratio: 969 / 775;
	background: url("../img/steel.png") no-repeat center / contain;
	opacity: .22;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to top, transparent 0, #000 30%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to top, transparent 0, #000 30%);
	mask-composite: intersect;
}
.tk-gate__panel {
	position: relative;
	width: 100%; max-width: 440px;
	background: var(--white); color: var(--ink);
	padding: clamp(28px, 5vw, 44px);
	border-top: 6px solid var(--brand);
}
.tk-gate__mark { width: 84px; height: auto; margin-bottom: 20px; }
.tk-gate__panel h1 { font-size: clamp(2.5rem, 6vw, 3.25rem); font-stretch: 62%; font-weight: 800; margin-bottom: 8px; }
.tk-gate__lead { color: var(--steel); margin-bottom: 20px; }
.tk-gate__error, .tk-gate__ok { padding: 12px 14px; font-size: .9375rem; margin-bottom: 16px; }
.tk-gate__error { background: #fde8e5; border-left: 4px solid var(--brand-deep); }
.tk-gate__ok { background: var(--galv); border-left: 4px solid var(--black); }
.tk-form { display: grid; gap: 6px; }
.tk-form label { font-weight: 600; font-size: .9375rem; }
.tk-form input[type="text"], .tk-form input[type="password"] {
	width: 100%; padding: 12px 14px; margin-bottom: 10px;
	border: 1px solid var(--rule); background: var(--white); font: 1rem var(--font);
}
.tk-form input:focus { border-color: var(--black); }
.tk-form__remember { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; margin: 4px 0 14px; }
.tk-form__remember input { accent-color: var(--brand); width: 18px; height: 18px; }
.tk-form .btn { justify-content: center; border: 0; cursor: pointer; }
.tk-gate__help { margin: 20px 0 0; font-size: .875rem; color: var(--steel); display: grid; gap: 6px; }
.tk-gate__help a { color: var(--ink); font-weight: 600; }

/* ---------- App frame ---------- */
.tk { background: var(--galv); min-height: calc(100vh - 72px); padding-bottom: 80px; }
.tk-loading { padding: 80px var(--gutter); color: var(--steel); }
.tk-head { background: var(--black); color: var(--white); border-bottom: 6px solid var(--brand); }
.tk-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.tk-head h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-stretch: 62%; font-weight: 800; }
.tk-head__right { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.tk-user { color: #aab1b8; font-size: .9375rem; }
.tk-signout { color: var(--white); font-size: .9375rem; }
.tk-signout:hover { color: var(--brand); }
.tk-head .btn { cursor: pointer; border: 2px solid transparent; }
.tk-head .btn--line { border-color: var(--white); background: transparent; }
.tk-back {
	background: none; border: 0; color: var(--white); cursor: pointer;
	font: 600 1rem var(--font); padding: 8px 0;
}
.tk-back::before { content: "\2190"; margin-right: 8px; color: var(--brand); }
.tk-back:hover { color: var(--brand); }
.tk-body { padding-top: 32px; }

.btn--line-dark { border: 2px solid var(--black) !important; color: var(--black); background: transparent; cursor: pointer; }
.btn--line-dark:hover { background: var(--black); color: var(--white); }
.tk .btn--brand, .tk-modal .btn--brand, .tk .btn--dark { border: 0; cursor: pointer; }

/* ---------- Stats ---------- */
.tk-stats { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 12px; }
.tk-stat { background: var(--white); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk-stat__label { font-size: .875rem; font-weight: 600; color: var(--steel); }
.tk-stat__val { font-size: clamp(2rem, 3.4vw, 2.75rem); font-stretch: 62%; font-weight: 800; line-height: 1.05; overflow-wrap: anywhere; }
.tk-stat__sub { font-size: .875rem; color: var(--steel); }
.tk-stat--money { background: var(--black); color: var(--white); border-top: 6px solid var(--brand); }
.tk-stat--money .tk-stat__label, .tk-stat--money .tk-stat__sub { color: #aab1b8; }
.tk-stat--money .tk-stat__val {
	background: linear-gradient(90deg, var(--brand), var(--amber));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 960px) { .tk-stats { grid-template-columns: 1fr 1fr; } .tk-stat--money { grid-column: 1 / -1; } }

/* ---------- Toolbar ---------- */
.tk-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.tk-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.tk-filter {
	background: var(--white); border: 0; padding: 10px 16px; cursor: pointer;
	font: 600 .9375rem var(--font); color: var(--ink);
}
.tk-filter:hover { background: #cfd4d8; }
.tk-filter.is-on { background: var(--black); color: var(--white); }
.tk-search input {
	width: min(360px, 100%); padding: 10px 14px; border: 1px solid var(--rule);
	background: var(--white); font: .9375rem var(--font);
}
.tk-search { flex: 0 1 360px; }
.tk-search input { width: 100%; }

/* ---------- Project cards ---------- */
.tk-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.tk-card {
	width: 100%; height: 100%; text-align: left; cursor: pointer;
	display: flex; flex-direction: column; gap: 10px;
	background: var(--white); border: 0; border-top: 6px solid var(--rule);
	padding: 20px 22px; font: inherit; color: inherit;
	transition: box-shadow .15s;
}
.tk-card:hover { box-shadow: 0 0 0 2px var(--black); }
.tk-card--active { border-top-color: var(--amber); }
.tk-card--field { border-top-color: var(--brand); }
.tk-card--complete { border-top-color: var(--black); }
.tk-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tk-card__name { font-size: 1.625rem; font-stretch: 72%; font-weight: 750; line-height: 1.05; }
.tk-card__meta { color: var(--steel); font-size: .9375rem; }
.tk-card__money { display: flex; align-items: baseline; gap: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.tk-card__money strong { font-size: 1.5rem; font-stretch: 72%; font-weight: 750; }
.tk-card__money span { color: var(--steel); font-size: .875rem; }
.tk-card__dates { font-size: .9375rem; font-weight: 600; }
.tk-progress { display: block; margin-top: 4px; }
.tk-progress__row { display: flex; justify-content: space-between; font-size: .875rem; color: var(--steel); margin-bottom: 6px; }
.tk-bar { display: block; height: 6px; background: var(--galv); }
.tk-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--amber)); transition: width .25s; }
.tk-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tk-tag { font-size: .6875rem; font-weight: 700; letter-spacing: .02em; padding: 3px 6px; background: var(--galv); color: var(--steel); }
.tk-tag.is-part { background: #fbe3c4; color: #7a4a0a; }
.tk-tag.is-done { background: #ffd9d2; color: var(--brand-deep); }
.tk-tag.is-signed { background: var(--black); color: var(--white); }

.tk-badge { flex: none; font-size: .75rem; font-weight: 700; padding: 4px 8px; white-space: nowrap; }
.tk-badge--pending { background: var(--galv); color: var(--ink); }
.tk-badge--active { background: #fbe3c4; color: #6b3f05; }
.tk-badge--field { background: var(--brand); color: var(--black); }
.tk-badge--complete { background: var(--black); color: var(--white); }

.tk-empty { background: var(--white); padding: 48px 32px; text-align: center; }
.tk-empty h2 { font-size: 2rem; margin-bottom: 8px; }
.tk-empty p { color: var(--steel); }
.tk-empty .btn { margin-top: 12px; }

/* ---------- Project view ---------- */
.tk-proj-head { background: var(--white); padding: 28px 0 24px; border-bottom: 1px solid var(--rule); }
.tk-proj-head__title { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.tk-proj-head__title h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-stretch: 62%; font-weight: 800; }
.tk-proj-head__notes { margin: 16px 0 0; color: var(--steel); }
.tk-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; border-top: 3px solid var(--black); }
.tk-facts div { padding: 12px 16px 10px 0; border-bottom: 1px solid var(--rule); }
.tk-facts dt { font-size: .8125rem; color: var(--steel); }
.tk-facts dd { margin: 2px 0 0; font-weight: 700; }
.tk-facts .is-big dd { font-size: 1.5rem; font-stretch: 72%; font-weight: 800; line-height: 1.1; }

.tk-proj { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding-top: 28px; align-items: start; }
.tk-side { position: sticky; top: 88px; }
.tk-side ul { list-style: none; margin: 0; padding: 0; background: var(--white); }
.tk-side__group { padding: 14px 16px 6px; font-size: .8125rem; font-weight: 700; color: var(--steel); }
.tk-side__item {
	width: 100%; display: grid; grid-template-columns: 72px 1fr auto; align-items: baseline; gap: 6px;
	padding: 10px 16px; background: none; border: 0; border-left: 4px solid transparent; cursor: pointer;
	text-align: left; font: inherit; color: inherit;
}
.tk-side__item:hover { background: var(--galv); }
.tk-side__item.is-on { border-left-color: var(--brand); background: #fff3f1; }
.tk-side__acr { font-stretch: 62%; font-weight: 800; font-size: 1.25rem; }
.tk-side__title { font-size: .875rem; color: var(--steel); }
.tk-side__count { font-size: .8125rem; font-weight: 700; color: var(--steel); }
.tk-side__item.is-part .tk-side__count { color: #9a5b06; }
.tk-side__item.is-done .tk-side__count { color: var(--brand-deep); }
.tk-side__item.is-signed .tk-side__count::after { content: " \2713"; color: var(--ink); }
.tk-side__item.is-signed .tk-side__acr { color: var(--ink); }

.tk-main { min-width: 0; }
.tk-sys-head { display: flex; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.tk-sys-head__acr {
	margin: 0; font-size: clamp(3.5rem, 8vw, 6rem); font-stretch: 62%; font-weight: 800; line-height: .8;
	background: linear-gradient(90deg, var(--brand), var(--amber));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.tk-sys-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.tk-sys-head__tag { margin: 6px 0 0; color: var(--steel); font-weight: 600; }
.tk-intro { max-width: 72ch; margin-bottom: 24px; }

.tk-letters { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tk-letters li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; background: var(--white); padding: 16px; border-top: 3px solid var(--black); }
.tk-letters__l { font-size: 2.5rem; font-stretch: 62%; font-weight: 800; line-height: .85; color: var(--brand); }
.tk-letters h3 { font-size: 1.125rem; margin-bottom: 6px; }
.tk-letters p { margin: 0; font-size: .9375rem; color: var(--steel); }
.tk-letters strong { color: var(--ink); }

.tk-panel { background: var(--white); padding: 22px 24px; margin-bottom: 16px; }
.tk-panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tk-panel__head h3 { font-size: 1.5rem; }
.tk-count { font-weight: 700; }
.tk-panel .tk-bar { margin-bottom: 8px; }

.tk-checks { list-style: none; margin: 0; padding: 0; }
.tk-check { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.tk-check:last-child { border-bottom: 0; }
.tk-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.tk-check label { cursor: pointer; line-height: 1.45; }
.tk-check.is-done label { color: var(--steel); }
.tk-check.is-saving { opacity: .6; }
.tk-check__by { display: block; margin-top: 2px; font-size: .8125rem; color: var(--steel); }
.tk-check__who { font-size: .8125rem; font-weight: 700; color: var(--steel); white-space: nowrap; }

.tk-sign.is-signed { border-left: 6px solid var(--black); }
.tk-signed { background: var(--black); color: var(--white); font-size: .8125rem; font-weight: 700; padding: 4px 10px; }
.tk-sign__warn { color: #8a4c04; font-weight: 600; }
.tk-sign__notes { background: var(--galv); padding: 12px 14px; white-space: pre-line; }
.tk-sign .btn { margin-top: 12px; }

.tk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.tk-fields label { display: grid; gap: 6px; font-weight: 600; font-size: .9375rem; }
.tk-fields__wide { grid-column: 1 / -1; }
.tk-fields input, .tk-fields select, .tk-fields textarea, .tk-panel textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--rule); background: var(--white);
	font: 400 1rem var(--font); color: var(--ink);
}
.tk-fields input:focus, .tk-fields select:focus, .tk-fields textarea:focus, .tk-panel textarea:focus { border-color: var(--black); outline: 2px solid var(--brand); outline-offset: 0; }
.tk-saved { font-size: .8125rem; color: var(--steel); }

.tk-link { background: none; border: 0; padding: 0; cursor: pointer; font: 600 .9375rem var(--font); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tk-link--danger { color: var(--brand-deep); }

.tk-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

@media (max-width: 900px) {
	.tk-proj { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.tk-side { position: static; min-width: 0; }
	.tk-side ul { display: flex; overflow-x: auto; }
	.tk-side__group { display: none; }
	.tk-side__item { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 96px; border-left: 0; border-bottom: 4px solid transparent; }
	.tk-side__item.is-on { border-bottom-color: var(--brand); }
	.tk-side__title { display: none; }
}
@media (max-width: 600px) {
	.tk-fields { grid-template-columns: 1fr; }
	.tk-check { grid-template-columns: 24px 1fr; }
	.tk-check__who { grid-column: 2; }
	.tk-cards { grid-template-columns: 1fr; }
	.tk-head__right .btn { width: 100%; justify-content: center; }
	.tk-pager { flex-direction: column-reverse; }
	.tk-pager .btn { justify-content: center; }
}

/* ---------- Modal ---------- */
.tk-modal-open { overflow: hidden; }
.tk-modal {
	position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .6);
	display: grid; place-items: center; padding: 16px; overflow-y: auto;
}
.tk-modal__box { background: var(--white); width: 100%; max-width: 640px; padding: clamp(22px, 4vw, 36px); border-top: 6px solid var(--brand); }
.tk-modal__box h2 { font-size: 2.25rem; font-stretch: 62%; font-weight: 800; margin-bottom: 20px; }
.tk-modal__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.tk-form-error { grid-column: 1 / -1; margin: 0; padding: 10px 12px; background: #fde8e5; border-left: 4px solid var(--brand-deep); }

/* ---------- Toast ---------- */
.tk-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 300;
	background: var(--black); color: var(--white); padding: 12px 18px; font-weight: 600;
	opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
.tk-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.tk-toast.is-bad { background: var(--brand-deep); }

@media (prefers-reduced-motion: reduce) {
	.tk-bar > span, .tk-toast, .tk-card { transition: none; }
}

/* ---------- View tabs ---------- */
.tk-tabs { display: flex; gap: 0; margin: 0 0 20px; border-bottom: 3px solid var(--black); }
.tk-tab {
	background: none; border: 0; cursor: pointer; padding: 12px 22px 10px;
	font: 750 1.375rem var(--font); font-stretch: 72%; color: var(--steel);
	border-bottom: 6px solid transparent; margin-bottom: -3px;
}
.tk-tab:hover { color: var(--ink); }
.tk-tab.is-on { color: var(--ink); border-bottom-color: var(--brand); }

/* ---------- Schedule (Gantt) ---------- */
.tk-gantt__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.tk-gantt__summary { margin: 0; font-size: 1.0625rem; }
.tk-ranges { display: flex; gap: 4px; }
.tk-gantt { background: var(--white); }
.tk-gantt__scroll { overflow-x: auto; }
.tk-gantt__scroll { --tk-label: 240px; }
.tk-gantt__row { display: grid; grid-template-columns: var(--tk-label) minmax(0, 1fr); border-bottom: 1px solid var(--rule); width: max(100%, calc(var(--tk-label) + var(--tk-track, 600px))); }
.tk-gantt__months span { min-width: 0; overflow: hidden; }
.tk-gantt__label {
	position: sticky; left: 0; z-index: 2; background: var(--white);
	padding: 12px 16px; border-right: 1px solid var(--rule);
	display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0;
}
.tk-gantt__label button {
	background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
	font: 700 .9375rem var(--font); color: var(--ink); line-height: 1.25;
}
.tk-gantt__label button:hover { color: var(--brand-deep); text-decoration: underline; }
.tk-gantt__label span { font-size: .75rem; color: var(--steel); }
.tk-gantt__label strong { font-size: .9375rem; }
.tk-gantt__track { position: relative; min-height: 56px; }
.tk-gantt__grid { background-image: linear-gradient(to right, var(--rule) 1px, transparent 1px); background-repeat: repeat-x; }

.tk-gantt__row--head { background: var(--black); color: var(--white); border-bottom: 0; }
.tk-gantt__row--head .tk-gantt__label { background: var(--black); border-right-color: var(--line-dark); font-weight: 700; font-size: .875rem; }
.tk-gantt__row--head .tk-gantt__track { min-height: 0; }
.tk-gantt__months { display: grid; height: 100%; }
.tk-gantt__row--head .tk-gantt__months span { padding: 12px 5px 10px; font-size: .75rem; font-weight: 600; border-left: 1px solid var(--line-dark); white-space: nowrap; }
.tk-gantt__row--head .tk-gantt__months span.is-year { border-left: 2px solid var(--brand); color: var(--brand); }

.tk-gantt__row--load { background: var(--galv); border-bottom: 3px solid var(--black); }
.tk-gantt__row--load .tk-gantt__label { background: var(--galv); }
.tk-gantt__load { min-height: 48px; }
.tk-load { display: grid; place-items: center; font-weight: 800; font-size: 1.125rem; font-stretch: 72%; border-left: 1px solid var(--white); }
.tk-load--0 { background: transparent; }
.tk-load--1 { background: #fbe3c4; color: #6b3f05; }
.tk-load--2 { background: #f7b89a; color: #5a2008; }
.tk-load--3 { background: var(--brand); color: var(--black); }
.tk-load--4 { background: var(--brand-deep); color: var(--white); }

.tk-bar-g {
	position: absolute; top: 12px; bottom: 12px; min-width: 6px;
	border: 0; padding: 0 10px; cursor: pointer; overflow: hidden;
	display: flex; align-items: center; text-align: left;
	font: 700 .8125rem var(--font); white-space: nowrap;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.tk-bar-g span { overflow: hidden; text-overflow: ellipsis; }
.tk-bar-g:hover, .tk-bar-g:focus-visible { box-shadow: 0 0 0 2px var(--black); z-index: 1; }
.tk-bar-g--pending { background: #cfd4d8; color: var(--ink); }
.tk-bar-g--active { background: var(--amber); color: var(--black); }
.tk-bar-g--field { background: var(--brand); color: var(--black); }
.tk-bar-g--complete { background: var(--black); color: var(--white); }
.tk-bar-g.is-cut-l { border-left: 4px dashed rgba(255,255,255,.9); }
.tk-bar-g.is-cut-r { border-right: 4px dashed rgba(255,255,255,.9); }
.tk-gantt__off { position: absolute; inset: 0; display: grid; place-items: center; font-size: .8125rem; color: var(--steel); }

.tk-gantt__today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--black); z-index: 1; pointer-events: none; }
.tk-gantt__today--label {
	width: auto; top: auto; bottom: 0; margin-left: 0; transform: translateX(-50%);
	background: var(--brand); color: var(--black); font-size: .6875rem; font-weight: 800; padding: 1px 6px;
}

.tk-gantt__outside { margin: 10px 0 0; font-size: .875rem; color: var(--steel); }
.tk-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .875rem; color: var(--steel); }
.tk-legend li { display: flex; align-items: center; gap: 8px; }
.tk-legend__sw { width: 22px; height: 12px; display: inline-block; }
.tk-legend__today { width: 2px; height: 16px; background: var(--black); display: inline-block; margin: 0 10px; }

.tk-undated { background: var(--white); padding: 20px 22px; margin-top: 20px; border-left: 6px solid var(--amber); }
.tk-undated h3 { font-size: 1.375rem; margin-bottom: 6px; }
.tk-undated p { color: var(--steel); font-size: .9375rem; }
.tk-undated ul { list-style: none; margin: 0; padding: 0; }
.tk-undated li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.tk-undated button { background: none; border: 0; padding: 0; cursor: pointer; font: 700 .9375rem var(--font); color: var(--ink); text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.tk-undated span { color: var(--steel); font-size: .875rem; white-space: nowrap; }

@media (max-width: 700px) {
	.tk-gantt__scroll { --tk-label: 140px; }
	.tk-gantt__label { padding: 10px; }
	.tk-gantt__label span { display: none; }
	.tk-gantt__row--load .tk-gantt__label span { display: none; }
	.tk-tab { padding: 10px 16px 8px; }
}
@media print {
	.tk-head, .tk-toolbar, .tk-tabs, .tk-ranges, .site-header, .site-footer { display: none !important; }
	.tk { background: #fff; }
	.tk-gantt__scroll { overflow: visible; }
}

/* ---------- Team (managers only) ---------- */
.tk-team__help { color: var(--steel); font-size: .9375rem; margin: 0 0 16px; }
.tk-team__form { grid-template-columns: 1.2fr 1.4fr 1fr auto; align-items: end; }
.tk-team__form .btn { min-height: 46px; white-space: nowrap; }
.tk-team__form .tk-form-error { grid-column: 1 / -1; }
.tk-levels { margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.tk-levels div { border-top: 1px solid var(--rule); padding-top: 10px; }
.tk-levels dt { font-weight: 700; }
.tk-levels dd { margin: 2px 0 0; color: var(--steel); font-size: .9375rem; }

.tk-invite { border-left: 6px solid var(--black); }
.tk-invite.is-warn { border-left-color: var(--amber); }
.tk-invite h3 { font-size: 1.5rem; margin-bottom: 8px; }
.tk-copy { display: flex; gap: 8px; margin: 12px 0; }
.tk-copy input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--rule); font: .875rem var(--font); background: var(--galv); }
.tk-copy .btn { border: 0; cursor: pointer; white-space: nowrap; }

.tk-team__table { width: 100%; border-collapse: collapse; }
.tk-team__table th, .tk-team__table td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tk-team__table thead th { font-size: .8125rem; color: var(--steel); font-weight: 700; border-bottom: 3px solid var(--black); }
.tk-team__table tbody th { font-weight: 400; }
.tk-team__name { display: block; font-weight: 700; }
.tk-team__email { display: block; font-size: .875rem; color: var(--steel); overflow-wrap: anywhere; }
.tk-you { font-size: .6875rem; font-weight: 800; background: var(--black); color: var(--white); padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }
.tk-team__table select { padding: 8px 10px; border: 1px solid var(--rule); background: var(--white); font: .9375rem var(--font); }
.tk-team__fixed { font-weight: 600; }
.tk-team__note { font-size: .875rem; color: var(--steel); }
.tk-team__actions { text-align: right !important; white-space: nowrap; padding-right: 0 !important; }
.tk-team__actions .tk-link + .tk-link { margin-left: 18px; }

@media (max-width: 900px) {
	.tk-team__form { grid-template-columns: 1fr 1fr; }
	.tk-team__form .btn { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 700px) {
	.tk-levels { grid-template-columns: 1fr; }
	.tk-team__form { grid-template-columns: 1fr; }
	.tk-team__table thead { display: none; }
	.tk-team__table, .tk-team__table tbody, .tk-team__table tr, .tk-team__table th, .tk-team__table td { display: block; }
	.tk-team__table tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
	.tk-team__table th, .tk-team__table td { border: 0; padding: 4px 0; }
	.tk-team__table td[data-label]::before { content: attr(data-label) ": "; color: var(--steel); font-size: .8125rem; }
	.tk-team__actions { text-align: left !important; padding-top: 8px !important; }
	.tk-copy { flex-direction: column; }
}
