:root{
    --tm-primary: #1A7B8D;
    --tm-primary-dark: #0E5D6E;
    --tm-primary-light: #E3F1F4;
    --tm-primary-faint: #F4FAFB;
    --tm-accent: #F2A623;
    --tm-text: #1a202c;
    --tm-text-muted: #4a5568;
    --tm-border: #e2e8f0;
    --tm-bg: #ffffff;
    --tm-bg-soft: #f8f9fa;
    --tm-success: #1D9E75;
    --tm-danger: #A32D2D;

    --tm-max: 1200px;
    --tm-gutter: 24px;

    --tm-radius: 8px;
    --tm-radius-lg: 16px;

    --tm-shadow-sm: 0 1px 3px rgba(14, 93, 110, 0.06);
    --tm-shadow: 0 4px 16px rgba(14, 93, 110, 0.10);
    --tm-shadow-lg: 0 16px 48px rgba(14, 93, 110, 0.14);

    --tm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; line-height: 1.6; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    font-family: var(--tm-font);
    color: var(--tm-text);
    background: var(--tm-bg);
    font-size: 17px;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tm-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--tm-primary-dark); }

/* --- Layout --- */
.tmt-container { max-width: var(--tm-max); margin: 0 auto; padding: 0 var(--tm-gutter); }

/* --- Typografia --- */
h1, h2, h3, h4 { color: var(--tm-primary-dark); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; }

/* --- Header / Footer --- */
.tmt-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--tm-border);
}
.tmt-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; flex-wrap: wrap; }
.tmt-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--tm-primary-dark); }
.tmt-brand:hover, .tmt-brand:focus { color: var(--tm-primary); }
.tmt-brand-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tmt-brand-logo svg,
.tmt-brand-logo img,
.tmt-logo-img {
    width: 100%;
    height: 100%;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    display: block;
}
.tmt-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.tmt-brand-name { font-weight: 700; font-size: 18px; letter-spacing: 0.3px; margin-bottom: 2px; }
.tmt-brand-tagline { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--tm-text-muted); font-weight: 500; }

.tmt-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; }
.tmt-nav a { color: var(--tm-text); text-decoration: none; font-weight: 500; padding: 8px 0; }
.tmt-nav a:hover, .tmt-nav a:focus { color: var(--tm-primary); }
.tmt-menu-toggle {
    display: none;
}
.tmt-header-cta {
    padding: 10px 18px;
    font-size: 15px;
}

.tmt-footer {
    background: var(--tm-primary-dark);
    color: #E3F1F4;
    padding: 48px 0 24px;
    margin-top: 80px;
}
.tmt-footer a { color: #fff; }
.tmt-footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
@media (max-width: 800px) { .tmt-footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .tmt-footer-cols { grid-template-columns: 1fr; } }
.tmt-footer h4 { color: #fff; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.tmt-footer p { opacity: 0.85; font-size: 14px; margin-top: 0; }
.tmt-footer ul { list-style: none; padding: 0; margin: 0; }
.tmt-footer ul li { margin-bottom: 8px; font-size: 14px; }
.tmt-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 24px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0.85;
}
.tmt-footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.tmt-footer-links a {
    color: inherit;
    opacity: 0.8;
}
.tmt-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: #0E5D6E;
    color: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.tmt-cookie-banner div {
    flex: 1;
    min-width: 280px;
}
.tmt-cookie-banner strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}
.tmt-cookie-banner p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}
.tmt-cookie-banner a {
    color: #7FD4E4;
}
.tmt-cookie-banner button {
    min-height: 40px;
    padding: 10px 22px;
    border: 0;
    border-radius: 6px;
    background: #1D9E75;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* --- Buttons --- */
.tmt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--tm-radius);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.tmt-btn-primary { background: var(--tm-primary); color: #fff; }
.tmt-btn-primary:hover, .tmt-btn-primary:focus { background: var(--tm-primary-dark); color: #fff; box-shadow: var(--tm-shadow); transform: translateY(-1px); }
.tmt-btn-accent { background: var(--tm-accent); color: #1a202c; }
.tmt-btn-accent:hover, .tmt-btn-accent:focus { background: #d98e0f; color: #1a202c; transform: translateY(-1px); }
.tmt-btn-outline { background: transparent; color: var(--tm-primary); border-color: var(--tm-primary); }
.tmt-btn-outline:hover, .tmt-btn-outline:focus { background: var(--tm-primary-light); color: var(--tm-primary-dark); }
.tmt-btn-ghost { background: transparent; color: var(--tm-text); }
.tmt-btn-ghost:hover, .tmt-btn-ghost:focus { background: var(--tm-primary-light); color: var(--tm-primary-dark); }

/* --- Cards, forms --- */
.tmt-card {
    background: #fff;
    border-radius: var(--tm-radius-lg);
    padding: 32px;
    box-shadow: var(--tm-shadow-sm);
    border: 1px solid var(--tm-border);
}

.tmt-form label { display: block; font-weight: 600; margin: 16px 0 4px; color: var(--tm-primary-dark); }
.tmt-form input, .tmt-form textarea, .tmt-form select {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 16px;
    border: 1px solid #cbd5e0;
    border-radius: var(--tm-radius);
    background: #fff;
}
.tmt-form input:focus, .tmt-form textarea:focus, .tmt-form select:focus {
    outline: 3px solid var(--tm-primary);
    outline-offset: 0;
    border-color: var(--tm-primary);
}
.tmt-form .tmt-hint { font-size: 13px; color: var(--tm-text-muted); margin-top: 4px; }

/* --- Content --- */
.tmt-main { min-height: 60vh; }
.tmt-main-padded { padding: 40px 0 80px; }
.tmt-page-header { padding: 40px 0; text-align: center; background: var(--tm-primary-light); margin-bottom: 40px; }

/* --- Registration and demo pages --- */
.tmt-register-hero,
.tmt-demo-hero {
    padding: 72px 0;
    background: linear-gradient(180deg, #F6F9FA 0%, #fff 100%);
}
.tmt-register-layout,
.tmt-demo-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
    gap: 48px;
    align-items: center;
}
.tmt-register-layout h1,
.tmt-demo-layout h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
}
.tmt-register-layout p,
.tmt-demo-layout p {
    color: var(--tm-text-muted);
    font-size: 18px;
}
.tmt-register-layout ul {
    padding-left: 20px;
    color: var(--tm-text-muted);
}
.tmt-register-value {
    margin-top: 20px;
    border-left: 4px solid var(--tm-primary);
    border-radius: 8px;
    padding: 14px 16px;
    background: #F4FAFB;
}
.tmt-register-value strong,
.tmt-register-value span {
    display: block;
}
.tmt-register-value strong {
    color: var(--tm-primary-dark);
    margin-bottom: 5px;
}
.tmt-register-value span {
    color: var(--tm-text-muted);
    line-height: 1.45;
}
.tmt-register-card,
.tmt-demo-card {
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--tm-shadow);
    padding: 28px;
}
.tmt-register-form {
    display: grid;
    gap: 14px;
}
.tmt-register-form label {
    color: var(--tm-primary-dark);
    font-size: 14px;
    font-weight: 800;
}
.tmt-register-form input[type="text"],
.tmt-register-form input[type="email"],
.tmt-register-form input[type="tel"],
.tmt-register-form select,
.tmt-register-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #C9D7DD;
    border-radius: 6px;
    background: #fff;
    color: var(--tm-text);
    font: inherit;
    box-sizing: border-box;
}
.tmt-register-form textarea {
    min-height: 108px;
}
.tmt-register-form input:focus,
.tmt-register-form select:focus,
.tmt-register-form textarea:focus {
    outline: 3px solid rgba(26,123,141,0.16);
    border-color: var(--tm-primary);
}
.tmt-register-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.tmt-plan-help,
.tmt-register-note {
    color: var(--tm-text-muted);
    font-size: 13px;
}
.tmt-plan-help {
    margin-top: -6px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #F4FAFB;
}
.tmt-register-microproof {
    margin-top: -4px;
    border: 1px solid #B7E3D3;
    border-radius: 6px;
    padding: 9px 11px;
    background: #F0FDF4;
    color: #065F46;
    font-size: 13px;
    font-weight: 800;
}
.tmt-register-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--tm-text-muted) !important;
    font-weight: 600 !important;
}
.tmt-register-consent input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}
.tmt-register-error,
.tmt-demo-warning {
    padding: 12px 14px;
    border-left: 4px solid var(--tm-danger);
    border-radius: 6px;
    background: #FEE2E2;
    color: #7A1F1F;
    font-weight: 800;
}
.tmt-register-success {
    text-align: center;
}
.tmt-register-success strong {
    display: block;
    margin-bottom: 10px;
    color: var(--tm-primary-dark);
    font-size: 24px;
}
.tmt-register-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}
.tmt-hp {
    position: absolute;
    left: -9999px;
}
.tmt-demo-card h2 {
    margin-top: 0;
}
.tmt-demo-card ol {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: demo;
}
.tmt-demo-card li {
    counter-increment: demo;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
}
.tmt-demo-card li::before {
    content: counter(demo);
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--tm-primary);
    color: #fff;
    font-weight: 900;
}
.tmt-demo-card strong,
.tmt-demo-card span {
    grid-column: 2;
}
.tmt-demo-card span,
.tmt-demo-note {
    color: var(--tm-text-muted);
    font-size: 14px;
}
.tmt-demo-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.tmt-demo-feature-grid article {
    padding: 22px;
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    background: #fff;
}
.tmt-demo-feature-grid strong {
    display: block;
    color: var(--tm-primary-dark);
    font-size: 18px;
}
.tmt-demo-feature-grid p {
    margin: 8px 0 0;
    color: var(--tm-text-muted);
    font-size: 15px;
}
.tmt-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* --- Public interactive demo --- */
.tmt-demo-app {
    background: #eef4f6;
}
.tmt-demo-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: calc(100vh - 82px);
}
.tmt-demo-sidebar {
    position: sticky;
    top: 82px;
    align-self: start;
    height: calc(100vh - 82px);
    overflow: auto;
    padding: 22px;
    background: #102f3a;
    color: #eff8fa;
}
.tmt-demo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.tmt-demo-mark {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #1A7B8D;
    color: #fff;
    font-weight: 900;
}
.tmt-demo-brand strong,
.tmt-demo-brand span {
    display: block;
}
.tmt-demo-brand span {
    color: #b8d3da;
    font-size: 13px;
}
.tmt-demo-nav {
    display: grid;
    gap: 6px;
}
.tmt-demo-nav button {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 7px;
    padding: 9px 12px;
    background: transparent;
    color: #eff8fa;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}
.tmt-demo-nav button:hover,
.tmt-demo-nav button:focus,
.tmt-demo-nav button.is-active {
    outline: 0;
    background: #e7f3f5;
    color: #0E5D6E;
}
.tmt-demo-sidebar-note {
    margin-top: 28px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255,255,255,0.06);
}
.tmt-demo-sidebar-note strong,
.tmt-demo-sidebar-note span {
    display: block;
}
.tmt-demo-sidebar-note span {
    margin-top: 4px;
    color: #c8dde2;
    font-size: 13px;
    line-height: 1.45;
}
.tmt-demo-workspace {
    min-width: 0;
    padding: 28px;
}
.tmt-demo-topbar,
.tmt-demo-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}
.tmt-demo-topbar h1 {
    margin-bottom: 8px;
    font-size: clamp(30px, 4vw, 46px);
}
.tmt-demo-topbar p,
.tmt-demo-toolbar p {
    max-width: 780px;
    margin: 0;
    color: var(--tm-text-muted);
}
.tmt-demo-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.tmt-demo-view {
    display: none;
}
.tmt-demo-view.is-active {
    display: block;
}
.tmt-demo-alert {
    margin-bottom: 18px;
    border-left: 4px solid #1D9E75;
    border-radius: 8px;
    padding: 12px 14px;
    background: #dff7ec;
    color: #065f46;
    font-weight: 900;
}
.tmt-demo-metrics,
.tmt-demo-grid,
.tmt-demo-cards {
    display: grid;
    gap: 16px;
}
.tmt-demo-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}
.tmt-demo-metrics article,
.tmt-demo-panel,
.tmt-demo-cards article,
.tmt-demo-calendar article {
    border: 1px solid #d6e3e7;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--tm-shadow-sm);
}
.tmt-demo-metrics article {
    padding: 18px;
}
.tmt-demo-metrics span {
    display: block;
    color: var(--tm-text-muted);
    font-size: 13px;
    font-weight: 800;
}
.tmt-demo-metrics strong {
    display: block;
    margin-top: 6px;
    color: var(--tm-primary-dark);
    font-size: 30px;
    line-height: 1;
}
.tmt-demo-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tmt-demo-panel {
    padding: 22px;
}
.tmt-demo-panel h2,
.tmt-demo-toolbar h2 {
    margin-top: 0;
    font-size: 24px;
}
.tmt-demo-checklist {
    display: grid;
    gap: 10px;
}
.tmt-demo-checklist label {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--tm-text);
    font-weight: 700;
}
.tmt-demo-mini-row,
.tmt-demo-audit-row {
    display: grid;
    gap: 3px;
    padding: 12px 0;
    border-bottom: 1px solid var(--tm-border);
}
.tmt-demo-mini-row:last-child,
.tmt-demo-audit-row:last-child {
    border-bottom: 0;
}
.tmt-demo-mini-row strong,
.tmt-demo-mini-row span,
.tmt-demo-audit-row time,
.tmt-demo-audit-row span {
    display: block;
}
.tmt-demo-mini-row span,
.tmt-demo-muted,
.tmt-demo-audit-row time {
    color: var(--tm-text-muted);
    font-size: 14px;
}
.tmt-demo-table-wrap {
    overflow-x: auto;
    border: 1px solid #d6e3e7;
    border-radius: 8px;
    background: #fff;
}
.tmt-demo-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}
.tmt-demo-table th {
    background: #dff0f4;
    color: var(--tm-primary-dark);
    text-align: left;
}
.tmt-demo-table th,
.tmt-demo-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--tm-border);
    vertical-align: middle;
}
.tmt-demo-table td strong,
.tmt-demo-table td span {
    display: block;
}
.tmt-demo-status {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}
.tmt-demo-status.is-green {
    background: #d1fae5;
    color: #065f46;
}
.tmt-demo-status.is-amber {
    background: #fef3c7;
    color: #854d0e;
}
.tmt-demo-status.is-blue {
    background: #dbeafe;
    color: #1e40af;
}
.tmt-demo-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--tm-primary);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.tmt-demo-link:hover,
.tmt-demo-link:focus {
    color: var(--tm-primary-dark);
    text-decoration: underline;
}
.tmt-demo-filter {
    display: grid;
    gap: 6px;
    min-width: 220px;
    color: var(--tm-primary-dark);
    font-size: 13px;
    font-weight: 900;
}
.tmt-demo-filter select,
.tmt-demo-dialog input,
.tmt-demo-dialog select {
    min-height: 42px;
    border: 1px solid #cbd5e0;
    border-radius: 7px;
    padding: 8px 10px;
    background: #fff;
    color: var(--tm-text);
    font: inherit;
}
.tmt-demo-calendar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.tmt-demo-calendar article {
    display: grid;
    gap: 7px;
    padding: 18px;
}
.tmt-demo-calendar time,
.tmt-demo-calendar span {
    color: var(--tm-text-muted);
    font-size: 14px;
}
.tmt-demo-calendar strong {
    color: var(--tm-primary-dark);
}
.tmt-demo-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tmt-demo-cards article {
    display: grid;
    gap: 6px;
    padding: 18px;
}
.tmt-demo-cards strong {
    color: var(--tm-primary-dark);
}
.tmt-demo-cards span {
    color: var(--tm-text-muted);
}
.tmt-demo-code {
    white-space: pre-wrap;
    overflow: auto;
    margin: 16px 0 0;
    border-radius: 8px;
    padding: 14px;
    background: #102f3a;
    color: #eff8fa;
    font-size: 14px;
}
.tmt-demo-public-preview {
    display: grid;
    gap: 4px;
}
.tmt-demo-report-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--tm-primary-dark);
    font-weight: 900;
}
.tmt-demo-progress {
    height: 14px;
    margin: 12px 0 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}
.tmt-demo-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #1D9E75;
}
.tmt-demo-audit-row {
    grid-template-columns: 80px 1fr;
    align-items: start;
}
.tmt-demo-dialog {
    width: min(560px, calc(100vw - 32px));
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    padding: 0;
    box-shadow: var(--tm-shadow-lg);
}
.tmt-demo-dialog::backdrop {
    background: rgba(16, 47, 58, 0.52);
}
.tmt-demo-dialog form {
    display: grid;
    gap: 14px;
    padding: 22px;
}
.tmt-demo-dialog header,
.tmt-demo-dialog footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.tmt-demo-dialog h2 {
    margin: 0;
    font-size: 24px;
}
.tmt-demo-dialog header button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--tm-border);
    border-radius: 7px;
    background: #fff;
    color: var(--tm-primary-dark);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.tmt-demo-dialog label {
    display: grid;
    gap: 6px;
    color: var(--tm-primary-dark);
    font-size: 14px;
    font-weight: 900;
}

.tmt-contact-hero {
    padding: 72px 0;
    background: linear-gradient(180deg, #F4FAFB 0%, #fff 100%);
}
.tmt-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 40px;
    align-items: center;
}
.tmt-contact-hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02;
    color: var(--tm-primary-dark);
}
.tmt-contact-hero p {
    max-width: 680px;
    color: var(--tm-text-muted);
    font-size: 18px;
}
.tmt-contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.tmt-contact-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.tmt-contact-proof span {
    border: 1px solid var(--tm-border);
    border-radius: 999px;
    padding: 7px 10px;
    background: #fff;
    color: var(--tm-primary-dark);
    font-size: 13px;
    font-weight: 800;
}
.tmt-contact-card {
    padding: 26px;
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--tm-shadow);
}
.tmt-contact-card h2,
.tmt-contact-help h2 {
    margin: 0 0 18px;
    color: var(--tm-primary-dark);
}
.tmt-contact-card dl {
    display: grid;
    gap: 14px;
    margin: 0;
}
.tmt-contact-card dt {
    margin-bottom: 3px;
    color: var(--tm-text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}
.tmt-contact-card dd {
    margin: 0;
    color: var(--tm-text);
    font-weight: 800;
}
.tmt-contact-card-note {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--tm-border);
    color: var(--tm-text-muted);
    font-size: 14px;
    line-height: 1.45;
}
.tmt-contact-shortcuts {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}
.tmt-contact-shortcuts a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--tm-border);
    border-radius: 7px;
    background: #F4FAFB;
    color: var(--tm-primary-dark);
    font-weight: 800;
    text-decoration: none;
}
.tmt-contact-shortcuts a::after {
    content: "→";
    color: var(--tm-primary);
}
.tmt-contact-shortcuts a:hover,
.tmt-contact-shortcuts a:focus {
    border-color: var(--tm-primary);
    background: var(--tm-primary-light);
}
.tmt-contact-help {
    padding: 36px 0 76px;
}
.tmt-contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.tmt-contact-grid article {
    padding: 22px;
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    background: #fff;
}
.tmt-contact-grid span {
    color: var(--tm-primary);
    font-weight: 900;
}
.tmt-contact-grid h3 {
    margin: 10px 0 8px;
    color: var(--tm-primary-dark);
}
.tmt-contact-grid p {
    margin: 0;
    color: var(--tm-text-muted);
}

/* --- Public event page --- */
.tmt-event-page {
    background: linear-gradient(180deg, var(--tm-primary-faint) 0, #fff 520px);
}
.tmt-event-hero {
    padding: 64px 0 42px;
}
.tmt-event-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    align-items: stretch;
}
.tmt-event-eyebrow {
    margin: 0 0 12px;
    color: var(--tm-primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tmt-event-hero h1 {
    max-width: 820px;
    margin-bottom: 18px;
    color: var(--tm-primary-dark);
}
.tmt-event-lead {
    max-width: 760px;
    color: var(--tm-text-muted);
    font-size: 20px;
    line-height: 1.55;
}
.tmt-event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}
.tmt-btn-ghost {
    border: 1px solid var(--tm-border);
    background: #fff;
    color: var(--tm-primary-dark);
}
.tmt-event-summary,
.tmt-event-card {
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--tm-shadow-sm);
}
.tmt-event-summary {
    padding: 24px;
}
.tmt-event-datebox {
    width: 88px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--tm-primary-light);
    border-radius: 8px;
    text-align: center;
}
.tmt-event-datebox span {
    display: block;
    padding: 6px;
    background: var(--tm-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}
.tmt-event-datebox strong {
    display: block;
    padding: 10px 0;
    color: var(--tm-primary-dark);
    font-size: 34px;
    line-height: 1;
}
.tmt-event-summary dl {
    display: grid;
    gap: 16px;
    margin: 0;
}
.tmt-event-summary dt {
    color: var(--tm-text-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.tmt-event-summary dd {
    margin: 3px 0 0;
    color: var(--tm-text);
    font-weight: 800;
}
.tmt-event-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding-bottom: 64px;
}
.tmt-event-content,
.tmt-event-sidebar {
    display: grid;
    align-content: start;
    gap: 20px;
}
.tmt-event-card {
    padding: 26px;
}
.tmt-event-card h2 {
    margin-bottom: 14px;
    font-size: 24px;
}
.tmt-event-text {
    color: var(--tm-text);
}
.tmt-event-muted {
    color: var(--tm-text-muted);
}
.tmt-event-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
.tmt-event-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.tmt-event-form label {
    display: grid;
    gap: 6px;
    color: var(--tm-primary-dark);
    font-size: 14px;
    font-weight: 800;
}
.tmt-event-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--tm-border);
    border-radius: 7px;
    padding: 9px 11px;
    color: var(--tm-text);
    font: inherit;
}
.tmt-event-consent {
    grid-template-columns: auto 1fr;
    align-items: start;
    color: var(--tm-text-muted);
    font-weight: 600;
    line-height: 1.45;
}
.tmt-event-consent input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}
.tmt-event-alert {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff7df;
    color: #725300;
    font-weight: 800;
}
.tmt-event-alert.is-success {
    background: #e6f7ef;
    color: #0f684c;
}
.tmt-event-alert.is-error {
    background: #fde8e8;
    color: var(--tm-danger);
}
.tmt-event-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tmt-event-share a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid var(--tm-border);
    border-radius: 7px;
    padding: 7px 11px;
    background: var(--tm-primary-faint);
    color: var(--tm-primary-dark);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}
.tmt-events-index-hero {
    padding: 58px 0 30px;
    background: var(--tm-primary-faint);
}
.tmt-events-index-hero h1 {
    margin-bottom: 12px;
}
.tmt-events-index-hero p:not(.tmt-event-eyebrow) {
    max-width: 760px;
    color: var(--tm-text-muted);
    font-size: 20px;
}
.tmt-events-index {
    padding: 28px 0 72px;
}
.tmt-events-filter {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--tm-shadow-sm);
}
.tmt-events-filter label {
    display: grid;
    gap: 6px;
    color: var(--tm-primary-dark);
    font-size: 13px;
    font-weight: 900;
}
.tmt-events-filter select,
.tmt-events-filter input {
    min-height: 42px;
    border: 1px solid var(--tm-border);
    border-radius: 7px;
    padding: 8px 10px;
    color: var(--tm-text);
    background: #fff;
    font: inherit;
}
.tmt-events-calendar {
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: var(--tm-shadow-sm);
}
.tmt-events-calendar .tm-pub-list-title a,
.tmt-events-calendar .tm-pub-event-title {
    color: inherit;
    text-decoration: none;
}
.tmt-events-calendar .tm-pub-list-title a:hover,
.tmt-events-calendar .tm-pub-list-title a:focus,
.tmt-events-calendar .tm-pub-event-title:hover,
.tmt-events-calendar .tm-pub-event-title:focus {
    text-decoration: underline;
}

@media (max-width: 760px) {
    :root {
        --tm-gutter: 18px;
    }
    body {
        font-size: 16px;
    }
    .tmt-header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 12px 0;
        gap: 12px;
    }
    .tmt-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 42px;
        padding: 8px 12px;
        border: 1px solid var(--tm-border);
        border-radius: 8px;
        background: #fff;
        color: var(--tm-primary-dark);
        font: inherit;
        font-size: 14px;
        font-weight: 800;
        cursor: pointer;
    }
    .tmt-menu-toggle-icon,
    .tmt-menu-toggle-icon::before,
    .tmt-menu-toggle-icon::after {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: transform 0.16s ease, opacity 0.16s ease;
    }
    .tmt-menu-toggle-icon {
        position: relative;
    }
    .tmt-menu-toggle-icon::before,
    .tmt-menu-toggle-icon::after {
        content: "";
        position: absolute;
        left: 0;
    }
    .tmt-menu-toggle-icon::before {
        top: -6px;
    }
    .tmt-menu-toggle-icon::after {
        top: 6px;
    }
    body.tmt-menu-open .tmt-menu-toggle-icon {
        background: transparent;
    }
    body.tmt-menu-open .tmt-menu-toggle-icon::before {
        transform: translateY(6px) rotate(45deg);
    }
    body.tmt-menu-open .tmt-menu-toggle-icon::after {
        transform: translateY(-6px) rotate(-45deg);
    }
    .tmt-nav {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        padding: 12px;
        border: 1px solid var(--tm-border);
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--tm-shadow);
    }
    body.tmt-menu-open .tmt-nav {
        display: block;
    }
    .tmt-nav ul {
        display: grid;
        gap: 6px;
        width: 100%;
    }
    .tmt-nav li {
        display: block;
    }
    .tmt-nav a {
        display: flex;
        min-height: 42px;
        align-items: center;
        padding: 9px 10px;
        border-radius: 7px;
    }
    .tmt-nav a:hover,
    .tmt-nav a:focus {
        background: var(--tm-primary-light);
    }
    .tmt-header-cta {
        width: 100%;
        padding: 10px 14px;
    }
    .tmt-footer-bottom,
    .tmt-footer-links {
        justify-content: flex-start;
    }
    .tmt-cookie-banner {
        display: block;
        padding: 14px 18px;
    }
    .tmt-cookie-banner button {
        width: 100%;
        margin-top: 12px;
    }
    .tmt-register-layout,
    .tmt-contact-layout,
    .tmt-demo-layout,
    .tmt-event-hero-grid,
    .tmt-event-layout,
    .tmt-register-two,
    .tmt-demo-feature-grid,
    .tmt-contact-grid {
        grid-template-columns: 1fr;
    }
    .tmt-register-hero,
    .tmt-contact-hero,
    .tmt-demo-hero {
        padding: 48px 0;
    }
    .tmt-register-card,
    .tmt-demo-card {
        padding: 20px;
    }
    .tmt-register-success-actions .tmt-btn {
        width: 100%;
    }
    .tmt-event-hero {
        padding: 42px 0 28px;
    }
    .tmt-event-summary,
    .tmt-event-card {
        padding: 20px;
    }
    .tmt-event-form-grid {
        grid-template-columns: 1fr;
    }
    .tmt-events-filter {
        grid-template-columns: 1fr;
    }
    .tmt-events-calendar {
        padding: 12px;
    }
}

@media (max-width: 460px) {
    .tmt-brand-logo {
        width: 42px;
        height: 42px;
    }
    .tmt-brand-name {
        font-size: 16px;
    }
    .tmt-brand-tagline {
        font-size: 10px;
    }
    .tmt-menu-toggle span:last-child {
        display: none;
    }
}

@media (max-width: 980px) {
    .tmt-demo-shell {
        grid-template-columns: 1fr;
    }
    .tmt-demo-sidebar {
        position: static;
        height: auto;
    }
    .tmt-demo-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tmt-demo-workspace {
        padding: 20px;
    }
    .tmt-demo-metrics,
    .tmt-demo-grid-2,
    .tmt-demo-calendar,
    .tmt-demo-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .tmt-demo-topbar,
    .tmt-demo-toolbar,
    .tmt-demo-topbar-actions,
    .tmt-demo-dialog footer {
        display: grid;
        grid-template-columns: 1fr;
    }
    .tmt-demo-nav,
    .tmt-demo-metrics,
    .tmt-demo-grid-2,
    .tmt-demo-calendar,
    .tmt-demo-cards {
        grid-template-columns: 1fr;
    }
    .tmt-demo-workspace {
        padding: 16px;
    }
    .tmt-demo-filter {
        min-width: 0;
    }
    .tmt-demo-audit-row {
        grid-template-columns: 1fr;
    }
}

/* --- Demo v2: role-based panel simulator --- */
.tmt-demo-app {
    --tm-primary: #1A7B8D;
    --tm-primary-dark: #0E5D6E;
    --tm-primary-light: #E3F1F4;
    --tm-accent: #F2A623;
    --tm-success: #1D9E75;
    --tm-danger: #A32D2D;
    --tm-muted: #718096;
    --tm-border: #e2e8f0;
    --tm-admin-bg: #f0f2f4;
    min-height: calc(100vh - 82px);
    background: var(--tm-admin-bg);
    color: #2d3748;
}
.tmt-demo-role-gate {
    min-height: calc(100vh - 82px);
    display: grid;
    align-content: center;
    gap: 28px;
    padding: 56px 24px;
    background: linear-gradient(180deg, #f5f8f9 0%, #e8f1f3 100%);
}
.tmt-demo-role-intro {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
.tmt-demo-role-intro h1 {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    color: var(--tm-primary-dark);
    font-size: clamp(32px, 5vw, 56px);
}
.tmt-demo-role-intro p:not(.tmt-eyebrow) {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: #4a5568;
    font-size: 18px;
}
.tmt-demo-role-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: min(1180px, 100%);
    margin: 0 auto;
}
.tmt-demo-role-grid button {
    display: grid;
    gap: 10px;
    min-height: 220px;
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    padding: 24px;
    background: #fff;
    color: #2d3748;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    cursor: pointer;
}
.tmt-demo-role-grid button:hover,
.tmt-demo-role-grid button:focus {
    outline: 3px solid rgba(26,123,141,0.18);
    border-color: var(--tm-primary);
}
.tmt-demo-role-grid span {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--tm-primary);
    color: #fff;
    font-weight: 900;
}
.tmt-demo-role-grid strong {
    color: var(--tm-primary-dark);
    font-size: 21px;
    line-height: 1.15;
}
.tmt-demo-role-grid em {
    color: var(--tm-muted);
    font-style: normal;
    line-height: 1.45;
}
.tmt-demo-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: calc(100vh - 82px);
}
.tmt-demo-shell[hidden],
.tmt-demo-role-gate[hidden] {
    display: none;
}
.tmt-demo-sidebar {
    position: sticky;
    top: 82px;
    height: calc(100vh - 82px);
    align-self: start;
    overflow: auto;
    padding: 0;
    background: #263238;
    color: #f1f5f7;
}
.tmt-demo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 12px 14px;
    background: #2271b1;
}
.tmt-demo-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #fff;
    color: #2271b1;
    font-size: 13px;
    font-weight: 900;
}
.tmt-demo-brand strong,
.tmt-demo-brand span {
    display: block;
}
.tmt-demo-brand span {
    color: rgba(255,255,255,0.82);
    font-size: 12px;
}
.tmt-demo-nav {
    display: grid;
    gap: 0;
    padding: 10px 0;
}
.tmt-demo-nav button {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-left: 4px solid transparent;
    border-radius: 0;
    padding: 9px 14px 9px 18px;
    background: transparent;
    color: #dbe4e8;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.tmt-demo-nav button:hover,
.tmt-demo-nav button:focus,
.tmt-demo-nav button.is-active {
    outline: 0;
    border-left-color: #72aee6;
    background: #1d2327;
    color: #fff;
}
.tmt-demo-sidebar-note {
    margin: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
}
.tmt-demo-sidebar-note strong,
.tmt-demo-sidebar-note span {
    display: block;
}
.tmt-demo-sidebar-note span {
    margin-top: 5px;
    color: #cbd5db;
    font-size: 12px;
    line-height: 1.45;
}
.tmt-demo-workspace {
    min-width: 0;
    padding: 26px;
}
.tmt-demo-topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}
.tmt-demo-topbar h1 {
    margin: 0 0 6px;
    color: var(--tm-primary-dark);
    font-size: 32px;
}
.tmt-demo-topbar p {
    margin: 0;
    color: var(--tm-muted);
}
.tmt-demo-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-start;
    gap: 8px;
}
.tmt-demo-app .tm-btn {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 7px 14px;
    background: var(--tm-primary);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
}
.tmt-demo-app .tm-btn:hover,
.tmt-demo-app .tm-btn:focus {
    background: var(--tm-primary-dark);
    color: #fff;
}
.tmt-demo-app .tm-btn-secondary {
    border-color: var(--tm-primary);
    background: #fff;
    color: var(--tm-primary);
}
.tmt-demo-app .tm-btn-secondary:hover,
.tmt-demo-app .tm-btn-secondary:focus {
    background: var(--tm-primary-light);
    color: var(--tm-primary-dark);
}
.tmt-demo-app .tm-btn-sm {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 12px;
}
.tmt-demo-app .tm-alert {
    border-radius: 6px;
    margin: 14px 0;
    padding: 12px 16px;
}
.tmt-demo-app .tm-alert-info {
    border-left: 4px solid var(--tm-primary);
    background: var(--tm-primary-light);
    color: var(--tm-primary-dark);
}
.tmt-demo-app .tm-alert-success {
    border-left: 4px solid var(--tm-success);
    background: #d1fae5;
    color: #065f46;
}
.tmt-demo-app .tm-context-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
    border-radius: 8px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--tm-primary), var(--tm-primary-dark));
    color: #fff;
}
.tmt-demo-app .tm-context-name {
    margin: 0 0 4px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}
.tmt-demo-app .tm-context-sub {
    margin: 0;
    color: rgba(255,255,255,0.84);
    font-size: 13px;
}
.tmt-demo-app .tm-context-status {
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.18);
    font-size: 12px;
    font-weight: 800;
}
.tmt-demo-app .tm-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 22px;
}
.tmt-demo-app .tm-stat,
.tmt-demo-app .tm-card {
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tmt-demo-app .tm-stat {
    padding: 18px;
}
.tmt-demo-app .tm-stat-label {
    margin-bottom: 6px;
    color: var(--tm-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.tmt-demo-app .tm-stat-value {
    color: var(--tm-primary-dark);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}
.tmt-demo-app .tm-stat-hint {
    margin-top: 6px;
    color: var(--tm-muted);
    font-size: 12px;
}
.tmt-demo-app .tm-card {
    margin-bottom: 22px;
    padding: 22px;
}
.tmt-demo-app .tm-card h2 {
    margin: 0 0 16px;
    border-bottom: 2px solid var(--tm-primary-light);
    padding-bottom: 8px;
    color: var(--tm-primary-dark);
    font-size: 18px;
}
.tmt-demo-app .tm-card-intro,
.tmt-demo-app .tm-card-headline p,
.tmt-demo-app .tm-muted-inline {
    color: var(--tm-muted);
    font-size: 13px;
}
.tmt-demo-app .tm-card-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.tmt-demo-app .tm-card-headline h2 {
    margin-bottom: 6px;
}
.tmt-demo-app .tm-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 20px;
}
.tmt-demo-table-scroll {
    overflow-x: auto;
}
.tmt-demo-app .tm-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}
.tmt-demo-app .tm-table th {
    border-bottom: 2px solid var(--tm-primary);
    padding: 10px 12px;
    background: var(--tm-primary-light);
    color: var(--tm-primary-dark);
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}
.tmt-demo-app .tm-table td {
    border-bottom: 1px solid var(--tm-border);
    padding: 12px;
    vertical-align: middle;
}
.tmt-demo-app .tm-table tr:hover {
    background: #fafbfc;
}
.tmt-demo-app .tm-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.tmt-demo-app .tm-badge-active { background: #d1fae5; color: #065f46; }
.tmt-demo-app .tm-badge-trial { background: #fef3c7; color: #92400e; }
.tmt-demo-app .tm-badge-expired { background: #e5e7eb; color: #374151; }
.tmt-demo-app .tm-badge-suspended { background: #fee2e2; color: #991b1b; }
.tmt-demo-quick-grid,
.tmt-demo-card-grid,
.tmt-demo-calendar-grid {
    display: grid;
    gap: 14px;
}
.tmt-demo-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tmt-demo-quick-grid button,
.tmt-demo-card-grid article,
.tmt-demo-calendar-grid article {
    display: grid;
    gap: 7px;
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    color: #2d3748;
}
.tmt-demo-quick-grid button {
    text-align: left;
    cursor: pointer;
}
.tmt-demo-quick-grid button:hover,
.tmt-demo-quick-grid button:focus {
    outline: 3px solid rgba(26,123,141,.14);
    border-color: var(--tm-primary);
}
.tmt-demo-quick-grid span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--tm-primary);
    color: #fff;
    font-weight: 900;
}
.tmt-demo-quick-grid strong,
.tmt-demo-card-grid strong,
.tmt-demo-calendar-grid strong {
    color: var(--tm-primary-dark);
}
.tmt-demo-quick-grid em,
.tmt-demo-card-grid span,
.tmt-demo-calendar-grid span,
.tmt-demo-calendar-grid time {
    color: var(--tm-muted);
    font-style: normal;
    font-size: 13px;
}
.tmt-demo-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tmt-demo-calendar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tmt-demo-filter {
    display: grid;
    gap: 5px;
    min-width: 220px;
    color: var(--tm-primary-dark);
    font-size: 13px;
    font-weight: 800;
}
.tmt-demo-filter select,
.tmt-demo-dialog input,
.tmt-demo-dialog select {
    min-height: 38px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    padding: 8px 10px;
    background: #fff;
    color: #2d3748;
    font: inherit;
}
.tmt-demo-code {
    white-space: pre-wrap;
    overflow: auto;
    border-radius: 8px;
    padding: 14px;
    background: #1d2327;
    color: #f6f7f7;
    font-size: 13px;
}
.tmt-demo-message {
    display: grid;
    gap: 5px;
    border-bottom: 1px solid var(--tm-border);
    padding: 13px 0;
}
.tmt-demo-message:last-child {
    border-bottom: 0;
}
.tmt-demo-message span {
    color: #4a5568;
}
.tmt-demo-dialog {
    width: min(560px, calc(100vw - 32px));
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 16px 48px rgba(0,0,0,.18);
}
.tmt-demo-dialog::backdrop {
    background: rgba(29,35,39,.56);
}
.tmt-demo-dialog form {
    display: grid;
    gap: 14px;
    padding: 22px;
}
.tmt-demo-dialog header,
.tmt-demo-dialog footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.tmt-demo-dialog h2 {
    margin: 0;
    color: var(--tm-primary-dark);
    font-size: 22px;
}
.tmt-demo-dialog header button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--tm-border);
    border-radius: 4px;
    background: #fff;
    color: var(--tm-primary-dark);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
@media (max-width: 1100px) {
    .tmt-demo-role-grid,
    .tmt-demo-app .tm-stats,
    .tmt-demo-quick-grid,
    .tmt-demo-card-grid,
    .tmt-demo-calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tmt-demo-app .tm-two-col {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 760px) {
    .tmt-demo-shell {
        grid-template-columns: 1fr;
    }
    .tmt-demo-sidebar {
        position: static;
        height: auto;
    }
    .tmt-demo-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tmt-demo-workspace {
        padding: 18px;
    }
    .tmt-demo-topbar,
    .tmt-demo-app .tm-card-headline,
    .tmt-demo-dialog footer {
        display: grid;
        grid-template-columns: 1fr;
    }
    .tmt-demo-topbar-actions {
        justify-content: stretch;
    }
    .tmt-demo-topbar-actions .tm-btn {
        width: 100%;
    }
}
@media (max-width: 560px) {
    .tmt-demo-role-grid,
    .tmt-demo-app .tm-stats,
    .tmt-demo-quick-grid,
    .tmt-demo-card-grid,
    .tmt-demo-calendar-grid,
    .tmt-demo-nav {
        grid-template-columns: 1fr;
    }
}
