:root {
--tm-accent:          #c41a1a;
--tm-accent-dark:     #a31616;
--tm-accent-light:    #fef2f2;
--tm-accent-border:   #fca5a5;
--tm-bg-page:         #f7f6f4;
--tm-surface:         #ffffff;
--tm-ink-900:         #1a1610;
--tm-ink-700:         #3d3830;
--tm-ink-500:         #7a7060;
--tm-border:          #e8e4dd;
--tm-border-soft:     #ede9e3;
--tm-radius-card:     10px;
--tm-radius-input:    6px;
--tm-transition:      .22s cubic-bezier(.22,1,.36,1);
--tm-shadow-sm:       0 1px 3px rgba(26,22,16,.06);
--tm-shadow-hover:    0 8px 28px rgba(26,22,16,.13);
--tm-font:            -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
} .tuca-wrap,
.tuca-admin {
background: var(--tm-bg-page);
min-height: 100vh;
padding: 24px 24px 48px;
font-family: var(--tm-font);
color: var(--tm-ink-900);
} .tuca-wrap h1,
.tuca-admin h1 {
font-size: 22px;
font-weight: 700;
margin: 0 0 6px;
color: var(--tm-ink-900);
display: flex;
align-items: center;
gap: 8px;
}
.tuca-version {
font-size: 12px;
font-weight: 500;
color: var(--tm-ink-500);
background: var(--tm-border);
padding: 2px 8px;
border-radius: 20px;
} .tuca-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 12px;
margin: 16px 0 24px;
}
.tuca-stat {
background: var(--tm-surface);
border: 1px solid var(--tm-border);
border-radius: var(--tm-radius-card);
padding: 14px 16px;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
box-shadow: var(--tm-shadow-sm);
}
.tuca-stat-num {
font-size: 26px;
font-weight: 700;
color: var(--tm-accent);
line-height: 1;
}
.tuca-stat-label {
font-size: 11px;
color: var(--tm-ink-500);
text-transform: uppercase;
letter-spacing: .04em;
} .tuca-card {
background: var(--tm-surface);
border: 1px solid var(--tm-border);
border-radius: var(--tm-radius-card);
padding: 20px 24px;
box-shadow: var(--tm-shadow-sm);
transition: box-shadow var(--tm-transition);
}
.tuca-card:hover {
box-shadow: var(--tm-shadow-hover);
}
.tuca-card h2 {
font-size: 15px;
font-weight: 600;
color: var(--tm-ink-900);
margin: 0 0 16px;
padding-bottom: 10px;
border-bottom: 1px solid var(--tm-border);
} .tuca-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
@media (max-width: 1200px) {
.tuca-grid { grid-template-columns: 1fr; }
} .tm-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 10px;
border-radius: 20px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: .03em;
}
.tm-badge-ok    { background: #dcfce7; color: #166534; }
.tm-badge-warn  { background: #fef9c3; color: #713f12; }
.tm-badge-err   { background: var(--tm-accent-light); color: var(--tm-accent); border: 1px solid var(--tm-accent-border); }
.tm-badge-info  { background: #dbeafe; color: #1e40af; }
.tm-badge-gray  { background: var(--tm-border); color: var(--tm-ink-700); } .tm-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 18px;
border-radius: var(--tm-radius-input);
font-size: 13px;
font-weight: 600;
cursor: pointer;
border: none;
transition: background var(--tm-transition), box-shadow var(--tm-transition);
}
.tm-btn-primary {
background: var(--tm-accent);
color: #fff;
}
.tm-btn-primary:hover {
background: var(--tm-accent-dark);
box-shadow: 0 4px 12px rgba(196,26,26,.25);
}
.tm-btn-secondary {
background: var(--tm-surface);
color: var(--tm-ink-900);
border: 1px solid var(--tm-border);
}
.tm-btn-secondary:hover {
background: var(--tm-bg-page);
} .tm-input,
.tm-textarea,
.tm-select {
width: 100%;
padding: 8px 12px;
border: 1px solid var(--tm-border);
border-radius: var(--tm-radius-input);
font-size: 13px;
font-family: var(--tm-font);
color: var(--tm-ink-900);
background: var(--tm-surface);
transition: border-color var(--tm-transition), box-shadow var(--tm-transition);
outline: none;
}
.tm-input:focus,
.tm-textarea:focus,
.tm-select:focus {
border-color: var(--tm-accent);
box-shadow: 0 0 0 3px rgba(196,26,26,.08);
} .tm-log {
background: #1a1610;
color: #d4e0b8;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
font-size: 12px;
line-height: 1.7;
border-radius: var(--tm-radius-card);
padding: 16px;
max-height: 280px;
overflow-y: auto;
white-space: pre-wrap;
word-break: break-all;
} .tm-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 20px;
background: var(--tm-bg-page);
border-bottom: 1px solid var(--tm-border);
border-radius: var(--tm-radius-card) var(--tm-radius-card) 0 0;
}
.tm-panel-header h2 {
margin: 0;
font-size: 14px;
font-weight: 700;
color: var(--tm-ink-900);
} .tm-menu-badge {
display: inline-block;
background: var(--tm-accent);
color: #fff;
font-size: 10px;
font-weight: 700;
padding: 1px 6px;
border-radius: 10px;
margin-left: 4px;
vertical-align: middle;
} .tm-notice {
padding: 10px 14px;
border-radius: var(--tm-radius-input);
font-size: 13px;
margin: 12px 0;
}
.tm-notice-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.tm-notice-error   { background: var(--tm-accent-light); color: var(--tm-accent); border: 1px solid var(--tm-accent-border); }
.tm-notice-warning { background: #fef9c3; color: #713f12; border: 1px solid #fde68a; }
.tm-notice-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; } .tm-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
color: var(--tm-ink-900);
}
.tm-table th {
background: var(--tm-bg-page);
padding: 9px 14px;
text-align: left;
font-weight: 600;
font-size: 11px;
text-transform: uppercase;
letter-spacing: .04em;
color: var(--tm-ink-500);
border-bottom: 1px solid var(--tm-border);
}
.tm-table td {
padding: 10px 14px;
border-bottom: 1px solid var(--tm-border-soft);
vertical-align: middle;
}
.tm-table tr:hover td {
background: var(--tm-bg-page);
} .tm-tabs {
display: flex;
gap: 4px;
border-bottom: 2px solid var(--tm-border);
margin-bottom: 20px;
}
.tm-tab {
padding: 8px 16px;
font-size: 13px;
font-weight: 500;
color: var(--tm-ink-700);
background: none;
border: none;
border-bottom: 2px solid transparent;
margin-bottom: -2px;
cursor: pointer;
transition: color var(--tm-transition), border-color var(--tm-transition);
}
.tm-tab:hover { color: var(--tm-ink-900); }
.tm-tab.active,
.tm-tab[aria-selected="true"] {
color: var(--tm-accent);
border-bottom-color: var(--tm-accent);
font-weight: 600;
} .tm-spin {
display: inline-block;
width: 16px;
height: 16px;
border: 2px solid var(--tm-border);
border-top-color: var(--tm-accent);
border-radius: 50%;
animation: tm-spin .6s linear infinite;
vertical-align: middle;
}
@keyframes tm-spin {
to { transform: rotate(360deg); }
}.trd-app {
--trd-red: #c41a1a;
--trd-red-dark: #a01515;
--trd-ink: #1a1610;
--trd-muted: #6b6560;
--trd-soft: #f7f6f4;
--trd-line: #e8e5e0;
--trd-green: #236347;
--trd-blue: #244d72;
--trd-gold: #9b722d;
color: var(--trd-ink);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.trd-shell {
max-width: 1180px;
margin: 0 auto;
padding: 22px;
background: #ffffff;
border: 1px solid var(--trd-line);
border-radius: 8px;
box-shadow: 0 10px 28px rgba(26, 22, 16, .08);
}
.trd-topbar,
.trd-toolbar,
.trd-form-head,
.trd-form-actions,
.trd-card-actions,
.trd-card-top,
.trd-meta-row {
display: flex;
align-items: center;
}
.trd-topbar {
justify-content: space-between;
gap: 16px;
padding-bottom: 18px;
border-bottom: 1px solid var(--trd-line);
}
.trd-kicker {
margin: 0 0 4px;
color: var(--trd-red);
font-size: 12px;
line-height: 1.2;
letter-spacing: .08em;
text-transform: uppercase;
font-weight: 800;
}
.trd-topbar h2 {
margin: 0;
font-family: Georgia, "Times New Roman", serif;
font-size: 30px;
line-height: 1.2;
letter-spacing: 0;
}
.trd-primary,
.trd-secondary,
.trd-danger,
.trd-ghost,
.trd-tabs button {
min-height: 40px;
border: 1px solid transparent;
border-radius: 6px;
padding: 0 14px;
font-size: 14px;
font-weight: 750;
cursor: pointer;
transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.trd-primary {
background: var(--trd-red);
color: #ffffff;
}
.trd-primary:hover {
background: var(--trd-red-dark);
color: #ffffff;
}
.trd-secondary,
.trd-ghost,
.trd-tabs button {
background: #ffffff;
color: var(--trd-ink);
border-color: var(--trd-line);
}
.trd-secondary:hover,
.trd-ghost:hover,
.trd-tabs button:hover {
border-color: #d1cdc7;
background: #fbfaf8;
}
.trd-danger {
background: #fff5f5;
color: #8b1d1d;
border-color: #f1c6c6;
}
.trd-icon-btn {
width: 36px;
height: 36px;
border: 1px solid var(--trd-line);
border-radius: 6px;
background: #ffffff;
color: var(--trd-muted);
font-size: 24px;
line-height: 1;
cursor: pointer;
}
.trd-stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
margin: 18px 0;
}
.trd-stats div {
padding: 16px;
background: var(--trd-soft);
border: 1px solid var(--trd-line);
border-radius: 8px;
}
.trd-stats strong {
display: block;
font-size: 28px;
line-height: 1;
color: var(--trd-ink);
}
.trd-stats span {
display: block;
margin-top: 6px;
color: var(--trd-muted);
font-size: 13px;
}
.trd-panel {
margin: 0 0 18px;
padding: 18px;
border: 1px solid var(--trd-line);
border-radius: 8px;
background: #fbfaf8;
}
.trd-form-head {
justify-content: space-between;
gap: 12px;
margin-bottom: 14px;
}
.trd-form-head h3 {
margin: 0;
font-size: 18px;
line-height: 1.3;
}
.trd-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.trd-grid label {
display: grid;
gap: 7px;
min-width: 0;
}
.trd-grid label span {
color: var(--trd-muted);
font-size: 12px;
font-weight: 750;
text-transform: uppercase;
letter-spacing: .04em;
}
.trd-grid input,
.trd-grid select,
.trd-grid textarea,
.trd-toolbar input {
width: 100%;
min-height: 42px;
border: 1px solid var(--trd-line);
border-radius: 6px;
background: #ffffff;
color: var(--trd-ink);
padding: 9px 11px;
font-size: 14px;
box-shadow: none;
}
.trd-grid textarea {
resize: vertical;
}
.trd-wide {
grid-column: 1 / -1;
}
.trd-toggle {
align-content: end;
grid-template-columns: auto 1fr;
gap: 10px !important;
min-height: 66px;
}
.trd-toggle input {
width: 18px;
min-height: 18px;
margin: 0;
}
.trd-form-actions {
justify-content: flex-end;
gap: 10px;
margin-top: 16px;
}
.trd-toolbar {
justify-content: space-between;
gap: 14px;
margin: 18px 0 14px;
}
.trd-tabs {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.trd-tabs button.active {
background: var(--trd-ink);
color: #ffffff;
border-color: var(--trd-ink);
}
.trd-toolbar input {
max-width: 280px;
}
.trd-list {
display: grid;
gap: 12px;
}
.trd-card {
border: 1px solid var(--trd-line);
border-left: 4px solid #d1cdc7;
border-radius: 8px;
background: #ffffff;
overflow: hidden;
}
.trd-card.needs_review {
border-left-color: var(--trd-red);
}
.trd-card.archived {
opacity: .84;
}
.trd-card-inner {
padding: 18px;
}
.trd-card-top {
justify-content: space-between;
align-items: flex-start;
gap: 14px;
}
.trd-case-title {
margin: 0 0 4px;
font-size: 19px;
line-height: 1.25;
}
.trd-case-subtitle {
margin: 0;
color: var(--trd-muted);
font-size: 13px;
line-height: 1.4;
}
.trd-badges {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 6px;
}
.trd-badge {
display: inline-flex;
align-items: center;
min-height: 26px;
border-radius: 999px;
padding: 0 9px;
background: var(--trd-soft);
border: 1px solid var(--trd-line);
color: var(--trd-muted);
font-size: 12px;
font-weight: 750;
}
.trd-badge.high,
.trd-badge.needs_review {
background: #fff1f1;
color: var(--trd-red-dark);
border-color: #f1c6c6;
}
.trd-badge.verified {
background: #eef8f2;
color: var(--trd-green);
border-color: #cce6d7;
}
.trd-badge.archived {
background: #f1f3f5;
color: #5d6770;
}
.trd-details {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
margin-top: 16px;
}
.trd-detail {
min-width: 0;
padding: 11px;
border: 1px solid var(--trd-line);
border-radius: 8px;
background: #fbfaf8;
}
.trd-detail span {
display: block;
color: var(--trd-muted);
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: .04em;
}
.trd-detail strong {
display: block;
margin-top: 5px;
color: var(--trd-ink);
font-size: 13px;
line-height: 1.35;
overflow-wrap: anywhere;
}
.trd-alert {
margin-top: 14px;
padding: 12px 14px;
border-radius: 8px;
border: 1px solid #f1c6c6;
background: #fff8f7;
}
.trd-alert strong {
display: block;
margin-bottom: 4px;
color: var(--trd-red-dark);
}
.trd-alert p,
.trd-note {
margin: 0;
color: var(--trd-muted);
font-size: 13px;
line-height: 1.5;
}
.trd-note {
margin-top: 12px;
}
.trd-card-actions {
flex-wrap: wrap;
gap: 8px;
margin-top: 16px;
}
.trd-card-actions button {
min-height: 36px;
}
.trd-empty {
padding: 32px 18px;
border: 1px dashed var(--trd-line);
border-radius: 8px;
color: var(--trd-muted);
text-align: center;
}
.trd-toast {
position: fixed;
right: 18px;
bottom: 18px;
z-index: 99999;
max-width: 360px;
padding: 13px 15px;
border-radius: 8px;
background: var(--trd-ink);
color: #ffffff;
box-shadow: 0 12px 30px rgba(26, 22, 16, .22);
font-size: 14px;
}
.trd-locked {
max-width: 720px;
margin: 0 auto;
padding: 18px;
border: 1px solid var(--trd-line);
border-radius: 8px;
background: #ffffff;
color: var(--trd-muted);
}
.trd-loading {
opacity: .58;
pointer-events: none;
}
@media (max-width: 900px) {
.trd-details {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 680px) {
.trd-shell {
padding: 16px;
}
.trd-topbar,
.trd-toolbar,
.trd-card-top {
align-items: stretch;
flex-direction: column;
}
.trd-topbar h2 {
font-size: 25px;
}
.trd-stats,
.trd-grid,
.trd-details {
grid-template-columns: 1fr;
}
.trd-toolbar input {
max-width: none;
}
.trd-badges {
justify-content: flex-start;
}
}.tcf-app {
--tcf-red: #c41a1a;
--tcf-red-dark: #a01515;
--tcf-ink: #1a1610;
--tcf-muted: #6b6560;
--tcf-soft: #f7f6f4;
--tcf-line: #e8e5e0;
--tcf-gold: #9b722d;
color: var(--tcf-ink);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.tcf-shell {
max-width: 1180px;
margin: 0 auto;
padding: 22px;
background: #ffffff;
border: 1px solid var(--tcf-line);
border-radius: 8px;
box-shadow: 0 10px 28px rgba(26, 22, 16, .08);
}
.tcf-topbar,
.tcf-section-head,
.tcf-actions,
.tcf-layout {
display: flex;
align-items: center;
}
.tcf-topbar {
justify-content: space-between;
gap: 16px;
padding-bottom: 18px;
border-bottom: 1px solid var(--tcf-line);
}
.tcf-kicker {
margin: 0 0 4px;
color: var(--tcf-red);
font-size: 12px;
line-height: 1.2;
letter-spacing: .08em;
text-transform: uppercase;
font-weight: 800;
}
.tcf-topbar h2,
.tcf-section-head h3 {
margin: 0;
font-family: Georgia, "Times New Roman", serif;
letter-spacing: 0;
}
.tcf-topbar h2 {
font-size: 30px;
line-height: 1.2;
}
.tcf-section-head {
justify-content: space-between;
gap: 14px;
margin-bottom: 14px;
}
.tcf-section-head h3 {
font-size: 22px;
}
.tcf-primary,
.tcf-secondary,
.tcf-side button {
min-height: 38px;
border: 1px solid transparent;
border-radius: 6px;
padding: 0 13px;
font-size: 13px;
font-weight: 750;
cursor: pointer;
text-decoration: none;
transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.tcf-primary {
background: var(--tcf-red);
color: #ffffff;
}
.tcf-primary:hover {
background: var(--tcf-red-dark);
color: #ffffff;
}
.tcf-secondary,
.tcf-side button {
background: #ffffff;
color: var(--tcf-ink);
border-color: var(--tcf-line);
}
.tcf-secondary:hover,
.tcf-side button:hover {
background: #fbfaf8;
color: var(--tcf-ink);
border-color: #d1cdc7;
}
.tcf-status {
margin: 18px 0;
}
.tcf-banner,
.tcf-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
gap: 10px;
}
.tcf-field {
min-width: 0;
padding: 12px;
border: 1px solid var(--tcf-line);
border-radius: 8px;
background: var(--tcf-soft);
}
.tcf-field span {
display: block;
color: var(--tcf-muted);
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: .04em;
}
.tcf-field strong {
display: block;
margin-top: 5px;
color: var(--tcf-ink);
font-size: 13px;
line-height: 1.4;
overflow-wrap: anywhere;
}
.tcf-layout {
align-items: flex-start;
gap: 16px;
}
.tcf-side {
position: sticky;
top: 24px;
display: grid;
gap: 8px;
width: 210px;
flex: 0 0 210px;
}
.tcf-side button {
justify-content: flex-start;
text-align: left;
}
.tcf-side button.active {
background: var(--tcf-ink);
color: #ffffff;
border-color: var(--tcf-ink);
}
.tcf-main {
flex: 1;
min-width: 0;
}
.tcf-panel {
display: none;
}
.tcf-panel.active {
display: block;
}
.tcf-card,
.tcf-empty,
.tcf-loading,
.tcf-locked {
padding: 16px;
border: 1px solid var(--tcf-line);
border-radius: 8px;
background: #ffffff;
}
.tcf-card {
margin-top: 12px;
}
.tcf-card h4 {
margin: 0 0 8px;
font-size: 16px;
line-height: 1.3;
}
.tcf-card p,
.tcf-card li,
.tcf-meta {
color: var(--tcf-muted);
font-size: 13px;
line-height: 1.55;
}
.tcf-list {
display: grid;
gap: 10px;
}
.tcf-tags {
display: flex;
flex-wrap: wrap;
gap: 7px;
}
.tcf-tags span,
.tcf-pill,
.tcf-warning {
display: inline-flex;
align-items: center;
min-height: 26px;
border-radius: 999px;
padding: 0 9px;
background: var(--tcf-soft);
border: 1px solid var(--tcf-line);
color: var(--tcf-muted);
font-size: 12px;
font-weight: 750;
}
.tcf-pill {
color: #784500;
background: #fff7e6;
border-color: #f0d29a;
}
.tcf-warning {
margin-top: 8px;
color: var(--tcf-red-dark);
background: #fff1f1;
border-color: #f1c6c6;
}
.tcf-step {
width: 28px;
height: 28px;
display: inline-grid;
place-items: center;
border-radius: 50%;
background: var(--tcf-ink);
color: #ffffff;
font-size: 12px;
font-weight: 800;
margin-bottom: 8px;
}
.tcf-actions {
justify-content: flex-end;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
.tcf-card textarea,
#tcf-json-import {
width: 100%;
min-height: 120px;
border: 1px solid var(--tcf-line);
border-radius: 8px;
background: #ffffff;
color: var(--tcf-ink);
padding: 11px;
font-size: 14px;
line-height: 1.5;
box-shadow: none;
}
#tcf-json-import {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.tcf-switch {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--tcf-muted);
font-size: 13px;
font-weight: 750;
}
.tcf-toast {
position: fixed;
right: 18px;
bottom: 18px;
z-index: 99999;
max-width: 360px;
padding: 13px 15px;
border-radius: 8px;
background: var(--tcf-ink);
color: #ffffff;
box-shadow: 0 12px 30px rgba(26, 22, 16, .22);
font-size: 14px;
}
.tcf-settings-box {
max-width: 1180px;
margin: 12px auto 18px;
padding: 14px;
border: 1px solid var(--tcf-line, #e8e5e0);
border-radius: 8px;
background: #ffffff;
}
.tcf-settings-box form {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}
.tcf-settings-box label {
font-weight: 700;
}
.tcf-admin-check {
display: inline-flex;
align-items: center;
gap: 6px;
}
.tcf-busy {
opacity: .72;
pointer-events: none;
}
@media (max-width: 760px) {
.tcf-shell {
padding: 16px;
}
.tcf-topbar,
.tcf-section-head,
.tcf-layout {
align-items: stretch;
flex-direction: column;
}
.tcf-topbar h2 {
font-size: 25px;
}
.tcf-side {
position: static;
width: 100%;
flex-basis: auto;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}