/* ============================================================================
   TAK Studio Design System — Components (ported into the TAKO Take-Off plugin)
   Source of truth: TAK Studio Time Tracking V2 web/src/components/*.css
   Copied as-is (classes are all `.tak-*`, so no clash with the WP theme).
   Requires tak-tokens.css to be loaded first.
   ========================================================================== */

/* ─── TAKButton ─────────────────────────────────────────────────────────── */
.tak-button-wrapper {
    position: relative;
    display: inline-flex;
}

.tak-button-wrapper--full-width {
    display: flex;
    width: 100%;
}

.tak-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 var(--space-4);
    border-radius: var(--radius-button);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-subheading-size);
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    outline: none;
    z-index: 2;
    transition: background-color 200ms var(--ease-out),
        transform 150ms var(--ease-out),
        box-shadow 200ms var(--ease-out),
        filter 150ms var(--ease-out);
}

.tak-button--full-width {
    width: 100%;
}

.tak-button-icon {
    display: block;
    flex-shrink: 0;
}

.tak-button-label {
    display: inline-flex;
    align-items: center;
}

.tak-button-icon:first-child {
    margin-right: var(--space-2);
}

.tak-button-icon:last-child {
    margin-left: var(--space-2);
}

/* Base Variants */
.tak-button--primary {
    background-color: var(--accent);
    color: var(--on-accent);
    box-shadow: var(--elevation-1);
}

.tak-button--secondary {
    background-color: var(--surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--surface-overlay);
    box-shadow: var(--elevation-1);
}

.tak-button--ghost {
    background-color: transparent;
    color: var(--text-secondary);
    box-shadow: none;
    border: none;
}

.tak-button--ghost:hover {
    background-color: var(--surface-overlay);
    color: var(--text-primary);
}

.tak-button--danger {
    background-color: var(--status-flagged-solid);
    color: #ffffff;
    box-shadow: var(--elevation-1);
}

/* Hover / active micro-interactions (CSS approximation of the reference's
   Framer Motion press/tap — kept subtle, ease-out only). */
.tak-button--primary:hover:not(.tak-button--disabled):not(.tak-button--loading),
.tak-button--secondary:hover:not(.tak-button--disabled):not(.tak-button--loading),
.tak-button--danger:hover:not(.tak-button--disabled):not(.tak-button--loading) {
    filter: brightness(1.08);
    box-shadow: var(--elevation-2);
}

.tak-button:active:not(.tak-button--disabled):not(.tak-button--loading) {
    transform: scale(0.97);
}

/* Focus State */
.tak-button:focus-visible {
    box-shadow: var(--focus-ring);
}

/* Disabled State */
.tak-button--disabled,
.tak-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

/* Loading State — content stays in place (keeps width) but fades, spinner centers over it */
.tak-button--loading {
    cursor: progress;
    pointer-events: none;
}

.tak-button--loading .tak-button-label,
.tak-button--loading .tak-button-icon {
    opacity: 0;
}

.tak-button-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
    opacity: 0.9;
    animation: tak-button-spin 0.7s linear infinite;
}

@keyframes tak-button-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .tak-button-spinner {
        animation: none;
        border: 2px solid currentColor;
        border-top-color: transparent;
        opacity: 0.6;
    }
}

/* Tracker Specialized State */
.tak-button--tracking {
    background-color: var(--status-flagged-solid) !important;
    color: #ffffff;
}

/* Pulse Rings for Tracker */
.tak-button-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-button);
    border: 2px solid var(--status-flagged);
    background-color: transparent;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    animation: tak-button-pulse-scale 3s var(--ease-exit) infinite,
        tak-button-pulse-fade 3s linear infinite;
}

.tak-button-pulse--2 {
    animation-delay: 1.5s;
}

@keyframes tak-button-pulse-scale {
    0%   { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.7); }
}

@keyframes tak-button-pulse-fade {
    0%   { opacity: 0; }
    10%  { opacity: 0.35; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .tak-button-pulse {
        animation: none;
        opacity: 0;
    }
}

/* ─── TAKInput ──────────────────────────────────────────────────────────── */
.tak-input-wrapper {
    position: relative;
    width: 100%;
    font-family: var(--font-body);
}

.tak-input-inner {
    position: relative;
    width: 100%;
    border-radius: var(--radius-input);
}

.tak-input-control {
    width: 100%;
    height: 40px;
    padding: 0 var(--space-3);
    background-color: var(--surface-overlay);
    border: 1px solid transparent;
    border-radius: var(--radius-input);
    font-family: var(--font-body);
    font-size: var(--text-body-size);
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--duration-instant), box-shadow var(--duration-instant);
    box-sizing: border-box;
}

.tak-input-control::placeholder {
    color: var(--text-tertiary);
}

.tak-input-control--has-icon {
    padding-right: 36px;
    cursor: pointer;
}

.tak-input-control:hover:not(:disabled) {
    border-color: var(--surface-elevated);
}

.tak-input-control:focus:not(:disabled) {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
    background-color: var(--surface-base);
}

.tak-input-control--filled:not(:focus):not(:disabled) {
    border-color: rgba(235, 233, 228, 0.5);
}

.tak-input-control--error {
    border-color: var(--status-flagged) !important;
}

.tak-input-control:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tak-input-control[readonly]:not(.tak-input-control--has-icon) {
    cursor: default;
    background-color: var(--surface-raised);
    opacity: 0.8;
}

.tak-input-icon {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.tak-combobox-trigger-icons {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    pointer-events: auto;
}

.tak-combobox-clear {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
    transition: color var(--duration-instant);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tak-combobox-clear:hover {
    color: var(--text-primary);
}

.tak-combobox-chevron {
    color: var(--text-secondary);
    pointer-events: none;
}

.tak-combobox-panel {
    min-width: unset !important;
    max-width: 280px !important;
    width: 280px !important;
    background-color: var(--surface-card);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: var(--space-1) 0;
    z-index: var(--z-popover);
    overflow: hidden;
    border: 1px solid var(--surface-overlay);
    display: flex;
    flex-direction: column;
}

.tak-combobox-option {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-body-size);
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color var(--duration-instant);
}

.tak-combobox-option-label {
    font-size: 13px;
    color: var(--text-primary);
    white-space: normal;
    word-break: break-word;
}

.tak-combobox-option-sublabel {
    font-size: 11px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tak-combobox-option:hover {
    background-color: var(--surface-overlay);
}

.tak-combobox-option--selected {
    background-color: var(--accent-dim);
}

.tak-combobox-option--selected .tak-combobox-option-label {
    color: var(--accent-text);
}

.tak-combobox-option--selected .tak-combobox-option-sublabel {
    color: var(--accent-text);
    opacity: 0.8;
}

.tak-combobox-option--empty {
    color: var(--text-tertiary);
    cursor: default;
}

.tak-combobox-option--empty:hover {
    background-color: transparent;
}

.tak-combobox-option--disabled {
    cursor: not-allowed;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tak-combobox-option--indent {
    padding-left: calc(var(--space-3) + 14px);
}

.tak-combobox-option--disabled:hover {
    background-color: transparent;
}

.tak-combobox-search {
    padding: var(--space-2) var(--space-2) 4px;
    border-bottom: 1px solid var(--surface-overlay);
    overflow: hidden;
    flex-shrink: 0;
}

.tak-combobox-search-input {
    width: 100%;
    height: 28px;
    padding: 0 var(--space-2);
    background: var(--surface-base);
    border: 1px solid var(--surface-overlay);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-primary);
    outline: none;
    box-sizing: border-box;
}

.tak-combobox-search-input:focus {
    border-color: var(--accent);
}

.tak-combobox-options-list,
.tak-combobox-options {
    overflow-y: auto;
    max-height: 220px;
    flex-grow: 1;
    padding-bottom: 4px;
}

/* Calendar (Datepicker) Panel */
.tak-calendar-panel {
    width: 280px;
    background-color: var(--surface-elevated);
    border: 1px solid var(--surface-overlay);
    border-radius: var(--radius-card);
    box-shadow: var(--elevation-2);
    padding: var(--space-3);
    z-index: var(--z-popover);
    box-sizing: border-box;
    user-select: none;
}

.tak-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.tak-calendar-title {
    font-family: var(--font-body);
    font-size: var(--text-body-size);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.tak-calendar-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    transition: background-color var(--duration-instant), color var(--duration-instant);
}

.tak-calendar-nav:hover {
    background-color: var(--surface-overlay);
    color: var(--text-primary);
}

.tak-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: var(--space-1);
}

.tak-calendar-weekday {
    text-align: center;
    font-family: var(--font-body);
    font-size: var(--text-small-size);
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: var(--space-1) 0;
}

.tak-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.tak-calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 100%;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-family: var(--font-body);
    font-size: var(--text-body-size);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
    transition: background-color var(--duration-instant), color var(--duration-instant);
}

.tak-calendar-day:hover:not(.tak-calendar-day--disabled):not(.tak-calendar-day--selected) {
    background-color: var(--surface-overlay);
}

.tak-calendar-day--today:not(.tak-calendar-day--selected) {
    background-color: var(--accent-dim);
    color: var(--accent-text);
    font-weight: 600;
}

.tak-calendar-day--selected {
    background-color: var(--accent);
    color: var(--text-inverse);
    font-weight: 600;
    border-radius: 8px;
}

.tak-calendar-day--other {
    color: var(--text-tertiary);
}

.tak-calendar-day--disabled {
    color: var(--text-tertiary);
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─── TAKCard ───────────────────────────────────────────────────────────── */
.tak-card {
    background-color: var(--surface-card);
    border: 1px solid var(--surface-overlay);
    border-radius: var(--radius-card);
    padding: var(--space-5);
    box-shadow: var(--elevation-1);
    font-family: var(--font-body);
    color: var(--text-primary);
    box-sizing: border-box;
}

.tak-card--interactive {
    cursor: pointer;
    outline: none;
    transition: background-color 250ms ease;
}

.tak-card--interactive:hover {
    background-color: var(--surface-elevated);
}

.tak-card--interactive:focus-visible {
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.tak-card--stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tak-card-stat-value {
    font-size: var(--text-stat-size);
    font-weight: var(--text-stat-weight);
    line-height: var(--text-stat-line-height);
    font-variant-numeric: tabular-nums;
    margin-bottom: var(--space-1);
}

.tak-card-stat-label {
    font-size: var(--text-small-size);
    color: var(--text-secondary);
}

/* ─── TAKBadge ──────────────────────────────────────────────────────────── */
.tak-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 var(--space-2);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-small-size);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.tak-badge--tracking {
    background-color: var(--accent-soft);
    color: var(--accent-text);
}

.tak-badge--online {
    background-color: var(--status-active-soft);
    color: var(--status-active-text);
}

.tak-badge--offline,
.tak-badge--idle {
    background-color: var(--status-idle-soft);
    color: var(--status-idle-text);
}

.tak-badge--task-in-progress {
    background-color: var(--status-in-progress-soft);
    color: var(--status-in-progress-text);
}

.tak-badge--task-review {
    background-color: var(--status-review-soft);
    color: var(--status-review-text);
}

.tak-badge--flagged {
    background-color: var(--status-flagged-soft);
    color: var(--status-flagged-text);
}

.tak-badge--on-hold {
    background-color: var(--status-warning-soft);
    color: var(--status-warning-text);
}

.tak-badge--invoiced {
    background-color: var(--status-info-soft);
    color: var(--status-info-text);
}

.tak-badge--pending {
    background-color: var(--surface-overlay);
    color: var(--text-secondary);
}

.tak-badge--approved {
    background-color: var(--status-active-soft);
    color: var(--status-active-text);
}

.tak-badge--rejected {
    background-color: var(--status-flagged-soft);
    color: var(--status-flagged-text);
}

.tak-badge--admin {
    background-color: var(--accent-dim);
    color: var(--accent-text);
}

.tak-badge--manager {
    background-color: var(--status-info-soft);
    color: var(--status-info-text);
}

.tak-badge--user {
    background-color: var(--surface-overlay);
    color: var(--text-secondary);
}

.tak-badge--contributor {
    background-color: var(--surface-overlay);
    color: var(--text-tertiary);
}

.tak-badge--client {
    background-color: rgba(180, 138, 248, 0.15);
    color: #B48AF8;
}

.tak-badge--count {
    background-color: var(--surface-elevated);
    border: 1px solid var(--surface-overlay);
    color: var(--text-primary);
    min-width: 22px;
    padding: 0 var(--space-1);
}

/* ─── TAKModal ──────────────────────────────────────────────────────────── */
.tak-modal-backdrop {
    position: fixed;
    top: var(--titlebar-height);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--titlebar-height));
    background-color: rgba(0, 0, 0, 0.6);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.tak-modal-container {
    background-color: var(--surface-modal);
    border: 1px solid var(--surface-overlay);
    border-radius: 12px;
    box-shadow: var(--elevation-3);
    display: flex;
    flex-direction: column;
    max-height: 100%;
    outline: none;
    overflow: hidden;
}

.tak-modal-container--standard {
    width: 90vw;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.tak-modal-container--medium {
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.tak-modal-container--large {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.tak-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-5);
    flex-shrink: 0;
}

.tak-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: background var(--duration-instant), color var(--duration-instant);
}

.tak-modal-close:hover {
    background: var(--surface-overlay);
    color: var(--text-primary);
}

.tak-modal-header h2 {
    font-family: var(--font-body);
    font-size: var(--text-heading-size);
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.tak-modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(90vh - 120px);
    padding: var(--space-5);
    flex: 1;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-body-size);
}

.tak-modal {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.tak-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-3);
    padding: 0 var(--space-6) var(--space-6) var(--space-6);
    flex-shrink: 0;
}

/* ─── TAKSidebar ────────────────────────────────────────────────────────── */
.tak-sidebar {
    height: 100%;
    min-height: 0;
    background-color: var(--surface-raised);
    border-right: 1px solid var(--surface-overlay);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: visible;
}

.tak-sidebar--collapsed {
    overflow: visible;
}

.tak-sidebar-logo-area {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
    flex-shrink: 0;
    gap: var(--space-3);
}

.tak-sidebar-nav {
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: visible;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-overlay) transparent;
}

.tak-nav-item {
    position: relative;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
    font-family: var(--font-body);
    cursor: pointer;
    border-radius: 8px;
    width: 100%;
    overflow: hidden;
    color: var(--text-secondary);
}

.tak-nav-item:focus {
    outline: none;
}

.tak-nav-item:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring-inset);
}

.tak-nav-item:hover:not(.tak-nav-item--active) {
    background-color: var(--surface-elevated);
}

.tak-nav-item-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0 var(--space-4);
    gap: var(--space-3);
}

.tak-nav-active-pill {
    position: absolute;
    inset: 0;
    background-color: var(--accent-dim);
    border-radius: 8px;
    z-index: 1;
}

.tak-nav-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.tak-nav-label {
    color: var(--text-secondary);
    font-size: var(--text-body-size);
    white-space: nowrap;
    transition: color 0.15s ease;
    overflow: hidden;
}

.tak-nav-item:hover .tak-nav-icon,
.tak-nav-item:hover .tak-nav-label {
    color: var(--text-primary);
}

.tak-nav-item--active .tak-nav-icon,
.tak-nav-item--active .tak-nav-label {
    color: var(--text-primary);
    font-weight: 500;
}

.tak-sidebar-divider {
    height: 1px;
    background-color: var(--surface-overlay);
    margin: var(--space-2) var(--space-4);
    flex-shrink: 0;
}

.tak-sidebar-label {
    font-size: var(--text-small-size);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding: var(--space-2) var(--space-4) var(--space-1);
}

.tak-sidebar-bottom {
    padding: var(--space-3);
    flex-shrink: 0;
}

.tak-sidebar-version {
    text-align: center;
    font-size: 10px;
    color: var(--text-tertiary);
    opacity: 0.5;
    padding: 1px var(--space-2) 2px;
    letter-spacing: 0.04em;
}

/* ─── TAKToggle ─────────────────────────────────────────────────────────── */
.tak-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    border: none;
    background: #c5bfb8;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s ease;
}

.tak-toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    top: 3px;
    left: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.tak-toggle--on {
    background: var(--accent);
}

.tak-toggle--on::after {
    transform: translateX(20px);
}

.tak-toggle--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ─── TAKTooltip ────────────────────────────────────────────────────────── */
.tak-tooltip-trigger {
    position: relative;
    display: inline-block;
}

.tak-tooltip-content {
    position: absolute;
    background-color: var(--surface-elevated);
    border: 1px solid rgba(242, 239, 233, 0.1);
    border-radius: var(--radius-button);
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-small-size);
    color: var(--text-primary);
    box-shadow: var(--elevation-2);
    max-width: 240px;
    width: max-content;
    z-index: var(--z-tooltip);
    pointer-events: none;
}

.tak-tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.tak-tooltip-arrow--top {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-color: var(--surface-elevated) transparent transparent transparent;
}

.tak-tooltip-arrow--bottom {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent var(--surface-elevated) transparent;
}

.tak-tooltip-arrow--left {
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent var(--surface-elevated);
}

.tak-tooltip-arrow--right {
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-color: transparent var(--surface-elevated) transparent transparent;
}

/* ─── TAKEmptyState ─────────────────────────────────────────────────────── */
.tak-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-8) var(--space-5);
    margin: 0 auto;
    max-width: 440px;
    min-height: 240px;
}

.tak-empty-state--compact {
    padding: var(--space-6) var(--space-4);
    min-height: 160px;
    gap: var(--space-2);
}

.tak-empty-state__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-pill);
    background: var(--accent-dim);
    color: var(--accent-text);
    margin-bottom: var(--space-1);
}

.tak-empty-state--compact .tak-empty-state__icon {
    width: 48px;
    height: 48px;
}

.tak-empty-state__title {
    margin: 0;
    font-size: var(--text-subheading-size);
    font-weight: 600;
    color: var(--text-primary);
}

.tak-empty-state__description {
    margin: 0;
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
    color: var(--text-secondary);
    max-width: 40ch;
    text-wrap: pretty;
}

.tak-empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
    margin-top: var(--space-2);
}

/* ─── Shared form helpers (used by ported modals/forms) ─────────────────── */
.tak-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.tak-form-label {
    font-size: var(--text-small-size);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
