:root {
    --bg: #0b1f16;
    --bg-soft: #143525;
    --panel: rgba(10, 28, 20, 0.82);
    --panel-strong: rgba(17, 44, 31, 0.92);
    --line: rgba(204, 255, 214, 0.14);
    --text: #eef8ef;
    --muted: #b2cdb6;
    --accent: #8dd36f;
    --accent-strong: #5eb046;
    --warning: #ffd880;
    --danger: #ff9c92;
    --success: #8ce0ac;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(141, 211, 111, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 216, 128, 0.18), transparent 28%),
        linear-gradient(135deg, #07140e 0%, #10281c 52%, #183425 100%);
}

.login-body,
.panel-body {
    padding: 32px;
}

.shell,
.panel-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.shell {
    min-height: calc(100vh - 64px);
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 440px);
    align-items: center;
}

.hero-panel,
.card,
.panel-card,
.topbar {
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-panel,
.card,
.panel-card {
    border-radius: var(--radius);
}

.hero-panel {
    padding: 42px;
}

.hero-panel h1,
.card h2,
.topbar h1,
.panel-card h2,
.panel-card h3,
.panel-card h1 {
    margin: 0;
    line-height: 1.05;
}

.hero-panel h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    max-width: 10ch;
}

.hero-panel p,
.card p,
.panel-card p,
.topbar p,
.meta-note,
.hero-points span {
    color: var(--muted);
    line-height: 1.7;
}

.hero-points {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.hero-points div {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-points strong,
.badge,
.eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.card {
    padding: 30px;
}

.card-header {
    margin-bottom: 24px;
}

.card-header h2 {
    font-size: 2rem;
    margin-top: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(141, 211, 111, 0.15);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
}

.form-stack {
    display: grid;
    gap: 18px;
}

.form-stack label {
    display: grid;
    gap: 8px;
}

.form-stack span {
    font-size: 0.95rem;
    color: var(--muted);
}

.form-stack input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(6, 18, 13, 0.88);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.form-stack input:focus {
    border-color: rgba(141, 211, 111, 0.8);
    transform: translateY(-1px);
}

.primary-button,
.ghost-button,
.link-button {
    appearance: none;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
}

.primary-button,
.ghost-button {
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 700;
}

.primary-button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #0f2318;
}

.primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.ghost-button,
.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-note {
    margin-top: 18px;
    font-size: 0.92rem;
}

.meta-note code,
.alert code {
    padding: 2px 7px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    line-height: 1.6;
}

.alert-error {
    color: #fff0ee;
    background: rgba(255, 156, 146, 0.14);
    border-color: rgba(255, 156, 146, 0.24);
}

.alert-success {
    color: #effdf4;
    background: rgba(140, 224, 172, 0.14);
    border-color: rgba(140, 224, 172, 0.24);
}

.alert-warning {
    color: #fff8e4;
    background: rgba(255, 216, 128, 0.14);
    border-color: rgba(255, 216, 128, 0.24);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-radius: 26px;
    margin-bottom: 24px;
}

.panel-shell {
    padding-top: 12px;
}

.grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-column {
    grid-template-columns: 1fr;
    max-width: 920px;
}

.panel-card {
    padding: 28px;
}

.spotlight {
    background:
        linear-gradient(160deg, rgba(141, 211, 111, 0.16), rgba(14, 41, 28, 0.92) 55%),
        rgba(10, 28, 20, 0.82);
}

.details,
.feature-list {
    margin: 0;
    padding: 0;
}

.details div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.details div:last-child {
    border-bottom: 0;
}

.details dt {
    color: var(--muted);
}

.details dd {
    margin: 0;
    text-align: right;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.feature-list li::before {
    content: "•";
    color: var(--accent);
    margin-right: 8px;
}

.inline-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.narrow-shell {
    max-width: 720px;
}

.workspace-body {
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(65, 179, 116, 0.16), transparent 22%),
        radial-gradient(circle at 84% 10%, rgba(75, 120, 255, 0.14), transparent 22%),
        linear-gradient(180deg, #07120f 0%, #0a1713 42%, #0d2018 100%);
}

.workspace-shell {
    width: 100%;
    min-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
}

.workspace-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    display: grid;
    gap: 22px;
    padding: 22px 18px;
    border-radius: 28px;
    border: 1px solid rgba(187, 232, 205, 0.1);
    background:
        linear-gradient(180deg, rgba(28, 47, 79, 0.95) 0%, rgba(31, 45, 83, 0.88) 34%, rgba(17, 27, 53, 0.98) 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.workspace-brand {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.workspace-brand-mark {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #58d08e 0%, #4e7bff 100%);
    color: #f6fff8;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.workspace-brand h1 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.05;
}

.workspace-brand p {
    margin: 8px 0 0;
    color: rgba(232, 239, 255, 0.7);
    line-height: 1.6;
}

.workspace-nav {
    display: grid;
    gap: 10px;
}

.workspace-nav-title,
.workspace-metric-label,
.workspace-kicker,
.workspace-table-tag {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
}

.workspace-nav-title {
    color: rgba(193, 216, 255, 0.56);
    margin-bottom: 4px;
}

.workspace-nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    color: #ecf3ff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.workspace-nav-link.is-active {
    background: linear-gradient(135deg, rgba(84, 127, 214, 0.44), rgba(58, 122, 255, 0.18));
    border-color: rgba(118, 168, 255, 0.32);
}

.workspace-nav-link:hover {
    transform: translateX(4px);
    border-color: rgba(146, 205, 255, 0.22);
}

.workspace-profile {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.workspace-avatar {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #567aff 0%, #7ba3ff 100%);
    color: #fff;
    font-weight: 800;
}

.workspace-profile-copy {
    display: grid;
    gap: 4px;
}

.workspace-profile-copy strong {
    font-size: 0.98rem;
}

.workspace-profile-copy span {
    color: rgba(233, 240, 255, 0.72);
    font-size: 0.92rem;
}

.workspace-logout .ghost-button {
    width: 100%;
}

.workspace-main {
    display: grid;
    gap: 18px;
}

.workspace-alert {
    margin-bottom: 0;
}

.workspace-board {
    display: grid;
    gap: 18px;
}

.workspace-row {
    display: grid;
    gap: 18px;
}

.workspace-row--metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workspace-row--three {
    grid-template-columns: 1.55fr 0.88fr 1.45fr;
}

.workspace-row--dual {
    grid-template-columns: 1fr 1fr;
}

.workspace-row--aside {
    grid-template-columns: 0.72fr 1.55fr;
}

.workspace-row--footer {
    grid-template-columns: 1.55fr 0.76fr;
}

.workspace-metric,
.workspace-panel {
    border: 1px solid rgba(197, 255, 213, 0.08);
    background:
        linear-gradient(180deg, rgba(22, 30, 45, 0.98) 0%, rgba(18, 25, 38, 0.95) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    animation: workspace-rise 0.45s ease both;
}

.workspace-metric {
    min-height: 108px;
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 20px;
}

.workspace-panel {
    padding: 24px;
    border-radius: 24px;
}

.workspace-panel-hero {
    background:
        radial-gradient(circle at top right, rgba(77, 123, 255, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(31, 49, 83, 0.98) 0%, rgba(23, 34, 57, 0.98) 100%);
}

.workspace-panel-compact {
    background:
        radial-gradient(circle at top center, rgba(83, 221, 150, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(25, 39, 52, 0.98) 0%, rgba(17, 28, 38, 0.98) 100%);
}

.workspace-panel-signal,
.workspace-panel-finance {
    background:
        radial-gradient(circle at top left, rgba(71, 201, 134, 0.16), transparent 26%),
        linear-gradient(180deg, rgba(23, 41, 40, 0.98) 0%, rgba(18, 31, 31, 0.98) 100%);
}

.workspace-panel-summary {
    background:
        radial-gradient(circle at 80% 10%, rgba(90, 143, 255, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(23, 29, 45, 0.98) 0%, rgba(18, 24, 37, 0.98) 100%);
}

.workspace-panel-identity {
    background:
        radial-gradient(circle at top left, rgba(76, 207, 135, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(18, 32, 34, 0.98) 0%, rgba(14, 25, 26, 0.98) 100%);
}

.workspace-metric-label {
    color: #79c8a0;
}

.workspace-metric-value {
    font-size: clamp(1.12rem, 1.8vw, 1.85rem);
    line-height: 1.1;
}

.workspace-metric-meta {
    color: rgba(229, 238, 233, 0.64);
    font-size: 0.9rem;
}

.workspace-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.workspace-panel-head.compact h2,
.workspace-panel-head h2 {
    margin: 8px 0 0;
    font-size: clamp(1.2rem, 1.8vw, 1.9rem);
    line-height: 1.08;
}

.workspace-kicker {
    color: rgba(159, 206, 255, 0.8);
}

.workspace-stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-stat-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-stat-block {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.workspace-stat-block span,
.workspace-mini-stats span,
.workspace-summary-item span {
    color: rgba(233, 239, 255, 0.64);
    font-size: 0.9rem;
}

.workspace-stat-block strong,
.workspace-mini-stats strong,
.workspace-summary-item strong {
    font-size: 1.65rem;
    line-height: 1;
}

.workspace-stat-block small {
    color: rgba(232, 239, 255, 0.66);
    line-height: 1.5;
}

.workspace-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.workspace-action,
.workspace-status,
.workspace-table-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
}

.workspace-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #eff5ff;
    font-size: 0.9rem;
}

.workspace-action-primary {
    background: linear-gradient(135deg, #18a05f 0%, #107949 100%);
    border-color: rgba(88, 231, 153, 0.24);
}

.workspace-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.workspace-list li {
    position: relative;
    padding: 12px 0 12px 18px;
    color: rgba(239, 244, 255, 0.84);
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.workspace-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.workspace-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7ad96d;
}

.workspace-mini-stats {
    display: grid;
    gap: 14px;
}

.workspace-mini-stats div {
    display: grid;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.workspace-mini-stats div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.workspace-table-wrap {
    overflow-x: auto;
}

.workspace-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.workspace-table th,
.workspace-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.workspace-table thead th {
    color: rgba(177, 216, 202, 0.74);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.workspace-table tbody td {
    color: rgba(241, 246, 255, 0.88);
}

.workspace-table tbody tr:last-child td {
    border-bottom: 0;
}

.workspace-status,
.workspace-table-tag {
    background: rgba(255, 209, 102, 0.14);
    color: #ffd166;
    border: 1px solid rgba(255, 209, 102, 0.24);
    font-size: 0.78rem;
    font-weight: 700;
}

.workspace-status.accent,
.workspace-table-tag.accent {
    background: rgba(83, 221, 150, 0.12);
    color: #72e2a7;
    border-color: rgba(83, 221, 150, 0.2);
}

.workspace-summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace-summary-item {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

@keyframes workspace-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .login-body,
    .panel-body {
        padding: 18px;
    }

    .shell,
    .grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 1280px) {
    .workspace-shell {
        grid-template-columns: 1fr;
    }

    .workspace-sidebar {
        position: static;
    }

    .workspace-row--metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .workspace-row--three,
    .workspace-row--dual,
    .workspace-row--aside,
    .workspace-row--footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .workspace-body {
        padding: 16px;
    }

    .workspace-sidebar,
    .workspace-panel,
    .workspace-metric {
        border-radius: 20px;
    }

    .workspace-row--metrics,
    .workspace-stat-grid,
    .workspace-stat-grid--two,
    .workspace-summary-grid {
        grid-template-columns: 1fr;
    }

    .workspace-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.hks-board {
    gap: 14px;
}

.hks-toast {
    padding: 16px 18px;
    border-radius: 20px;
    backdrop-filter: blur(18px);
}

.hks-overview {
    padding: 24px 26px;
    background: linear-gradient(180deg, rgba(16, 23, 34, 0.98) 0%, rgba(13, 20, 31, 0.96) 100%);
}

.hks-overview-head,
.hks-section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.hks-overview-head {
    margin-bottom: 18px;
}

.hks-overview-copy {
    max-width: 720px;
}

.hks-overview-copy h2,
.hks-section-head h2 {
    margin: 8px 0 0;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.hks-overview-copy h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
}

.hks-overview-copy p,
.hks-section-head p {
    margin: 10px 0 0;
    color: rgba(225, 234, 248, 0.76);
    line-height: 1.58;
}

.hks-overview-actions {
    min-width: 200px;
    display: grid;
    gap: 10px;
    justify-items: end;
}

.hks-state-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hks-state-pill.is-ready {
    color: #8ce0ac;
    background: rgba(83, 221, 150, 0.14);
    border-color: rgba(83, 221, 150, 0.24);
}

.hks-state-pill.is-live {
    color: #b6d0ff;
    background: rgba(90, 143, 255, 0.16);
    border-color: rgba(90, 143, 255, 0.26);
}

.hks-state-pill.is-warning {
    color: #ffd580;
    background: rgba(255, 209, 102, 0.14);
    border-color: rgba(255, 209, 102, 0.24);
}

.hks-state-pill.is-danger {
    color: #ffaea3;
    background: rgba(255, 124, 107, 0.14);
    border-color: rgba(255, 124, 107, 0.24);
}

.hks-state-note {
    margin: 0;
    max-width: 240px;
    color: rgba(226, 234, 248, 0.72);
    line-height: 1.6;
    text-align: right;
}

.hks-open-link {
    min-width: 180px;
}

.hks-summary-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hks-summary-cell {
    display: grid;
    gap: 6px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.hks-summary-cell:first-child {
    padding-left: 0;
    border-left: 0;
}

.hks-summary-cell span,
.hks-batch-stats span {
    color: rgba(206, 221, 244, 0.66);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hks-summary-cell strong,
.hks-batch-stats strong {
    font-size: clamp(1.2rem, 1.6vw, 1.85rem);
    line-height: 1;
}

.hks-summary-cell small {
    color: rgba(228, 236, 248, 0.7);
    line-height: 1.5;
}

.hks-layout {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

.hks-layout--forms {
    grid-template-columns: 1fr;
}

.hks-layout--tables {
    grid-template-columns: 1fr;
}

.hks-panel {
    padding: 22px;
}

.hks-panel-flow {
    background: linear-gradient(180deg, rgba(18, 24, 35, 0.98) 0%, rgba(14, 20, 31, 0.98) 100%);
}

.hks-panel-rail,
.hks-panel-template {
    background: linear-gradient(180deg, rgba(16, 24, 31, 0.98) 0%, rgba(12, 19, 25, 0.98) 100%);
}

.hks-panel-form,
.hks-panel-table-main,
.hks-panel-table-side {
    background: linear-gradient(180deg, rgba(18, 24, 35, 0.98) 0%, rgba(14, 20, 31, 0.98) 100%);
}

.hks-flow-list,
.hks-form-stack,
.hks-rail-grid {
    display: grid;
    gap: 10px;
}

.hks-flow-step,
.hks-rail-item,
.hks-form-note {
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

.hks-flow-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
}

.hks-flow-index {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(93, 143, 255, 0.88), rgba(84, 212, 152, 0.7));
    color: #08140e;
    font-size: 0.92rem;
    font-weight: 800;
}

.hks-flow-step strong {
    display: block;
    font-size: 1.04rem;
}

.hks-command {
    display: block;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(7, 12, 22, 0.86);
    border: 1px solid rgba(117, 150, 255, 0.18);
    color: #d6e7ff;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.hks-flow-note {
    display: block;
    margin-top: 10px;
    color: rgba(226, 233, 248, 0.7);
    line-height: 1.55;
}

.hks-rail-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
}

.hks-rail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hks-rail-item span,
.hks-field span {
    color: rgba(222, 232, 248, 0.72);
    font-size: 0.88rem;
    font-weight: 600;
}

.hks-rail-item strong {
    font-size: 1.08rem;
    line-height: 1.25;
}

.hks-rail-item small {
    color: rgba(226, 233, 248, 0.66);
    line-height: 1.55;
}

.hks-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hks-field {
    display: grid;
    gap: 10px;
}

.hks-field input,
.hks-field select,
.hks-field textarea {
    width: 100%;
    border: 1px solid rgba(145, 176, 255, 0.18);
    border-radius: 16px;
    background: rgba(7, 11, 21, 0.74);
    color: #f2f7ff;
    padding: 14px 16px;
    font: inherit;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hks-field input:focus,
.hks-field select:focus,
.hks-field textarea:focus {
    outline: 0;
    border-color: rgba(120, 165, 255, 0.56);
    box-shadow: 0 0 0 3px rgba(120, 165, 255, 0.08);
    transform: translateY(-1px);
}

.hks-field textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.58;
}

.hks-form-note {
    gap: 8px;
    padding: 14px 16px;
    border-radius: 16px;
}

.hks-form-note strong {
    font-size: 0.96rem;
}

.hks-form-note span {
    color: rgba(228, 236, 248, 0.74);
    line-height: 1.55;
}

.hks-template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.hks-template-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(239, 244, 255, 0.88);
    font-size: 0.82rem;
}

.hks-batch-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
}

.hks-batch-stats div {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.04);
}

.workspace-status.is-live {
    background: rgba(90, 143, 255, 0.12);
    color: #afc9ff;
    border: 1px solid rgba(90, 143, 255, 0.2);
}

.workspace-status.is-failed {
    background: rgba(255, 124, 107, 0.14);
    color: #ffaea3;
    border: 1px solid rgba(255, 124, 107, 0.22);
}

.hks-error-cell {
    display: inline-block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(239, 206, 201, 0.88);
}

.hks-inline-form {
    margin: 0;
}

.hks-mini-button {
    min-height: 34px;
    padding: 0 12px;
}

.hks-inline-resend-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.hks-inline-resend-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 5px 10px;
    border-radius: 14px;
    border: 1px solid rgba(109, 147, 112, 0.24);
    background: linear-gradient(180deg, rgba(10, 25, 18, 0.92) 0%, rgba(6, 17, 13, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hks-inline-resend-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 10px;
    background: rgba(141, 211, 111, 0.14);
    color: #d8f8ca;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hks-inline-resend-price {
    width: 78px;
    min-width: 78px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #eef8ef;
    font-weight: 700;
    outline: none;
    box-shadow: none;
}

.hks-inline-resend-price::placeholder {
    color: rgba(226, 233, 248, 0.42);
}

.hks-inline-resend-button {
    white-space: nowrap;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
}

.hks-live-note {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1.2;
}

.hks-live-note.is-ok {
    background: rgba(140, 224, 172, 0.12);
    color: #bdeecf;
}

.hks-live-note.is-changed {
    background: rgba(255, 216, 128, 0.14);
    color: #ffe2a5;
}

.hks-live-note.is-consumed,
.hks-live-note.is-warning {
    background: rgba(255, 124, 107, 0.14);
    color: #ffb7ae;
}

.hks-action-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hks-form-grid--compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hks-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(226, 233, 248, 0.82);
    font-size: 0.95rem;
}

.hks-check input {
    width: 18px;
    height: 18px;
}

.hks-stock-table th:first-child,
.hks-stock-table td:first-child {
    width: 48px;
}

.hks-stock-table strong {
    font-size: 0.96rem;
}

.hks-surface {
    gap: 16px;
}

.hks-headerbar {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.25fr) auto;
    align-items: end;
    padding: 4px 2px 10px;
}

.hks-headercopy h2,
.hks-block-head h3,
.hks-table-head h3 {
    margin: 6px 0 0;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hks-headercopy h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.hks-headercopy p,
.hks-block-head p,
.hks-table-head p {
    margin: 10px 0 0;
    color: rgba(225, 234, 248, 0.72);
    line-height: 1.6;
}

.hks-headerstats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, max-content);
    justify-content: end;
}

.hks-mini-stat {
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 17, 13, 0.48);
}

.hks-mini-stat span {
    display: block;
    color: rgba(222, 232, 248, 0.62);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hks-mini-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 1.4rem;
}

.hks-console-grid,
.hks-bottom-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hks-console-section,
.hks-table-section {
    padding: 24px;
    border-radius: 22px;
    background: rgba(8, 20, 15, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.hks-block-head,
.hks-table-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.hks-panel-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hks-panel-state.is-ready {
    color: #8ce0ac;
}

.hks-panel-state.is-warning {
    color: #ffd580;
}

.hks-panel-state.is-danger {
    color: #ffaea3;
}

.hks-inline-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hks-inline-grid--dense {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hks-inline-grid--lookup {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.8fr) auto;
    align-items: end;
}

.hks-lookup-action {
    display: flex;
    align-items: end;
    min-height: 100%;
}

.hks-lookup-action .ghost-button,
.hks-lookup-action .primary-button {
    min-height: 52px;
}

.hks-role-hint {
    margin-top: 2px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(120, 165, 255, 0.16);
    background: rgba(90, 143, 255, 0.08);
    color: rgba(230, 239, 255, 0.92);
    font-size: 0.92rem;
}

.hks-recipient-picker {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(120, 201, 92, 0.14);
    background: rgba(7, 15, 12, 0.46);
}

.hks-recipient-picker-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hks-recipient-picker-head p {
    margin: 6px 0 0;
    color: rgba(220, 232, 245, 0.7);
    font-size: 0.92rem;
}

.hks-recipient-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
    align-items: start;
}

.hks-recipient-main {
    display: grid;
    gap: 14px;
}

.hks-field--full {
    grid-column: 1 / -1;
}

.hks-recipient-listwrap {
    display: grid;
    gap: 8px;
}

.hks-recipient-label {
    color: rgba(226, 235, 248, 0.8);
    font-size: 0.92rem;
    font-weight: 600;
}

.hks-recipient-picker select[size] {
    width: 100%;
    min-height: 220px;
    border: 1px solid rgba(145, 176, 255, 0.18);
    border-radius: 18px;
    background: rgba(7, 11, 21, 0.82);
    color: #f2f7ff;
    padding: 12px;
    font: inherit;
}

.hks-recipient-summary {
    display: grid;
    gap: 14px;
    padding: 18px;
    min-height: 100%;
    border-radius: 20px;
    border: 1px solid rgba(145, 176, 255, 0.12);
    background: linear-gradient(180deg, rgba(10, 19, 18, 0.9), rgba(8, 14, 22, 0.78));
}

.hks-recipient-summary strong {
    color: #f6fbff;
    font-size: 1.1rem;
}

.hks-recipient-meta {
    display: grid;
    gap: 12px;
}

.hks-recipient-meta div {
    display: grid;
    gap: 4px;
}

.hks-recipient-meta span {
    color: rgba(182, 201, 226, 0.72);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hks-recipient-meta strong {
    font-size: 0.98rem;
}

.hks-query-sheet {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 15, 12, 0.46);
}

.hks-sheet-row {
    display: grid;
    gap: 14px;
    grid-template-columns: 156px minmax(0, 1fr);
    align-items: center;
}

.hks-sheet-row span {
    color: rgba(226, 235, 248, 0.8);
    font-size: 0.92rem;
    font-weight: 600;
}

.hks-sheet-row input,
.hks-sheet-row select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(145, 176, 255, 0.18);
    border-radius: 14px;
    background: rgba(7, 11, 21, 0.74);
    color: #f2f7ff;
    padding: 0 14px;
    font: inherit;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hks-sheet-row input:focus,
.hks-sheet-row select:focus {
    outline: 0;
    border-color: rgba(120, 165, 255, 0.56);
    box-shadow: 0 0 0 3px rgba(120, 165, 255, 0.08);
    transform: translateY(-1px);
}

.hks-sheet-actions {
    padding-top: 2px;
}

.hks-period-picker {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 15, 12, 0.46);
}

.hks-period-picker-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
}

.hks-period-picker-head strong {
    color: #f2f7ff;
    font-size: 0.98rem;
}

.hks-period-picker-head span {
    color: rgba(226, 235, 248, 0.72);
    font-size: 0.9rem;
}

.hks-period-years,
.hks-period-months {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hks-period-year,
.hks-period-month {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(145, 176, 255, 0.18);
    background: rgba(7, 11, 21, 0.74);
    color: #f2f7ff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.hks-period-year:hover,
.hks-period-month:hover {
    border-color: rgba(120, 165, 255, 0.4);
    transform: translateY(-1px);
}

.hks-period-year.is-active,
.hks-period-month.is-active {
    background: linear-gradient(135deg, rgba(141, 211, 111, 0.2) 0%, rgba(123, 191, 93, 0.26) 100%);
    border-color: rgba(141, 211, 111, 0.3);
    color: #efffdc;
}

.hks-debug-box {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(9, 18, 16, 0.72);
}

.hks-debug-head,
.hks-debug-filters,
.hks-debug-item {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.hks-debug-head {
    justify-content: space-between;
}

.hks-debug-head strong,
.hks-debug-item strong {
    color: #f2f7ff;
}

.hks-debug-head span,
.hks-debug-filters span,
.hks-debug-item span {
    color: rgba(222, 232, 248, 0.74);
    font-size: 0.88rem;
}

.hks-debug-list {
    display: grid;
    gap: 10px;
}

.hks-debug-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hks-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.hks-actions--compact {
    justify-content: flex-start;
}

.hks-advanced {
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hks-table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hks-table-actions form {
    margin: 0;
}

.hks-advanced summary {
    cursor: pointer;
    color: rgba(221, 232, 247, 0.92);
    font-weight: 700;
    list-style: none;
    padding: 6px 0 12px;
}

.hks-advanced summary::-webkit-details-marker {
    display: none;
}

.hks-toolbar-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hks-stock-toolbar {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.hks-stock-toolbar-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hks-batch-live-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.hks-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(239, 244, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.hks-chip:hover {
    border-color: rgba(141, 211, 111, 0.2);
    background: rgba(141, 211, 111, 0.08);
}

.hks-chip.is-active {
    background: linear-gradient(135deg, rgba(141, 211, 111, 0.2) 0%, rgba(123, 191, 93, 0.26) 100%);
    border-color: rgba(141, 211, 111, 0.3);
    color: #efffdc;
}

.hks-pagination {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hks-pagination-summary {
    color: rgba(227, 235, 247, 0.78);
    font-size: 0.94rem;
}

.hks-pagination-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.hks-pagination-sizes,
.hks-pagination-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hks-pagination-label {
    color: rgba(227, 235, 247, 0.72);
    font-size: 0.9rem;
}

.hks-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.hks-page-link.is-current {
    background: linear-gradient(135deg, rgba(141, 211, 111, 0.2) 0%, rgba(123, 191, 93, 0.26) 100%);
    border-color: rgba(141, 211, 111, 0.28);
    color: #e8ffe0;
}

.hks-page-link.is-disabled {
    opacity: 0.45;
    cursor: default;
}

.hks-page-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    color: rgba(227, 235, 247, 0.56);
}

@media (max-width: 1260px) {
    .hks-summary-strip {
        grid-template-columns: 1fr;
    }

    .hks-summary-cell {
        padding-left: 0;
        padding-top: 12px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hks-summary-cell:first-child {
        padding-top: 0;
        border-top: 0;
    }
}

@media (max-width: 1024px) {
    .hks-headerbar,
    .hks-console-grid,
    .hks-bottom-grid,
    .hks-action-grid,
    .hks-form-grid,
    .hks-batch-stats,
    .hks-rail-grid {
        grid-template-columns: 1fr;
    }

    .hks-headerstats,
    .hks-inline-grid,
    .hks-inline-grid--lookup,
    .hks-form-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hks-recipient-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hks-overview,
    .hks-panel {
        padding: 22px;
    }

    .hks-overview-head,
    .hks-section-head {
        flex-direction: column;
    }

    .hks-overview-actions {
        justify-items: start;
    }

    .hks-state-note {
        max-width: none;
        text-align: left;
    }

    .hks-flow-step {
        grid-template-columns: 1fr;
    }

    .hks-headerstats,
    .hks-inline-grid,
    .hks-inline-grid--lookup,
    .hks-form-grid--compact {
        grid-template-columns: 1fr;
    }

    .hks-block-head,
    .hks-table-head {
        flex-direction: column;
    }

    .hks-stock-toolbar {
        justify-items: stretch;
    }

    .hks-stock-toolbar-meta,
    .hks-pagination-tools {
        justify-content: flex-start;
    }

    .hks-batch-live-strip {
        justify-content: flex-start;
    }

    .hks-sheet-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hks-debug-head,
    .hks-recipient-picker-head,
    .hks-table-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}
