[hidden] { display: none !important; }

.tz-card { padding: 28px; }
.tz-title-bar { background: linear-gradient(135deg, var(--site-dark) 0%, var(--site-dark-2) 100%); border-radius: 10px 10px 0 0; padding: 18px 24px; margin: -28px -28px 24px; }
.tz-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; }

.tz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-bottom: 18px; }
.tz-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tz-field label { font-weight: 600; font-size: .9em; color: #374151; }
.tz-field input[type="date"], .tz-field input[type="time"], .tz-field select {
    border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-size: .95em; background: #fff; outline: none; transition: border-color .15s ease; width: 100%; box-sizing: border-box; color: #23272f;
}
.tz-field input:focus, .tz-field select:focus { border-color: var(--site-light); }
.tz-field input:focus-visible, .tz-field select:focus-visible, .tz-btn:focus-visible, .tz-chip-remove:focus-visible { outline: 3px solid var(--site-light); outline-offset: 2px; }

.tz-row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.tz-row-actions .tz-field { flex: 1 1 220px; }

.tz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 30px; padding: 10px 20px; font-weight: 600; font-size: .92em; cursor: pointer; transition: background .2s ease; white-space: nowrap; }
.tz-btn-primary { background: var(--site-dark); color: #fff; }
.tz-btn-primary:hover { background: var(--site-dark-2); }
.tz-btn-ghost { background: #f3f4f6; color: #374151; border: 1px solid #ddd; }
.tz-btn-ghost:hover { background: #eceef1; }

.tz-targets { margin: 22px 0 18px; }
.tz-targets-title { font-weight: 600; font-size: .9em; color: #374151; margin: 0 0 10px; }
.tz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tz-chip { display: inline-flex; align-items: center; gap: 6px; background: #f0fdfa; border: 1px solid #99f6e4; color: #134e4a; border-radius: 30px; padding: 5px 6px 5px 12px; font-size: .86em; font-weight: 600; }
.tz-chip-remove { background: #fff; border: 1px solid #99f6e4; border-radius: 50%; width: 24px; height: 24px; line-height: 1; font-size: 1em; color: #134e4a; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tz-chip-remove:hover { background: #ccfbf1; }
.tz-empty { color: #9aa0aa; font-size: .9em; margin: 0; }

.tz-error { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; font-size: .9em; margin: 0 0 16px; }
.tz-note { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 14px; font-size: .9em; margin: 0 0 16px; }
.tz-utc-line { font-size: .9em; color: #374151; margin: 0 0 12px; font-weight: 600; }

.tz-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #eee; border-radius: 10px; }
.tz-table { width: 100%; border-collapse: collapse; font-size: .9em; }
.tz-table th, .tz-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
.tz-table th { background: #f7f8fa; color: #374151; font-weight: 600; white-space: nowrap; }
.tz-table td:first-child { font-weight: 600; color: #23272f; word-break: break-word; }
.tz-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 600px) {
    .tz-card { padding: 22px 18px; }
    .tz-title-bar { margin: -22px -18px 20px; }
    .tz-grid { grid-template-columns: 1fr; }
    .tz-row-actions .tz-field { flex-basis: 100%; }
    .tz-btn { width: 100%; }
    .tz-table th, .tz-table td { padding: 8px 9px; font-size: .85em; }
}
