/* ── Time Toolkit — Main Stylesheet ── */

/* ── Layout ── */
.tt-wrap { display: flex; flex-direction: column; gap: 0; }
.tt-search-bar {
    display: flex; align-items: center; gap: 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    padding: 10px 14px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.tt-search-bar svg { color: var(--color-text-muted); flex-shrink: 0; }
.tt-search-bar input {
    border: none; background: transparent; outline: none;
    font-size: 14px; color: var(--color-text); flex: 1;
    padding: 0;
}
.tt-search-bar input::placeholder { color: var(--color-text-subtle); }

/* ── Universal Input Hero ── */
.tt-universal {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.tt-universal-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    padding: 20px 24px;
    color: #fff;
}
.tt-universal-header h2 {
    margin: 0 0 4px; font-size: 18px; font-weight: 700;
}
.tt-universal-header p {
    margin: 0; font-size: 13px; opacity: .85;
}
.tt-universal-body { padding: 20px 24px; }
.tt-uni-row {
    display: flex; gap: 10px; align-items: stretch;
}
.tt-uni-input {
    flex: 1;
    font-size: 15px !important;
    padding: 12px 16px !important;
    border-radius: var(--radius-medium) !important;
    border: 2px solid var(--color-border) !important;
    transition: border-color .2s !important;
}
.tt-uni-input:focus { border-color: var(--color-primary) !important; }
.tt-uni-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 20px;
    background: var(--color-primary);
    color: #fff;
    border: none; border-radius: var(--radius-medium);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.tt-uni-btn:hover { background: var(--color-primary-hover); }
.tt-uni-btn svg { width: 16px; height: 16px; }
.tt-uni-clear {
    display: inline-flex; align-items: center;
    padding: 12px 14px;
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border); border-radius: var(--radius-medium);
    font-size: 13px; cursor: pointer; transition: all .15s;
}
.tt-uni-clear:hover { background: var(--color-border); color: var(--color-text); }
.tt-detected {
    margin-top: 12px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.tt-detected-label {
    font-size: 12px; color: var(--color-text-muted);
}
.tt-detected-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600;
}
.tt-detected-badge svg { width: 12px; height: 12px; }
.tt-detected-val {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--color-text-muted);
}
.tt-uni-hint {
    margin-top: 10px;
    font-size: 12px; color: var(--color-text-subtle);
    display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.tt-hint-chip {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: 4px; padding: 2px 7px;
    font-family: var(--font-mono); font-size: 11px;
    cursor: pointer; color: var(--color-text-muted);
    transition: all .15s;
}
.tt-hint-chip:hover { background: var(--color-primary-light); color: var(--color-primary); border-color: var(--color-primary); }

/* ── Live Clock ── */
.tt-live-clock {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin-top: 14px;
}
.tt-clock-item {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    padding: 10px 14px;
    font-family: var(--font-mono);
}
.tt-clock-label { font-size: 11px; color: var(--color-text-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .05em; }
.tt-clock-val { font-size: 18px; font-weight: 700; color: var(--color-text); }
.tt-clock-sub { font-size: 11px; color: var(--color-text-muted); }

/* ── Accordion ── */
.tt-accordion {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow .2s;
}
.tt-accordion.tt-open { box-shadow: var(--shadow-md); }
.tt-accordion.tt-hidden { display: none; }

.tt-acc-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}
.tt-acc-header:hover { background: var(--color-surface-alt); }
.tt-acc-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: var(--radius-small);
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
}
.tt-acc-icon svg { width: 18px; height: 18px; }
.tt-acc-info { flex: 1; min-width: 0; }
.tt-acc-title { font-size: 14px; font-weight: 600; color: var(--color-text); }
.tt-acc-desc { font-size: 12px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-acc-meta { display: flex; align-items: center; gap: 8px; }
.tt-acc-count {
    font-size: 11px; background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: 999px; padding: 1px 8px;
    color: var(--color-text-muted); white-space: nowrap;
}
.tt-acc-chevron { color: var(--color-text-muted); transition: transform .25s; flex-shrink: 0; }
.tt-acc-chevron svg { width: 16px; height: 16px; }
.tt-open .tt-acc-chevron { transform: rotate(180deg); }
.tt-acc-updated {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--color-success); flex-shrink: 0;
    display: none;
}
.tt-acc-updated.visible { display: block; }

.tt-acc-body {
    display: none;
    border-top: 1px solid var(--color-border);
    padding: 0;
}
.tt-open .tt-acc-body { display: block; }

/* ── Tool Sections inside accordion ── */
.tt-section {
    padding: 16px 18px;
    border-bottom: 1px solid var(--color-border);
}
.tt-section:last-child { border-bottom: none; }
.tt-section-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--color-text-muted);
    margin: 0 0 12px;
}

/* ── Grid layouts ── */
.tt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.tt-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tt-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 640px) {
    .tt-grid { grid-template-columns: 1fr 1fr; }
    .tt-grid-3 { grid-template-columns: 1fr 1fr; }
    .tt-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
    .tt-grid { grid-template-columns: 1fr; }
    .tt-grid-3 { grid-template-columns: 1fr; }
}

/* ── Value cells ── */
.tt-val-cell {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    padding: 10px 12px;
    position: relative;
}
.tt-val-label {
    font-size: 11px; color: var(--color-text-muted);
    text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: 4px;
}
.tt-val-value {
    font-size: 14px; font-weight: 600; color: var(--color-text);
    word-break: break-all;
    padding-right: 24px;
}
.tt-val-value.mono { font-family: var(--font-mono); font-size: 13px; }
.tt-val-value.big { font-size: 22px; }
.tt-copy-inline {
    position: absolute; top: 8px; right: 8px;
    background: none; border: none; cursor: pointer;
    color: var(--color-text-subtle); padding: 2px;
    border-radius: 3px; transition: color .15s, background .15s;
    display: flex; align-items: center; justify-content: center;
}
.tt-copy-inline:hover { color: var(--color-primary); background: var(--color-primary-light); }
.tt-copy-inline svg { width: 13px; height: 13px; }
.tt-copy-inline.copied { color: var(--color-success); }

/* ── Inputs inside tools ── */
.tt-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tt-row + .tt-row { margin-top: 8px; }
.tt-label { font-size: 12px; color: var(--color-text-muted); white-space: nowrap; }
.tt-input {
    flex: 1; min-width: 120px;
    padding: 8px 10px; font-size: 13px;
    border: 1px solid var(--color-border); border-radius: var(--radius-small);
    background: var(--color-surface); color: var(--color-text);
    outline: none; transition: border-color .15s;
}
.tt-input:focus { border-color: var(--color-primary); }
.tt-select {
    padding: 8px 10px; font-size: 13px;
    border: 1px solid var(--color-border); border-radius: var(--radius-small);
    background: var(--color-surface); color: var(--color-text);
    outline: none; cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 8px center; background-size: 16px;
    padding-right: 28px;
}
.tt-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 14px; font-size: 13px; font-weight: 500;
    border: 1px solid var(--color-border); border-radius: var(--radius-small);
    background: var(--color-surface-alt); color: var(--color-text);
    cursor: pointer; transition: all .15s; white-space: nowrap;
}
.tt-btn:hover { background: var(--color-border); }
.tt-btn-primary {
    background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}
.tt-btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.tt-btn svg { width: 13px; height: 13px; }
.tt-btn-sm { padding: 5px 10px; font-size: 12px; }

/* ── Result areas ── */
.tt-result {
    margin-top: 10px;
    border-radius: var(--radius-small);
    font-size: 13px;
}
.tt-result.tt-empty { display: none; }
.tt-result-inner {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    padding: 12px;
}
.tt-result-error {
    background: var(--color-danger-light);
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
    border-radius: var(--radius-small);
    padding: 10px 12px;
    font-size: 13px;
}
.tt-result-success {
    background: var(--color-success-light);
    border: 1px solid var(--color-success);
    color: var(--color-success);
    border-radius: var(--radius-small);
    padding: 10px 12px;
    font-size: 13px;
}

/* ── Code blocks ── */
.tt-code {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
    color: var(--color-text);
    position: relative;
}
.tt-code-wrap {
    position: relative;
    margin-top: 8px;
}
.tt-code-copy {
    position: absolute; top: 8px; right: 8px;
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: 4px; padding: 3px 8px; font-size: 11px;
    cursor: pointer; color: var(--color-text-muted);
    display: flex; align-items: center; gap: 4px;
    transition: all .15s;
}
.tt-code-copy:hover { color: var(--color-primary); border-color: var(--color-primary); }
.tt-code-copy.copied { color: var(--color-success); border-color: var(--color-success); }

/* ── Tables ── */
.tt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tt-table th {
    text-align: left; font-weight: 600; font-size: 11px;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--color-text-muted);
    padding: 8px 10px; background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border);
}
.tt-table td { padding: 8px 10px; border-bottom: 1px solid var(--color-border); }
.tt-table tr:last-child td { border-bottom: none; }
.tt-table td:first-child { font-weight: 500; color: var(--color-text-muted); white-space: nowrap; }
.tt-table td:last-child { font-family: var(--font-mono); }
.tt-table-wrap {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    overflow: hidden;
    margin-top: 10px;
}
.tt-table .tt-copy-td {
    width: 32px; text-align: center;
}
.tt-copy-cell {
    background: none; border: none; cursor: pointer;
    color: var(--color-text-subtle); padding: 2px 4px;
    border-radius: 3px; transition: all .15s;
    display: flex; align-items: center; justify-content: center;
    margin: auto;
}
.tt-copy-cell:hover { color: var(--color-primary); background: var(--color-primary-light); }
.tt-copy-cell svg { width: 12px; height: 12px; }

/* ── Calendar grid ── */
.tt-cal {
    font-family: var(--font-mono); font-size: 12px;
    border: 1px solid var(--color-border); border-radius: var(--radius-small);
    overflow: hidden; margin-top: 10px;
}
.tt-cal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px;
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border);
    font-weight: 600; font-size: 13px; font-family: var(--font-sans);
}
.tt-cal-nav { cursor: pointer; color: var(--color-primary); padding: 2px 8px; border-radius: 4px; }
.tt-cal-nav:hover { background: var(--color-primary-light); }
.tt-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.tt-cal-dow {
    text-align: center; padding: 6px 4px; font-size: 11px;
    font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--color-text-muted); background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border);
}
.tt-cal-day {
    text-align: center; padding: 7px 4px; font-size: 12px;
    cursor: default; transition: background .1s;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}
.tt-cal-day:nth-last-child(-n+7) { border-bottom: none; }
.tt-cal-day.other-month { color: var(--color-text-subtle); }
.tt-cal-day.today {
    background: var(--color-primary);
    color: #fff; font-weight: 700; border-radius: 4px;
}
.tt-cal-day.selected { background: var(--color-primary-light); color: var(--color-primary); font-weight: 700; }
.tt-cal-day.weekend { color: var(--color-danger); }
.tt-cal-day.today.weekend { color: #fff; }

/* ── Tabs ── */
.tt-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--color-border); margin-bottom: 14px; }
.tt-tab {
    padding: 8px 14px; font-size: 13px; font-weight: 500;
    color: var(--color-text-muted); cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}
.tt-tab:hover { color: var(--color-text); }
.tt-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.tt-tab-panel { display: none; }
.tt-tab-panel.active { display: block; }

/* ── Export toolbar ── */
.tt-export-row {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-top: 10px;
}

/* ── Progress / bars ── */
.tt-bar-wrap { background: var(--color-surface-alt); border-radius: 999px; height: 6px; overflow: hidden; margin-top: 4px; }
.tt-bar-fill { height: 100%; background: var(--color-primary); border-radius: 999px; transition: width .4s; }
.tt-bar-fill.success { background: var(--color-success); }
.tt-bar-fill.warning { background: var(--color-warning); }
.tt-bar-fill.danger { background: var(--color-danger); }

/* ── Loading spinner ── */
.tt-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%; animation: tt-spin .6s linear infinite;
}
@keyframes tt-spin { to { transform: rotate(360deg); } }

/* ── Badges / chips ── */
.tt-badge {
    display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 600;
    border-radius: 999px;
}
.tt-badge-primary { background: var(--color-primary-light); color: var(--color-primary); }
.tt-badge-success { background: var(--color-success-light); color: var(--color-success); }
.tt-badge-danger  { background: var(--color-danger-light);  color: var(--color-danger);  }
.tt-badge-warning { background: var(--color-warning-light); color: var(--color-warning); }
.tt-badge-info    { background: var(--color-info-light);    color: var(--color-info);    }
.tt-badge-muted   { background: var(--color-surface-alt);   color: var(--color-text-muted); border: 1px solid var(--color-border); }

/* ── Countdown big display ── */
.tt-countdown {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    padding: 16px; background: var(--color-surface-alt);
    border: 1px solid var(--color-border); border-radius: var(--radius-medium);
}
.tt-cd-unit { text-align: center; }
.tt-cd-val { font-size: 32px; font-weight: 800; color: var(--color-primary); font-family: var(--font-mono); line-height: 1; }
.tt-cd-label { font-size: 11px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* ── World clock grid ── */
.tt-world-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.tt-wc-card {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    padding: 10px 12px;
}
.tt-wc-tz { font-size: 11px; color: var(--color-text-muted); margin-bottom: 2px; }
.tt-wc-time { font-size: 18px; font-weight: 700; font-family: var(--font-mono); }
.tt-wc-date { font-size: 11px; color: var(--color-text-muted); }
.tt-wc-offset { font-size: 11px; color: var(--color-primary); }

/* ── Divider ── */
.tt-divider { height: 1px; background: var(--color-border); margin: 14px 0; }

/* ── Tooltip ── */
.tt-tooltip { position: relative; display: inline-block; }
.tt-tooltip-text {
    visibility: hidden; position: absolute; z-index: 10;
    background: #1a202c; color: #fff; font-size: 11px;
    padding: 4px 8px; border-radius: 4px; white-space: nowrap;
    bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    opacity: 0; transition: opacity .2s;
    pointer-events: none;
}
.tt-tooltip:hover .tt-tooltip-text { visibility: visible; opacity: 1; }

/* ── Moon phase visual ── */
.tt-moon {
    width: 60px; height: 60px; border-radius: 50%;
    background: #c8c8c8; position: relative; overflow: hidden;
    flex-shrink: 0;
}
.tt-moon-shadow {
    position: absolute; top: 0; bottom: 0;
    background: #1a1a2e; border-radius: 50%;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .tt-uni-row { flex-direction: column; }
    .tt-uni-btn, .tt-uni-clear { width: 100%; justify-content: center; }
    .tt-acc-desc { display: none; }
    .tt-world-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .tt-universal-body, .tt-section { padding: 12px 14px; }
    .tt-countdown { gap: 8px; }
    .tt-cd-val { font-size: 24px; }
    .tt-acc-header { padding: 12px 14px; }
    .tt-world-grid { grid-template-columns: 1fr; }
}

/* ── No-data placeholder ── */
.tt-nodata {
    text-align: center; padding: 24px 16px;
    color: var(--color-text-muted); font-size: 13px;
}
.tt-nodata svg { width: 32px; height: 32px; opacity: .4; margin: 0 auto 8px; display: block; }

/* ── Dashboard (summary results) ── */
.tt-dashboard {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: tt-fadein .2s ease;
}
@keyframes tt-fadein { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

.tt-dash-header {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px;
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}
.tt-dash-label { font-size: 12px; color: var(--color-text-muted); white-space: nowrap; }
.tt-dash-query-val {
    font-family: var(--font-mono); font-size: 13px; font-weight: 600;
    color: var(--color-text); max-width: 420px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tt-dash-type-chip {
    font-size: 10px; font-weight: 700; letter-spacing: .06em;
    padding: 2px 9px; border-radius: 999px;
    background: var(--color-primary-light); color: var(--color-primary);
    text-transform: uppercase; white-space: nowrap;
}
.tt-dash-header-right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.tt-dash-clear {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; font-size: 12px;
    border: 1px solid var(--color-border); border-radius: var(--radius-small);
    background: var(--color-surface); color: var(--color-text-muted);
    cursor: pointer; transition: all .15s;
}
.tt-dash-clear:hover { border-color: var(--color-danger); color: var(--color-danger); background: var(--color-danger-light); }

.tt-dash-body { padding: 16px 18px; }
.tt-dash-section { margin-bottom: 16px; }
.tt-dash-section:last-child { margin-bottom: 0; }
.tt-dash-section-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--color-text-muted);
    margin: 0 0 10px;
    display: flex; align-items: center; gap: 6px;
}
.tt-dash-section-title::after {
    content: ''; flex: 1; height: 1px; background: var(--color-border);
}
.tt-dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.tt-dash-grid-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }

.tt-dash-card {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    padding: 10px 12px;
    position: relative;
    transition: border-color .15s;
}
.tt-dash-card:hover { border-color: var(--color-primary); }
.tt-dash-card-label {
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: var(--color-text-muted); margin-bottom: 4px;
}
.tt-dash-card-value {
    font-size: 14px; font-weight: 600; color: var(--color-text);
    word-break: break-all; padding-right: 22px; line-height: 1.3;
}
.tt-dash-card-value.mono { font-family: var(--font-mono); font-size: 12px; }
.tt-dash-card-value.big { font-size: 22px; font-weight: 800; color: var(--color-primary); }
.tt-dash-card-sub { font-size: 11px; color: var(--color-text-muted); margin-top: 2px; }
.tt-dash-copy {
    position: absolute; top: 7px; right: 7px;
    background: none; border: none; cursor: pointer;
    color: var(--color-text-subtle); padding: 2px;
    border-radius: 3px; transition: color .15s, background .15s;
    display: flex; align-items: center; justify-content: center;
}
.tt-dash-copy:hover { color: var(--color-primary); background: var(--color-primary-light); }
.tt-dash-copy.copied { color: var(--color-success); }
.tt-dash-copy svg { width: 12px; height: 12px; }

/* Cron breakdown inside dashboard */
.tt-dash-cron-fields {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.tt-dash-cron-field {
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-small);
    padding: 6px 10px; text-align: center; min-width: 60px;
}
.tt-dash-cron-field-name { font-size: 10px; color: var(--color-primary); text-transform: uppercase; letter-spacing: .05em; }
.tt-dash-cron-field-val  { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--color-text); }
.tt-dash-explain {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    padding: 10px 14px;
    font-size: 14px; font-weight: 500; color: var(--color-text);
    margin-bottom: 10px;
}

/* Tool explorer label */
.tt-explorer-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--color-text-muted);
    padding: 8px 4px 6px; margin-bottom: 4px;
    display: flex; align-items: center; gap: 8px;
}
.tt-explorer-label::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }

/* ── Today at a Glance panel ── */
.tt-today-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}
.tt-today-item {
    background: var(--color-surface-alt, rgba(0,0,0,.03));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    padding: 8px 12px;
    min-width: 0;
}
.tt-today-label {
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .05em; color: var(--color-text-muted); margin-bottom: 3px;
}
.tt-today-val {
    font-size: 13px; font-weight: 600; color: var(--color-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Calendar Conversions ── */
.tt-calconv-form {
    display: flex; flex-direction: column; gap: 14px;
}
.tt-calconv-input-group { display: flex; flex-direction: column; gap: 4px; }
.tt-calconv-selects {
    display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
}
.tt-calconv-select-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 160px; }
.tt-calconv-arrow {
    font-size: 20px; color: var(--color-primary); font-weight: 700;
    padding-bottom: 8px; flex-shrink: 0;
}
.tt-calconv-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; }
.tt-calconv-out { margin-top: 6px; }
.tt-select {
    padding: 8px 12px; border-radius: var(--radius-small);
    border: 1px solid var(--color-border);
    background: var(--color-surface); color: var(--color-text);
    font-size: 13px; width: 100%; cursor: pointer;
}
.tt-select:focus { outline: none; border-color: var(--color-primary); }

/* ── cURL API Docs ── */
.tt-curl-docs { display: flex; flex-direction: column; gap: 14px; }
.tt-curl-intro {
    background: var(--color-surface-alt, rgba(0,0,0,.03));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    padding: 16px 20px;
}
.tt-curl-intro-title { font-size: 16px; font-weight: 700; color: var(--color-text); margin-bottom: 2px; }
.tt-curl-intro-sub { font-size: 13px; color: var(--color-text-muted); }
.tt-curl-tips {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.tt-curl-tips span {
    font-size: 12px; color: var(--color-success, #16a34a);
    background: rgba(22,163,74,.08); border: 1px solid rgba(22,163,74,.2);
    border-radius: 999px; padding: 2px 10px;
}
.tt-curl-endpoint {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.tt-curl-ep-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tt-curl-badge {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; padding: 2px 8px; border-radius: 4px;
    flex-shrink: 0;
}
.tt-curl-get  { background: #dbeafe; color: #1d4ed8; }
.tt-curl-post { background: #dcfce7; color: #15803d; }
.tt-curl-action {
    font-family: var(--font-mono); font-size: 13px; font-weight: 700;
    color: var(--color-primary);
}
.tt-curl-desc { font-size: 13px; color: var(--color-text-muted); }
.tt-curl-params {
    width: 100%; border-collapse: collapse; font-size: 12px;
    border: 1px solid var(--color-border); border-radius: var(--radius-small);
    overflow: hidden;
}
.tt-curl-params th {
    background: var(--color-surface-alt, rgba(0,0,0,.04));
    padding: 6px 10px; text-align: left; font-weight: 600;
    color: var(--color-text-muted); font-size: 11px; text-transform: uppercase;
}
.tt-curl-params td { padding: 6px 10px; border-top: 1px solid var(--color-border); }
.tt-curl-param-name { font-family: var(--font-mono); color: var(--color-primary); font-weight: 600; }
.tt-curl-param-desc { color: var(--color-text-muted); }
.tt-curl-note {
    font-size: 12px; color: var(--color-warning, #b45309);
    background: rgba(180,83,9,.07); border: 1px solid rgba(180,83,9,.15);
    border-radius: var(--radius-small); padding: 6px 10px;
}
.tt-curl-code-wrap {
    position: relative; display: flex; align-items: stretch;
    background: #1e1e2e; border-radius: var(--radius-small);
    overflow: hidden;
}
.tt-curl-code {
    font-family: var(--font-mono); font-size: 12px; color: #a6e3a1;
    padding: 10px 40px 10px 14px; margin: 0; white-space: pre-wrap;
    word-break: break-all; flex: 1; background: transparent;
    overflow-x: auto;
}
.tt-curl-copy {
    position: absolute; top: 6px; right: 6px;
    background: rgba(255,255,255,.1) !important;
    color: #cdd6f4 !important;
}
.tt-curl-copy:hover { background: rgba(255,255,255,.2) !important; color: #fff !important; }
.tt-curl-copy svg { width: 13px; height: 13px; }

/* ── Toast ── */
.tt-toast {
    position: fixed; bottom: 24px; right: 24px;
    background: #1a202c; color: #fff;
    padding: 10px 16px; border-radius: var(--radius-medium);
    font-size: 13px; z-index: 9999;
    transform: translateY(80px); opacity: 0;
    transition: all .25s;
    display: flex; align-items: center; gap: 8px;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.tt-toast.show { transform: translateY(0); opacity: 1; }
.tt-toast svg { width: 14px; height: 14px; color: var(--color-success); }
