:root {
  --blue: #1677ff;
  --blue-dark: #0f5ed7;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #d9e2ec;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --cyan: #0891b2;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: "Segoe UI", Arial, "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: #eef5fb; border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 10px; align-items: center; margin: 4px 0 28px; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
.brand-title { font-size: 20px; font-weight: 700; }
.brand-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.nav { display: grid; gap: 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; color: #23608c; font-weight: 600; }
.nav a.active, .nav a:hover { background: var(--blue); color: #fff; }
.sidebar-footer { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; color: var(--muted); line-height: 1.8; }
.main { flex: 1; padding: 28px 34px 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
h1 { font-size: 30px; margin: 0; font-weight: 700; }
h2 { font-size: 20px; margin: 0; }
.page-subtitle { margin: 8px 0 0; color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 18px; overflow: hidden; }
.panel-title { padding: 14px 16px; background: #f8fbff; border-bottom: 1px solid var(--line); font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.panel-body { padding: 16px; }
.blue-title { background: var(--blue); color: #fff; }
.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; margin-bottom: 18px; border: 1px solid #bfdbfe; border-radius: 8px; background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%); }
.dashboard-hero h2 { margin-top: 8px; font-size: 26px; }
.dashboard-hero p { margin: 8px 0 0; color: var(--muted); }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.metric-grid { margin-bottom: 18px; }
.metric-card { min-height: 122px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, .04); border-top: 4px solid var(--blue); }
.metric-card span { display: block; color: var(--muted); font-weight: 700; }
.metric-card b { display: block; margin-top: 10px; color: var(--ink); font-size: 34px; line-height: 1; }
.metric-card small { display: block; margin-top: 12px; color: var(--muted); }
.metric-card.ok { border-top-color: var(--green); }
.metric-card.info { border-top-color: var(--cyan); }
.metric-card.warn { border-top-color: var(--amber); }
.metric-card.bad { border-top-color: var(--red); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, .8fr); gap: 18px; align-items: start; }
.stat { padding: 18px; border-radius: 8px; color: #fff; min-height: 100px; }
.stat b { display: block; font-size: 30px; margin-top: 10px; }
.stat.blue { background: var(--blue); }
.stat.green { background: var(--green); }
.stat.cyan { background: #06b6d4; }
.stat.amber { background: #f59e0b; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: #475569; font-size: 13px; background: #f8fbff; }
.compact-table th, .compact-table td { padding: 10px 8px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.break { overflow-wrap: anywhere; word-break: break-word; }
.log-table-wrap { overflow-x: auto; }
.log-table { min-width: 0; width: 100%; table-layout: fixed; font-size: 12px; }
.log-table th, .log-table td { padding: 7px 5px; vertical-align: middle; }
.log-table th { border-bottom: 2px solid #334155; color: #1e293b; }
.log-table th:nth-child(1), .log-table td:nth-child(1) { width: 9%; }
.log-table th:nth-child(2), .log-table td:nth-child(2) { width: 10%; }
.log-table th:nth-child(3), .log-table td:nth-child(3) { width: 11%; }
.log-table th:nth-child(4), .log-table td:nth-child(4) { width: 11%; }
.log-table th:nth-child(5), .log-table td:nth-child(5) { width: 22%; }
.log-table th:nth-child(6), .log-table td:nth-child(6) { width: 23%; }
.log-table th:nth-child(7), .log-table td:nth-child(7) { width: 9%; }
.log-table th:nth-child(8), .log-table td:nth-child(8) { width: 5%; }
.log-table .clip { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.log-table .link-final { color: #1677ff; line-height: 1.4; }
.log-table .link-index { display: block; margin-bottom: 2px; color: #334155; font-weight: 700; }
.log-table .template-text, .log-table .proxy-text { color: #ec4899; font-family: Consolas, monospace; line-height: 1.5; }
.log-table .result-message { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-table td:last-child { white-space: nowrap; }
.eye-btn { min-width: 34px; padding: 6px 9px; font-size: 15px; line-height: 1; }
.task-log-modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 42, .55); padding: 5vh 18px; }
.task-log-modal.open { display: flex; align-items: flex-start; justify-content: center; }
.task-log-dialog { width: min(1050px, 96vw); max-height: 88vh; overflow: hidden; background: #fff; border-radius: 9px; box-shadow: 0 24px 70px rgba(15, 23, 42, .3); }
.task-log-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.task-log-head h3 { margin: 0; font-size: 17px; }
.task-log-close { border: 0; background: transparent; color: #64748b; font-size: 25px; cursor: pointer; }
.task-log-body { max-height: 68vh; overflow: auto; padding: 12px 16px; }
.task-history-table { min-width: 900px; font-size: 12px; }
.task-history-table th, .task-history-table td { padding: 8px 7px; }
.task-history-message { max-width: 280px; overflow-wrap: anywhere; color: #dc2626; }
.task-log-foot { display: flex; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid var(--line); }
.tag { display: inline-block; padding: 3px 8px; border-radius: 5px; background: #e2e8f0; font-size: 12px; font-weight: 700; }
.tag.ok { background: #dcfce7; color: #166534; }
.tag.fail { background: #fee2e2; color: #991b1b; }
.tag.warn { background: #fef3c7; color: #92400e; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 6px; padding: 9px 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.primary:hover { background: var(--blue-dark); }
.btn.danger { color: var(--red); border-color: #fecaca; }
.btn.warn { color: var(--amber); border-color: #fde68a; }
.btn.small { padding: 6px 9px; font-size: 12px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 490px; gap: 24px; align-items: start; }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 700; margin-bottom: 7px; }
.required { color: var(--red); }
input, select, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 6px; padding: 10px 12px; font: inherit; background: #fff; }
textarea { min-height: 110px; resize: vertical; }
.hint { color: var(--muted); font-size: 12px; margin-top: 5px; }
.codebox { width: 100%; min-height: 260px; font-family: Consolas, monospace; background: #1f2933; color: #e2e8f0; border: 0; border-radius: 0; white-space: pre; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; box-shadow: 0 12px 30px rgba(15, 23, 42, .08); }
.alert { padding: 12px 14px; border-radius: 6px; margin-bottom: 16px; border: 1px solid var(--line); background: #f8fbff; }
.alert.error { border-color: #fecaca; color: #991b1b; background: #fef2f2; }
.alert.success { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
.split { display: flex; gap: 8px; align-items: center; }
.split > input { flex: 1; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) 320px auto; gap: 10px; margin-bottom: 10px; align-items: center; }
@media (max-width: 960px) {
  .shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; }
  .grid.cols-4, .form-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-hero { display: block; }
  .dashboard-hero .btn { margin-top: 16px; }
  .link-row { grid-template-columns: 1fr; }
  .main { padding: 20px; }
}

/* Public commercial homepage */
.public-site { min-height: 100vh; color: #0f172a; background: #fff; }
.public-nav { height: 76px; display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.public-brand { display: flex; align-items: center; gap: 10px; color: #0f172a; font-size: 21px; font-weight: 800; text-decoration: none; }
.public-brand span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg,#2563eb,#06b6d4); }
.public-nav nav { display: flex; align-items: center; gap: 28px; }
.nav-contact { flex: 1; text-align: center; color: #2563eb; font-size: 16px; font-weight: 800; letter-spacing: .5px; }
.public-nav nav > a:not(.btn) { color: #475569; text-decoration: none; font-size: 14px; font-weight: 600; }
.public-hero { min-height: 650px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; max-width: 1180px; margin: 0 auto; padding: 70px 24px 90px; }
.hero-pill, .section-kicker { display: inline-block; color: #2563eb; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; }
.hero-copy h1 { margin: 20px 0; font-size: clamp(42px,5vw,66px); line-height: 1.08; letter-spacing: -2px; }
.hero-copy h1 em { color: #2563eb; font-style: normal; }
.hero-copy > p { max-width: 650px; color: #64748b; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; margin: 30px 0 22px; }
.hero-btn { padding: 12px 22px; font-size: 15px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; color: #475569; font-size: 13px; }
.hero-visual { position: relative; padding: 28px; }
.hero-visual:before { content: ''; position: absolute; inset: 0; border-radius: 48% 52% 55% 45%; background: linear-gradient(135deg,#dbeafe,#cffafe); transform: rotate(-5deg); }
.visual-window { position: relative; background: rgba(255,255,255,.94); border: 1px solid #dbeafe; border-radius: 18px; padding: 20px; box-shadow: 0 30px 80px rgba(37,99,235,.18); }
.visual-top { display: flex; gap: 6px; padding-bottom: 15px; border-bottom: 1px solid #e2e8f0; }
.visual-top i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.visual-metrics, .visual-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.visual-metrics { padding: 20px 0 10px; }
.visual-row { margin-top: 10px; padding: 15px; border-radius: 10px; background: #f8fafc; font-size: 13px; }
.visual-row span { color: #64748b; }.visual-row strong { flex: 1; }.visual-row em { color: #059669; font-style: normal; }
.public-section { max-width: 1180px; margin: 0 auto; padding: 90px 24px; }
.section-heading { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.section-heading > span { color: #2563eb; font-size: 13px; font-weight: 800; letter-spacing: 2px; }
.section-heading h2, .security-section h2 { margin: 12px 0; font-size: 36px; }.section-heading p,.security-section p { color: #64748b; line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.public-feature { padding: 28px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; transition: .2s; }
.public-feature:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(15,23,42,.08); border-color: #bfdbfe; }
.feature-symbol { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: #2563eb; background: #eff6ff; font-size: 23px; }
.public-feature h3 { margin: 18px 0 9px; }.public-feature p { margin: 0; color: #64748b; line-height: 1.7; }
.workflow-section { padding: 90px max(24px,calc((100vw - 1132px)/2)); background: #0f2d5c; color: #fff; }
.section-heading.light > span { color: #67e8f9; }.section-heading.light h2 { color: #fff; }
.workflow-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.workflow-grid > div { padding: 28px; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; background: rgba(255,255,255,.06); }
.workflow-grid b { color: #67e8f9; font-size: 28px; }.workflow-grid p { color: #cbd5e1; line-height: 1.7; }
.security-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.security-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.security-list span { padding: 18px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; font-weight: 700; }
.public-cta { padding: 70px 24px; text-align: center; color: #fff; background: linear-gradient(135deg,#2563eb,#0891b2); }.public-cta h2 { margin: 0 0 10px; font-size: 34px; }.public-cta p { margin-bottom: 25px; color: #dbeafe; }.public-cta .btn { background: #fff; color: #1d4ed8; }
.public-footer { padding: 45px 24px; text-align: center; background: #0b1220; color: #94a3b8; }.public-footer .public-brand { justify-content: center; color: #fff; }.public-footer p { margin: 12px 0 22px; }.footer-contact { width: fit-content; margin: 0 auto 24px; padding: 14px 18px; display: flex; align-items: center; gap: 16px; border: 1px solid #243047; border-radius: 14px; text-align: left; background: #111b2e; }.footer-contact img { width: 104px; height: 104px; object-fit: cover; border-radius: 8px; background: #fff; }.footer-contact div { display: grid; gap: 6px; }.footer-contact b { color: #fff; font-size: 15px; }.footer-contact span { color: #60a5fa; font-size: 18px; font-weight: 800; }.footer-contact small { color: #94a3b8; }
@media (max-width: 850px) { .public-nav nav > a:not(.btn) { display:none; }.public-hero { grid-template-columns:1fr; padding-top:45px; }.hero-visual { display:none; }.feature-grid,.workflow-grid,.security-section { grid-template-columns:1fr; }.security-list { grid-template-columns:1fr 1fr; }.hero-copy h1 { letter-spacing:-1px; } }
@media (max-width: 520px) { .public-nav { padding:0 16px; }.public-brand { font-size:18px; }.nav-contact { font-size:13px; text-align:right; margin-right:10px; }.public-hero { padding:38px 18px 65px; }.hero-copy h1 { font-size:39px; }.hero-points { display:grid; }.feature-grid,.workflow-grid,.security-list { grid-template-columns:1fr; }.public-section { padding:65px 18px; }.section-heading h2,.security-section h2 { font-size:29px; }.footer-contact img { width:90px; height:90px; } }

/* 2026 console visual refresh — presentation only, no layout or behavior changes */
:root {
  --blue: #4f46e5;
  --blue-dark: #3730a3;
  --ink: #172033;
  --muted: #70809b;
  --line: #dfe7f3;
  --bg: #f2f6ff;
  --panel: rgba(255,255,255,.88);
  --green: #10b981;
  --red: #f43f5e;
  --amber: #f59e0b;
  --cyan: #06b6d4;
}

html { scroll-behavior: smooth; }
body:not(:has(.public-site)) {
  background:
    radial-gradient(circle at 88% 8%, rgba(99,102,241,.14), transparent 28rem),
    radial-gradient(circle at 12% 92%, rgba(6,182,212,.10), transparent 30rem),
    linear-gradient(145deg, #f7f9ff 0%, #eef4ff 52%, #f8fbff 100%);
  background-attachment: fixed;
}
.shell { position: relative; isolation: isolate; }
.shell:before {
  content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none; opacity: .28;
  background-image: linear-gradient(rgba(79,70,229,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(79,70,229,.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
.sidebar {
  background: linear-gradient(180deg, rgba(15,23,52,.98), rgba(27,35,72,.97));
  border-right: 1px solid rgba(129,140,248,.22);
  box-shadow: 16px 0 45px rgba(30,41,90,.12);
  color: #e8edff;
}
.brand { padding: 8px 8px 24px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, #7c3aed, #2563eb 52%, #06b6d4);
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 10px 30px rgba(79,70,229,.48);
}
.brand-title { color: #fff; letter-spacing: .03em; }
.brand-sub { color: #93a4c7; }
.nav { gap: 8px; }
.nav a {
  position: relative; overflow: hidden; color: #b8c5e5; padding: 12px 14px; border-radius: 11px;
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nav a:hover { color: #fff; background: rgba(99,102,241,.2); transform: translateX(3px); }
.nav a.active {
  color: #fff; background: linear-gradient(100deg, rgba(99,102,241,.95), rgba(37,99,235,.82));
  box-shadow: 0 10px 24px rgba(37,99,235,.28), inset 0 1px rgba(255,255,255,.22);
}
.nav a.active:before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px; border-radius: 3px; background: #67e8f9; box-shadow: 0 0 12px #22d3ee; }
.sidebar-footer { border-color: rgba(255,255,255,.1); color: #b8c5e5; }
.sidebar-footer .muted { color: #8192b6; }
.sidebar-footer a { color: #93c5fd; }

.main { animation: console-in .38s ease both; }
@keyframes console-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
h1 { color: #151d35; letter-spacing: -.035em; text-shadow: 0 1px #fff; }
.page-subtitle { color: #74829b; }
.panel {
  border-color: rgba(197,210,232,.8); border-radius: 15px;
  box-shadow: 0 12px 34px rgba(47,61,112,.075), inset 0 1px rgba(255,255,255,.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.panel:hover { border-color: rgba(129,140,248,.48); box-shadow: 0 18px 44px rgba(47,61,112,.11), 0 0 0 1px rgba(129,140,248,.07); }
.panel-title {
  min-height: 52px; padding: 15px 18px; color: #24304c;
  background: linear-gradient(110deg, rgba(248,250,255,.96), rgba(238,243,255,.88));
  border-bottom-color: rgba(203,213,232,.8);
}
.blue-title { color: #fff; background: linear-gradient(110deg, #4338ca, #2563eb 55%, #0891b2); border: 0; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.panel-body { padding: 18px; }
.dashboard-hero {
  border: 1px solid rgba(129,140,248,.32); border-radius: 18px;
  background: linear-gradient(125deg, rgba(255,255,255,.94), rgba(237,242,255,.92) 58%, rgba(224,247,250,.78));
  box-shadow: 0 18px 45px rgba(50,64,120,.1);
}
.metric-card { border-radius: 15px; border-top-width: 0; position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.metric-card:before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blue); box-shadow: 0 0 15px var(--blue); }
.metric-card.ok:before { background: var(--green); box-shadow: 0 0 15px var(--green); }
.metric-card.info:before { background: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
.metric-card.warn:before { background: var(--amber); box-shadow: 0 0 15px var(--amber); }
.metric-card.bad:before { background: var(--red); box-shadow: 0 0 15px var(--red); }
.metric-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(45,58,112,.14); }

.table { background: transparent; border-collapse: separate; border-spacing: 0; }
.table th { color: #52617e; background: rgba(238,243,253,.84); border-bottom: 1px solid #d8e2f1; text-transform: none; letter-spacing: .02em; }
.table th:first-child { border-radius: 9px 0 0 9px; }
.table th:last-child { border-radius: 0 9px 9px 0; }
.table td { border-bottom-color: #e7edf7; transition: background .18s ease; }
.table tr:hover td { background: rgba(238,243,255,.72); }
.tag { border-radius: 999px; padding: 5px 10px; border: 1px solid transparent; box-shadow: inset 0 1px rgba(255,255,255,.75); }
.tag.ok { background: #dcfdf1; color: #047857; border-color: #a7f3d0; box-shadow: 0 0 0 1px rgba(16,185,129,.04), 0 5px 14px rgba(16,185,129,.12); }
.tag.fail { background: #fff0f3; color: #be123c; border-color: #fecdd3; box-shadow: 0 5px 14px rgba(244,63,94,.11); }
.tag.warn { background: #fff8e5; color: #a16207; border-color: #fde68a; box-shadow: 0 5px 14px rgba(245,158,11,.1); }
.btn {
  border-color: #d4deee; border-radius: 10px; padding: 9px 14px; background: rgba(255,255,255,.9);
  box-shadow: 0 3px 10px rgba(45,58,105,.06); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #a5b4fc; background: #f8faff; box-shadow: 0 8px 18px rgba(57,70,130,.12); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { border-color: transparent; background: linear-gradient(110deg, #4f46e5, #2563eb 58%, #0891b2); box-shadow: 0 8px 20px rgba(37,99,235,.24), inset 0 1px rgba(255,255,255,.22); }
.btn.primary:hover { border-color: transparent; background: linear-gradient(110deg, #4338ca, #1d4ed8 58%, #0e7490); box-shadow: 0 11px 26px rgba(37,99,235,.32); }
.btn.danger { background: #fff7f8; }
.btn.warn { background: #fffbeb; }
.toolbar { padding: 5px 0 2px; }
.toolbar > .btn { min-width: 150px; justify-content: center; }

input, select, textarea { border-color: #d4deed; border-radius: 10px; background: rgba(255,255,255,.88); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: #818cf8; background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.codebox { border-radius: 11px; background: linear-gradient(145deg, #11182b, #18233c); color: #c7d2fe; box-shadow: inset 0 0 35px rgba(37,99,235,.12); }
.alert { border-radius: 11px; box-shadow: 0 8px 20px rgba(40,55,105,.06); }
.task-log-modal { background: rgba(9,15,35,.68); backdrop-filter: blur(8px); }
.task-log-dialog { border: 1px solid rgba(165,180,252,.4); border-radius: 17px; box-shadow: 0 30px 90px rgba(8,15,38,.42), 0 0 45px rgba(79,70,229,.14); animation: modal-in .22s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.task-log-head { background: linear-gradient(110deg, #f8faff, #eef2ff); }
.login-card { border-radius: 18px; border-color: rgba(165,180,252,.5); box-shadow: 0 28px 80px rgba(48,61,120,.18); backdrop-filter: blur(16px); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #edf2fb; }
::-webkit-scrollbar-thumb { border: 2px solid #edf2fb; border-radius: 999px; background: linear-gradient(#a5b4fc,#60a5fa); }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 960px) {
  .sidebar { background: linear-gradient(100deg, #111936, #202b58); box-shadow: 0 10px 30px rgba(30,41,90,.16); }
  .brand { margin-bottom: 14px; }
  .nav { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .nav a { justify-content: center; text-align: center; }
  .toolbar > .btn { flex: 1; }
}

/* Dashboard: luminous command-center treatment */
.dashboard-hero { position: relative; overflow: hidden; min-height: 150px; }
.dashboard-hero:before,
.dashboard-hero:after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.dashboard-hero:before { width: 310px; height: 310px; right: -95px; top: -150px; background: radial-gradient(circle, rgba(99,102,241,.32), rgba(99,102,241,0) 68%); animation: hero-pulse 5s ease-in-out infinite; }
.dashboard-hero:after { width: 190px; height: 190px; right: 150px; bottom: -145px; border: 1px solid rgba(6,182,212,.32); box-shadow: 0 0 55px rgba(6,182,212,.16), inset 0 0 35px rgba(6,182,212,.08); }
.dashboard-hero > * { position: relative; z-index: 1; }
.dashboard-hero h2 { font-size: 28px; background: linear-gradient(90deg,#172033,#4338ca 58%,#0891b2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dashboard-hero .eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #c7d2fe; border-radius: 999px; background: rgba(238,242,255,.8); }
.dashboard-hero .eyebrow:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 12px #22c55e; animation: status-pulse 1.8s ease infinite; }
@keyframes status-pulse { 50% { opacity: .45; transform: scale(.72); } }
@keyframes hero-pulse { 50% { transform: scale(1.1) translate(-12px, 8px); opacity: .7; } }
.metric-grid .metric-card { background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(244,247,255,.88)); }
.metric-grid .metric-card:after { content: ""; position: absolute; width: 80px; height: 80px; right: -24px; top: -24px; border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,.13), transparent 70%); }
.metric-card b { background: linear-gradient(120deg,#172033,#4f46e5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric-card.ok b { background-image: linear-gradient(120deg,#172033,#059669); }
.metric-card.info b { background-image: linear-gradient(120deg,#172033,#0891b2); }
.metric-card.warn b { background-image: linear-gradient(120deg,#172033,#d97706); }
.metric-card.bad b { background-image: linear-gradient(120deg,#172033,#e11d48); }
.dashboard-grid > .panel:first-child { box-shadow: 0 18px 50px rgba(79,70,229,.10); }
.dashboard-grid > .panel:last-child { box-shadow: 0 18px 50px rgba(6,182,212,.09); }

/* Public homepage: premium blue-violet product aesthetic */
.public-site { overflow: hidden; background: #fff; }
.public-nav { position: relative; z-index: 10; }
.public-brand span { background: linear-gradient(135deg,#7c3aed,#2563eb 55%,#06b6d4); box-shadow: 0 8px 22px rgba(79,70,229,.32); }
.public-hero { position: relative; max-width: none; padding-left: max(24px,calc((100vw - 1132px)/2)); padding-right: max(24px,calc((100vw - 1132px)/2)); background: radial-gradient(circle at 82% 18%, rgba(99,102,241,.17), transparent 27rem), radial-gradient(circle at 15% 85%, rgba(6,182,212,.10), transparent 28rem), linear-gradient(160deg,#fff 0%,#f7f8ff 50%,#eff9ff 100%); }
.public-hero:before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .42; background-image: linear-gradient(rgba(79,70,229,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(79,70,229,.05) 1px,transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(to bottom,black,transparent 88%); }
.hero-copy,.hero-visual { position: relative; z-index: 1; }
.hero-pill { color: #4338ca; border-color: #c7d2fe; background: rgba(238,242,255,.82); box-shadow: 0 7px 22px rgba(79,70,229,.1); backdrop-filter: blur(8px); }
.hero-copy h1 { background: none; color:#172033; -webkit-text-fill-color:#172033; text-shadow:0 2px 0 rgba(255,255,255,.9),0 16px 38px rgba(49,46,129,.12); }
.hero-copy h1 em { background:none; color:#2563eb; -webkit-text-fill-color:#2563eb; text-shadow:0 10px 28px rgba(37,99,235,.2); }
.hero-visual:before { animation: visual-blob 8s ease-in-out infinite; box-shadow: 0 0 80px rgba(99,102,241,.18); }
@keyframes visual-blob { 50% { border-radius: 57% 43% 42% 58%; transform: rotate(4deg) scale(1.04); } }
.visual-window { border-color: rgba(165,180,252,.55); background: rgba(255,255,255,.83); backdrop-filter: blur(18px); box-shadow: 0 35px 90px rgba(49,46,129,.22),0 0 0 1px rgba(255,255,255,.8) inset; animation: visual-float 5s ease-in-out infinite; }
@keyframes visual-float { 50% { transform: translateY(-9px); } }
.visual-top i:nth-child(1) { background:#fb7185; }.visual-top i:nth-child(2) { background:#fbbf24; }.visual-top i:nth-child(3) { background:#34d399; }
.visual-row { border: 1px solid rgba(226,232,240,.8); background: linear-gradient(110deg,rgba(248,250,252,.94),rgba(238,242,255,.8)); transition: transform .2s ease,border-color .2s ease; }
.visual-row:hover { transform: translateX(5px); border-color:#a5b4fc; }
.public-section { position: relative; }
.public-feature { position: relative; overflow: hidden; border-radius: 18px; box-shadow: 0 12px 36px rgba(45,58,105,.055); }
.public-feature:before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:linear-gradient(#7c3aed,#2563eb,#06b6d4); opacity:0; transition:opacity .2s; }
.public-feature:hover { transform: translateY(-7px); border-color:#a5b4fc; box-shadow:0 24px 55px rgba(49,46,129,.13); }
.public-feature:hover:before { opacity:1; }
.feature-symbol { background:linear-gradient(135deg,#ede9fe,#e0f2fe); box-shadow:0 8px 20px rgba(79,70,229,.12); }
.workflow-section { position:relative; overflow:hidden; background:radial-gradient(circle at 10% 10%,rgba(99,102,241,.3),transparent 26rem),radial-gradient(circle at 90% 90%,rgba(6,182,212,.22),transparent 26rem),linear-gradient(125deg,#0b1026,#172554 48%,#083344); }
.workflow-section:before { content:""; position:absolute; inset:0; opacity:.12; background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px); background-size:42px 42px; }
.workflow-section > * { position:relative; }
.workflow-grid > div { background:rgba(255,255,255,.07); backdrop-filter:blur(10px); transition:transform .2s,border-color .2s,background .2s; }
.workflow-grid > div:hover { transform:translateY(-5px); border-color:rgba(103,232,249,.55); background:rgba(255,255,255,.11); }
.public-cta { position:relative; overflow:hidden; background:linear-gradient(115deg,#6d28d9,#2563eb 52%,#0891b2); }
.public-cta:after { content:""; position:absolute; width:420px; height:420px; right:-130px; top:-260px; border-radius:50%; border:1px solid rgba(255,255,255,.25); box-shadow:0 0 0 45px rgba(255,255,255,.04),0 0 0 90px rgba(255,255,255,.025); }
.public-cta > * { position:relative; z-index:1; }
.log-task-head{white-space:nowrap}
.log-task-eye{margin-left:5px;padding:2px 5px;border:1px solid rgba(148,163,184,.28);border-radius:7px;background:rgba(15,23,42,.06);cursor:pointer;line-height:1;font-size:14px;transition:.18s ease}
.log-task-eye:hover{transform:scale(1.08);background:rgba(59,130,246,.12);border-color:rgba(59,130,246,.42)}
.log-task-value{display:none}
.log-task-hidden{display:inline-block;letter-spacing:2px;color:#94a3b8;font-weight:700}
.log-table.show-task-names .log-task-value{display:inline}
.log-table.show-task-names .log-task-hidden{display:none}
.log-final-head{white-space:nowrap}
.log-table .log-final-value{display:none}
.log-table .log-final-hidden{display:block;color:inherit}
.log-table.show-final-urls .log-final-value{display:block}
.log-table.show-final-urls .log-final-hidden{display:none}
