:root {
    --bg: #eef3f7;
    --bg-deep: #dce7f0;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --surface-muted: #f6f9fc;
    --panel-tint: rgba(8, 28, 53, 0.05);
    --ink: #10233a;
    --ink-soft: #28415d;
    --muted: #63758a;
    --muted-strong: #42576f;
    --line: rgba(28, 58, 92, 0.10);
    --line-strong: rgba(28, 58, 92, 0.18);
    --primary: #184e88;
    --primary-strong: #0f3c69;
    --primary-soft: rgba(24, 78, 136, 0.10);
    --teal: #0f8c8c;
    --teal-soft: rgba(15, 140, 140, 0.12);
    --success: #127a5f;
    --success-soft: rgba(18, 122, 95, 0.14);
    --danger: #c94c5d;
    --danger-soft: rgba(201, 76, 93, 0.14);
    --amber: #b16b18;
    --amber-soft: rgba(177, 107, 24, 0.14);
    --shadow-lg: 0 26px 70px rgba(16, 35, 58, 0.14);
    --shadow-md: 0 16px 36px rgba(16, 35, 58, 0.10);
    --shadow-sm: 0 8px 18px rgba(16, 35, 58, 0.06);
    --radius-2xl: 30px;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 8% 0%, rgba(17, 96, 150, 0.18), transparent 28%),
        radial-gradient(circle at 100% 16%, rgba(15, 140, 140, 0.12), transparent 24%),
        linear-gradient(180deg, #f5f8fb 0%, #edf3f7 42%, #e8eff5 100%);
    position: relative;
    overflow-x: hidden;
}

code,
pre,
.meta-code,
.brand-mark,
.summary-card strong,
.hero-metric-card strong {
    font-family: "JetBrains Mono", monospace;
}

.page-orb {
    position: fixed;
    inset: auto;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.65;
    z-index: 0;
}

.page-orb-a {
    top: 92px;
    left: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(24, 78, 136, 0.18), rgba(24, 78, 136, 0));
}

.page-orb-b {
    right: -110px;
    bottom: 90px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(15, 140, 140, 0.14), rgba(15, 140, 140, 0));
}

.shell,
.login-shell {
    position: relative;
    z-index: 1;
}

.shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
}

.topbar,
.topbar-left,
.topbar-right,
.view-nav,
.toolbar,
.filter-group,
.button-row,
.toggle-row,
.toggle-grid,
.task-actions,
.hero,
.preview-head,
.field-head,
.section-head,
.editor-group-head,
.health-label {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: calc(var(--radius-2xl) + 4px);
    background: rgba(248, 251, 253, 0.72);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-right {
    align-items: center;
}

.brand-panel,
.toolbar-panel {
    padding: 10px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.6);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand strong {
    display: block;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.brand span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #185896 0%, #113d6b 100%);
    color: white;
    font-size: 20px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 22px rgba(17, 61, 107, 0.24);
}

.nav-button,
.nav-link,
.filter-chip,
button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 11px 15px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-button,
.nav-link,
.filter-chip {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-button:hover,
.nav-link:hover,
.filter-chip:hover,
button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.nav-button-active {
    color: var(--primary);
    background: rgba(24, 78, 136, 0.12);
    border-color: rgba(24, 78, 136, 0.20);
}

.action-primary,
.primary {
    color: white;
    background: linear-gradient(135deg, #185896 0%, #103c68 100%);
    border: 1px solid rgba(16, 60, 104, 0.34);
    box-shadow: 0 14px 26px rgba(16, 60, 104, 0.24);
}

.secondary {
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(24, 78, 136, 0.12);
}

.ghost {
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid var(--line-strong);
}

.danger {
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid rgba(201, 76, 93, 0.14);
}

.full-width {
    width: 100%;
}

.eyebrow,
.section-tag,
.status-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
}

.section-tag {
    color: var(--primary);
    background: rgba(24, 78, 136, 0.10);
}

.status-kicker {
    color: var(--muted-strong);
    background: rgba(16, 35, 58, 0.06);
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    margin-top: 16px;
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

h2 {
    font-size: 28px;
    line-height: 1.14;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 18px;
    line-height: 1.2;
}

p,
.meta,
.field span,
.section-head p,
.editor-group-head p,
.strip-card span,
.history-preview,
.feed-item,
.status-card p {
    color: var(--muted);
    line-height: 1.65;
}

.message {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999;
    min-width: 280px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 44px rgba(16, 35, 58, 0.14);
    backdrop-filter: blur(18px);
    animation: toast-in 0.18s ease;
}

.message.success {
    background: rgba(255, 255, 255, 0.92);
    color: var(--success);
}

.message.error {
    background: rgba(255, 250, 251, 0.94);
    color: var(--danger);
}

.hidden {
    display: none !important;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translate3d(0, -8px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.app-view {
    display: grid;
    gap: 18px;
}

.hero-console {
    justify-content: space-between;
    align-items: stretch;
    padding: 34px;
    border-radius: var(--radius-2xl);
    background:
        linear-gradient(135deg, rgba(16, 60, 104, 0.96) 0%, rgba(13, 47, 81, 0.98) 56%, rgba(17, 72, 99, 0.96) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    color: white;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.hero-console::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.18;
    pointer-events: none;
}

.hero-main,
.hero-side {
    position: relative;
    z-index: 1;
}

.hero-main {
    max-width: 760px;
    display: grid;
    gap: 18px;
}

.hero-main p,
.hero-console .eyebrow {
    color: rgba(244, 248, 252, 0.86);
}

.hero-side {
    min-width: 320px;
    display: grid;
    gap: 14px;
}

.hero-metrics,
.overview-strip,
.summary-grid,
.dashboard-grid,
.workspace-grid,
.settings-grid,
.form-grid,
.settings-hero {
    display: grid;
    gap: 16px;
}

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

.hero-metric-card,
.status-card,
.strip-card,
.summary-card,
.panel,
.task-card,
.history-card,
.feed-item,
.login-card,
.login-point {
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.hero-metric-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.12);
}

.hero-metric-card span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.hero-metric-card strong {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    color: white;
}

.status-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(244, 248, 252, 0.92);
    border-color: rgba(255, 255, 255, 0.64);
}

.status-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 18px;
    color: var(--ink);
}

.accent-blue {
    box-shadow: inset 4px 0 0 rgba(90, 165, 235, 0.9), var(--shadow-sm);
}

.accent-green {
    box-shadow: inset 4px 0 0 rgba(18, 122, 95, 0.9), var(--shadow-sm);
}

.accent-amber {
    box-shadow: inset 4px 0 0 rgba(177, 107, 24, 0.9), var(--shadow-sm);
}

.overview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strip-card {
    padding: 18px 20px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.56);
    border-style: dashed;
}

.strip-card strong {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    color: var(--ink-soft);
}

.summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-card,
.panel,
.login-card {
    background: var(--surface);
    border-radius: var(--radius-2xl);
}

.summary-card {
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 252, 0.96)),
        var(--surface);
}

.summary-card span {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

.summary-card strong {
    display: block;
    margin-top: 14px;
    font-size: 34px;
    color: var(--ink);
    letter-spacing: -0.04em;
}

.summary-card p {
    margin-top: 10px;
    font-size: 13px;
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.task-list-layout,
.task-editor-page-grid {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.workspace-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.9fr);
    align-items: start;
}

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

.panel {
    padding: 24px;
}

.feature-panel,
.settings-panel,
.history-panel,
.settings-hero {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 249, 252, 0.94)),
        var(--surface);
}

.settings-hero {
    align-items: start;
}

.section-head {
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.section-head > div,
.editor-group-head > div {
    display: grid;
    gap: 8px;
}

.primary-column,
.secondary-column,
.task-list,
.history-list,
.health-bars,
.activity-feed,
.task-editor-layout {
    display: grid;
    gap: 14px;
}

.task-list-panel,
.task-editor-panel {
    max-height: calc(100vh - 132px);
    overflow: hidden;
}

.task-list-panel-full,
.task-editor-panel-page {
    max-height: none;
    overflow: visible;
    min-width: 0;
}

.task-list-body,
.task-editor-body {
    overflow: auto;
    max-height: calc(100vh - 250px);
    padding-right: 6px;
    min-width: 0;
}

.task-list-panel-full .task-list-body,
.task-editor-panel-page .task-editor-body {
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
    padding-right: 0;
}

.task-list-hero,
.editor-intro {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 247, 251, 0.96)),
        var(--surface);
}

.compact-actions {
    justify-content: flex-end;
}

.task-list-body::-webkit-scrollbar,
.task-editor-body::-webkit-scrollbar,
.preview::-webkit-scrollbar,
.history-preview::-webkit-scrollbar {
    width: 10px;
}

.task-list-body::-webkit-scrollbar-thumb,
.task-editor-body::-webkit-scrollbar-thumb,
.preview::-webkit-scrollbar-thumb,
.history-preview::-webkit-scrollbar-thumb {
    background: rgba(16, 35, 58, 0.14);
    border-radius: 999px;
}

.toolbar {
    justify-content: space-between;
    align-items: end;
    margin-bottom: 16px;
}

.toolbar-field {
    flex: 1;
    min-width: 260px;
}

.filter-chip-active {
    color: var(--primary);
    background: rgba(24, 78, 136, 0.12);
    border-color: rgba(24, 78, 136, 0.18);
}

.task-card,
.history-card,
.feed-item,
.preview-card,
.editor-group,
.login-point {
    background: var(--surface-strong);
    border-radius: var(--radius-xl);
}

.task-card,
.history-card,
.feed-item {
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.task-card-enhanced,
.history-card-enhanced,
.feed-item-enhanced {
    position: relative;
    overflow: hidden;
}

.task-card-enhanced::before,
.history-card-enhanced::before,
.feed-item-enhanced::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 999px;
    background: rgba(16, 35, 58, 0.12);
}

.tone-success::before {
    background: linear-gradient(180deg, #127a5f 0%, #1da281 100%);
}

.tone-danger::before {
    background: linear-gradient(180deg, #c94c5d 0%, #e3808d 100%);
}

.tone-neutral::before {
    background: linear-gradient(180deg, #185896 0%, #49a2b0 100%);
}

.task-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.task-card:hover {
    transform: translateY(-2px);
    border-color: rgba(24, 78, 136, 0.18);
    box-shadow: var(--shadow-md);
}

.task-top,
.task-actions,
.preview-head {
    justify-content: space-between;
    align-items: center;
}

.task-title {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.3;
}

.task-heading {
    min-width: 0;
}

.task-title-row,
.feed-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.task-url {
    word-break: break-all;
}

.method-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(24, 78, 136, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.compact-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 10px;
}

.meta-item {
    padding: 12px 13px;
    border-radius: var(--radius-md);
    background: #f5f8fb;
    border: 1px solid rgba(16, 35, 58, 0.08);
}

.meta-item span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
}

.meta-item strong {
    display: block;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.history-message,
.feed-message,
.empty-title {
    color: var(--ink-soft);
}

.history-message,
.feed-message {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(16, 35, 58, 0.04);
    font-size: 13px;
    line-height: 1.6;
}

.history-message-muted {
    color: var(--muted);
}

.empty-card {
    display: grid;
    gap: 8px;
}

.empty-title {
    font-size: 16px;
    font-weight: 700;
}

.pill-row,
.toggle-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.pill,
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.pill {
    color: var(--muted-strong);
    border: 1px solid var(--line-strong);
    background: var(--surface-muted);
}

.status-idle {
    color: var(--muted-strong);
    background: rgba(99, 117, 138, 0.14);
}

.status-success {
    color: var(--success);
    background: var(--success-soft);
}

.status-failed {
    color: var(--danger);
    background: var(--danger-soft);
}

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

.form-grid > *,
.task-editor-layout > *,
.editor-group,
.field {
    min-width: 0;
}

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

.compact-grid {
    margin-bottom: 12px;
}

.editor-group {
    padding: 18px;
    border: 1px solid rgba(16, 35, 58, 0.08);
    background: linear-gradient(180deg, #ffffff, #f9fbfd);
}

.editor-group-head {
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.split-head {
    align-items: center;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field span {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted-strong);
}

.field-head > span {
    color: var(--muted);
}

.inline-action {
    padding: 9px 13px;
    font-size: 13px;
    box-shadow: none;
}

.span-2 {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 13px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-strong);
    background: #fbfdff;
    color: var(--ink);
    font: inherit;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

input::placeholder,
textarea::placeholder {
    color: #8b9aab;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
.nav-link:focus-visible,
.nav-button:focus-visible,
.filter-chip:focus-visible {
    outline: none;
    border-color: rgba(24, 78, 136, 0.34);
    box-shadow: 0 0 0 4px rgba(24, 78, 136, 0.10);
}

textarea {
    min-height: 112px;
    max-height: 220px;
    resize: vertical;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
}

.toggle-panel {
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: var(--surface-muted);
    border: 1px solid rgba(16, 35, 58, 0.08);
}

.toggle-row label,
.toggle-grid label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-strong);
    font-weight: 500;
}

.toggle-row input,
.toggle-grid input {
    width: 16px;
    height: 16px;
    padding: 0;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    padding-top: 10px;
    background: linear-gradient(180deg, rgba(238, 243, 247, 0), rgba(238, 243, 247, 0.92) 38%, rgba(238, 243, 247, 0.98) 100%);
}

.preview-card {
    padding: 18px;
    border: 1px solid rgba(16, 35, 58, 0.08);
    background: linear-gradient(180deg, #ffffff, #f4f8fb);
    box-shadow: var(--shadow-sm);
    min-width: 0;
    overflow: hidden;
}

.preview-head strong {
    font-size: 14px;
}

.preview,
.history-preview {
    margin: 14px 0 0;
    padding: 14px;
    border-radius: var(--radius-md);
    background: #f4f8fb;
    color: #2f435b;
    border: 1px solid rgba(16, 35, 58, 0.08);
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden;
    overflow-y: auto;
}

.preview {
    max-height: 220px;
}

.health-row {
    display: grid;
    gap: 8px;
}

.health-track {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(16, 35, 58, 0.08);
}

.health-fill {
    height: 100%;
    border-radius: 999px;
}

.fill-success {
    background: linear-gradient(135deg, #127a5f 0%, #1da281 100%);
}

.fill-failed {
    background: linear-gradient(135deg, #c94c5d 0%, #e3808d 100%);
}

.fill-neutral {
    background: linear-gradient(135deg, #185896 0%, #49a2b0 100%);
}

.feed-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
}

.skeleton-card {
    overflow: hidden;
}

.skeleton-line {
    display: block;
    height: 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(16, 35, 58, 0.06), rgba(16, 35, 58, 0.12), rgba(16, 35, 58, 0.06));
    background-size: 220px 100%;
    animation: shimmer 1.25s linear infinite;
}

.skeleton-line:nth-child(1) {
    width: 44%;
}

.skeleton-line:nth-child(2) {
    width: 82%;
}

.skeleton-line:nth-child(3) {
    width: 68%;
}

.skeleton-line:nth-child(4) {
    width: 90%;
}

.skeleton-line:nth-child(5) {
    width: 58%;
    margin-bottom: 0;
}

@keyframes shimmer {
    from {
        background-position: -220px 0;
    }

    to {
        background-position: 220px 0;
    }
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.is-loading {
    position: relative;
}

.is-loading::after {
    content: "";
    width: 12px;
    height: 12px;
    margin-left: 8px;
    display: inline-block;
    vertical-align: -1px;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.login-body {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(1140px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 420px);
    gap: 24px;
    align-items: stretch;
}

.login-intro,
.login-card {
    padding: 34px;
}

.login-intro {
    border-radius: var(--radius-2xl);
    color: white;
    background:
        linear-gradient(135deg, rgba(16, 60, 104, 0.96) 0%, rgba(13, 47, 81, 0.98) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 18px;
}

.login-intro h1,
.login-intro p,
.intro-eyebrow {
    color: white;
}

.login-points {
    display: grid;
    gap: 14px;
    margin-top: 10px;
}

.login-point {
    padding: 18px;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.14);
}

.login-point strong {
    display: block;
    margin-bottom: 6px;
    color: white;
}

.login-point span {
    color: rgba(244, 248, 252, 0.78);
}

.login-card {
    width: 100%;
    display: grid;
    gap: 16px;
    align-self: center;
}

.login-card h2 {
    font-size: 30px;
}

.login-card-eyebrow {
    color: var(--primary);
    background: rgba(24, 78, 136, 0.10);
}

.error-box {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 245, 246, 0.96);
    color: var(--danger);
    border: 1px solid rgba(201, 76, 93, 0.12);
}

@media (max-width: 1240px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-metrics,
    .overview-strip,
    .task-list-layout,
    .task-editor-page-grid,
    .dashboard-grid,
    .workspace-grid,
    .settings-grid,
    .login-shell {
        grid-template-columns: 1fr;
    }

    .task-list-panel,
    .task-editor-panel {
        max-height: none;
        overflow: visible;
    }

    .task-list-body,
    .task-editor-body {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .hero-side {
        min-width: 0;
    }
}

@media (max-width: 860px) {
    .shell,
    .login-body {
        padding: 16px;
    }

    .message {
        top: 16px;
        right: 16px;
        left: 16px;
        min-width: 0;
        max-width: none;
    }

    .topbar,
    .topbar-left,
    .topbar-right,
    .hero,
    .section-head,
    .split-head,
    .preview-head,
    .task-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-nav,
    .quick-actions {
        width: 100%;
    }

    .hero-console,
    .panel,
    .login-intro,
    .login-card {
        padding: 20px;
    }

    h1 {
        font-size: 36px;
    }

    h2,
    .login-card h2 {
        font-size: 26px;
    }

    .summary-grid,
    .form-grid,
    .schedule-grid,
    .hero-metrics,
    .overview-strip {
        grid-template-columns: 1fr;
    }

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

    .span-2 {
        grid-column: auto;
    }

    .sticky-actions {
        position: static;
        background: none;
        padding-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
