.page { min-height: 100vh; padding: 24px; --layout-gap: 20px; --panel-radius: 8px; --card-radius: 8px; --control-radius: 8px; --panel-padding: 20px; --card-padding: 16px; }
.loginPage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 48px);
  background-color: #eef3f7;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(93, 125, 148, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(119, 149, 170, 0.16), transparent 24%),
    radial-gradient(circle at 72% 78%, rgba(88, 111, 133, 0.12), transparent 26%),
    linear-gradient(135deg, #f4f7fa 0%, #e8eef4 42%, #dde7f0 100%);
}
.loginPage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 122, 143, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 122, 143, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 92%);
  pointer-events: none;
}
.loginPage::after {
  content: "";
  position: absolute;
  inset: 10% 14%;
  border: 1px solid rgba(124, 149, 168, 0.18);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24) inset,
    0 0 120px rgba(92, 120, 145, 0.08);
  transform: perspective(1200px) rotateX(68deg);
  pointer-events: none;
}
.loginStack {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  display: grid;
  gap: 14px;
}
.loginCard {
  width: 100%;
  border-radius: 8px !important;
  padding: 24px !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(202, 215, 227, 0.9) !important;
  box-shadow: 0 24px 60px rgba(34, 54, 74, 0.12) !important;
}
.loginCard input,
.loginCard button {
  border-radius: 8px !important;
}
.loginCard .buttonRow button {
  width: 100%;
  justify-content: center;
}
.topbar { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: var(--layout-gap); margin-bottom: var(--layout-gap); }
.brandCard, .authCard, .panel, .sidebar, .runListPanel, .runDetailPanel { background: rgba(255,255,255,.92); border: 1px solid rgba(217,226,236,.95); border-radius: var(--panel-radius); box-shadow: 0 14px 36px rgba(16,36,67,.07); backdrop-filter: blur(10px); }
.brandCard, .authCard, .panel, .runListPanel, .runDetailPanel { padding: var(--panel-padding); }
.eyebrow, .pageKicker { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.brandCard h1 { margin-top: 14px; font-size: 38px; line-height: 1.06; max-width: none; overflow-wrap: anywhere; }
.description { margin-top: 16px; color: var(--muted); line-height: 1.7; max-width: none; overflow-wrap: anywhere; }
.heroTags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.heroTags span, .strategyTag, .statusChip, .badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; }
.heroTags span { background: #eff5fb; color: var(--primary-strong); border: 1px solid #d9e5f0; padding: 8px 12px; font-size: 12px; }
.cardHeader, .pageHeader, .reportHeader, .detailHeader, .runRowHeader, .taskTitleRow, .toolbar, .buttonRow, .sessionMeta, .switchField { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.cardHeader p, .pageHeader p, .authCard p, .sidebarHeader p, .fieldHint, .metaList span, .inlineField span, .timelineBody span, .sessionMeta span { color: var(--muted); }
.authCard, .form, .sidebarHeader, .navList, .stack, .statsGrid, .reportGrid, .taskList, .metaList, .detailStack, .timeline, .screenshotGrid { display: grid; gap: 16px; }
.statusChip { padding: 8px 12px; font-size: 12px; }
.statusChip[data-state="idle"] { background: #def5e8; color: var(--success); }
.statusChip[data-state="busy"] { background: #fff0d9; color: #9a5a00; }
.buttonRow { flex-wrap: wrap; }
.sessionActions { justify-content: flex-end; align-self: end; margin-top: auto; }
.page button, .linkButton { border: none; border-radius: 4px; padding: 12px 16px; font: inherit; font-weight: 700; cursor: pointer; background: var(--primary); color: white; }
.secondaryButton { background: #edf5fc !important; color: var(--primary-strong) !important; border: 1px solid #d3e2ef !important; }
.ghostDangerButton { background: #fff5f5 !important; color: #b42318 !important; border: 1px solid #fecaca !important; }
.dangerButton { background: #d92d20 !important; color: white !important; border: 1px solid #d92d20 !important; }
.linkButton { display: inline-flex; align-items: center; justify-content: center; width: fit-content; }
.notice, .error { margin-bottom: var(--layout-gap); border-radius: var(--card-radius); padding: 16px 18px; display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.notice { background: #eef7ff; color: #15507f; border: 1px solid #cfe5f8; }
.error { background: #fff3f3; color: #a1163f; border: 1px solid #fecaca; }
.workspace { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: var(--layout-gap); }
.sidebar { position: sticky; top: 24px; align-self: start; padding: var(--panel-padding); }
.sidebarHeader { margin-bottom: 16px; }
.navItem { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 12px; padding: 14px 16px; border-radius: 4px; border: 1px solid #dbe6f1; background: #f8fbfe; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.navItem strong { font-size: 15px; }
.navIcon { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; background: #eef5fb; color: #3f658c; border: 1px solid #d7e4ef; }
.navIcon svg { width: 18px; height: 18px; }
.navItem[data-active="true"] { transform: translateY(-1px); background: linear-gradient(180deg,#eff6fd 0%,#e7f0f8 100%); border-color: #bdd5ea; box-shadow: 0 10px 24px rgba(31,96,157,.12); }
.navItem[data-active="true"] .navIcon { background: #dfeefe; color: #1f5b92; border-color: #c0d8ee; }
.mainContent { display: grid; gap: var(--layout-gap); }
.pageHeader { padding: 0; }
.pageHeader h2 { margin-top: 6px; font-size: 32px; }
.panel { display: grid; gap: 16px; }
.statsGrid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.statCard { background: #f7fafc; border: 1px solid #e1ebf4; border-radius: var(--card-radius); padding: var(--card-padding); }
.statCard span { display: block; color: var(--muted); margin-bottom: 8px; }
.statCard strong { font-size: 30px; }
.statCard[data-tone="success"] strong { color: var(--success); }
.statCard[data-tone="warning"] strong { color: var(--warning); }
.statCard[data-tone="danger"] strong { color: var(--danger); }
.reportGrid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.reportCard, .taskCard, .detailCard { background: #f9fbfd; border: 1px solid #e4edf5; border-radius: var(--card-radius); padding: var(--card-padding); }
.reportConclusion { line-height: 1.7; }
.metaList { gap: 8px; }
.metaList span { line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; }
.reportShot, .reportShotEmpty, .shotItem { display: block; min-height: 200px; border-radius: var(--card-radius); overflow: hidden; border: 1px solid #dfe8f2; background: #edf4fb; }
.reportShot img, .shotItem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reportShotEmpty { display: grid; place-items: center; color: var(--muted); }
.field { display: grid; gap: 8px; }
.fieldLabel { font-size: 14px; font-weight: 700; color: #18263f; }
.fieldHint { font-size: 12px; line-height: 1.55; }
.form input, .form textarea, .form select, .authCard input, .inlineField input, .inlineField select { width: 100%; border: 1px solid #cad9e7; border-radius: var(--control-radius); padding: 13px 14px; font: inherit; background: white; transition: border-color .2s ease, box-shadow .2s ease; }
.form input:focus, .form textarea:focus, .form select:focus, .authCard input:focus, .inlineField input:focus, .inlineField select:focus { outline: none; border-color: #5f9bd1; box-shadow: 0 0 0 4px rgba(81,143,192,.14); }
.form textarea { resize: vertical; }
.taskComposer { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: var(--layout-gap); }
.formGrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.formSection, .advancedSection { display: grid; gap: 16px; padding: var(--card-padding); border-radius: var(--card-radius); border: 1px solid #dbe7f1; background: linear-gradient(180deg,#fbfdff 0%,#f5f9fd 100%); }
.sectionHeader { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.sectionHeader h3 { margin: 0; font-size: 20px; }
.sectionHeader p { margin-top: 8px; color: var(--muted); line-height: 1.65; }
.tipPanel { display: grid; gap: 8px; padding: 16px; border-radius: var(--card-radius); background: #edf5fc; border: 1px solid #d4e4f1; color: #27405f; }
.tipPanel strong { font-size: 14px; }
.tipPanel p { line-height: 1.7; }
.advancedSection summary { cursor: pointer; font-weight: 700; color: #1d3654; list-style: none; }
.advancedSection summary::-webkit-details-marker { display: none; }
.advancedBody { display: grid; gap: 16px; margin-top: 8px; }
.strategyCard, .guideCard { display: grid; gap: 16px; border-radius: var(--card-radius); padding: var(--card-padding); border: 1px solid #dbe7f1; background: linear-gradient(180deg,#f9fbfd 0%,#f4f8fc 100%); }
.strategyTag { padding: 8px 12px; background: #e8f2fb; color: var(--primary-strong); border: 1px solid #d0e0ef; font-size: 12px; }
.switchField { padding-top: 4px; }
.switchField input { width: 20px; height: 20px; margin-top: 2px; }
.guideList { padding-left: 18px; line-height: 1.7; color: var(--muted); }
.toolbar { flex-wrap: wrap; }
.inlineField { display: grid; gap: 8px; min-width: 220px; }
.inlineField span { font-size: 13px; font-weight: 700; color: #22314f; }
.checkField { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--control-radius); border: 1px solid #d9e6f1; background: #f8fbfd; min-height: 54px; }
.checkField input { width: 16px; height: 16px; }
.checkField span { color: #22314f; font-size: 14px; font-weight: 600; }
.taskCard { display: grid; gap: 16px; height: 100%; }
.targetCardHeader { display: grid; gap: 16px; min-height: 100%; }
.taskTitleRow, .badgeRow, .actionRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.taskMain { display: grid; gap: 10px; min-width: 0; flex: 1; }
.targetTitleBlock { display: grid; gap: 6px; min-width: 0; }
.targetTitleBlock h3 { margin: 0; font-size: 18px; }
.endpointText { color: var(--muted); word-break: break-all; }
.badgeRow { flex-wrap: wrap; justify-content: flex-end; align-self: start; align-items: flex-start; }
.typeBadge, .metaChip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; }
.typeBadge { padding: 6px 10px; background: #eef5fb; color: #264669; border: 1px solid #d8e5f0; font-size: 12px; font-weight: 700; }
.actionRow { flex-wrap: wrap; justify-content: flex-end; }
.actionRow button, .actionRow .linkButton, .actionRow a { min-width: 96px; }
.actionFooter { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-end; gap: 12px; margin-top: auto; }
.actionFooter button, .actionFooter .linkButton, .actionFooter a { min-width: 96px; }
.metaChipList { display: flex; flex-wrap: wrap; gap: 10px; }
.metaChip { padding: 8px 12px; background: #f3f7fb; color: #4f6786; border: 1px solid #dfebf5; font-size: 13px; }
.metaChip strong { color: #22314f; font-size: 12px; }
.badge { padding: 6px 10px; font-size: 12px; text-transform: uppercase; background: #dbeafe; color: var(--primary-strong); align-self: flex-start; }
.badge[data-status="success"], .badge[data-status="enabled"] { background: #def5e8; color: var(--success); }
.badge[data-status="failed"], .badge[data-status="disabled"] { background: #fde2e5; color: var(--danger); }
.badge[data-status="partial"], .badge[data-status="running"] { background: #fff1da; color: var(--warning); }
.runWorkspace { display: grid; grid-template-columns: minmax(0,.88fr) minmax(380px,1.12fr); gap: var(--layout-gap); }
.runListPanel, .runDetailPanel { display: grid; gap: 16px; }
.runDetailPanel { position: sticky; top: 24px; align-self: start; }
.runList { display: grid; gap: 12px; max-height: 960px; overflow: auto; padding-right: 4px; }
.runSelectionBar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid #dce7f1; border-radius: var(--card-radius); background: rgba(247, 250, 252, 0.96); backdrop-filter: blur(8px); }
.selectionToggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #22314f; }
.selectionToggle input { width: 16px; height: 16px; }
.selectionMeta { color: var(--muted); font-size: 13px; }
.runPaginationBar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 2px 6px; }
.runPager { display: inline-flex; align-items: center; gap: 10px; }
.monthGroup { display: grid; gap: 10px; }
.monthHeader { width: 100%; border: 1px solid #dde7f0 !important; background: #f7fafc !important; color: #21324e !important; border-radius: var(--card-radius) !important; padding: 14px 16px !important; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.monthHeader div { display: grid; gap: 4px; text-align: left; }
.monthHeader span { color: var(--muted); font-size: 13px; }
.monthRunList { display: grid; gap: 12px; }
.runRow { border: 1px solid #e2ebf3; border-radius: var(--card-radius); background: #f8fbfd; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.runRow:hover, .runRow[data-active="true"] { transform: translateY(-1px); border-color: #bfd6ea; box-shadow: 0 10px 22px rgba(25,84,136,.09); background: white; }
.runList > button.runRow {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d9e6f2;
  border-radius: var(--card-radius);
  background: #f8fbfd;
  color: #1a2b44;
  text-align: left;
  align-items: start;
  cursor: pointer;
}
.runList > button.runRow:hover {
  background: #f2f7fc;
  border-color: #bdd3e8;
}
.runList > button.runRow[data-active="true"] {
  background: #e9f2fc;
  border-color: #9fc0df;
  color: #132b45;
}
.runSelectCell { padding: 16px 0 16px 16px; display: flex; align-items: start; }
.runSelectCell input { width: 16px; height: 16px; margin-top: 4px; }
.runRowButton { width: 100%; text-align: left; background: transparent !important; color: inherit !important; border: none !important; border-radius: 0 !important; padding: 16px 16px 16px 0 !important; display: flex; justify-content: space-between; gap: 14px; cursor: pointer; }
.runRowMain, .runRowSide { display: grid; gap: 10px; }
.runRowSide { align-content: start; color: var(--muted); white-space: nowrap; justify-items: end; }
.runMetaLine { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }
.runList > button.runRow .runRowHeader h4 { margin: 0; color: #15273f; }
.runList > button.runRow .runRowSide { color: #4b6687; }
.runList > button.runRow .metaList span,
.runList > button.runRow .runMetaLine { color: #506a89; }
.runList > button.runRow[data-active="true"] .runRowHeader h4 { color: #0f2a47; }
.runList > button.runRow[data-active="true"] .runRowSide,
.runList > button.runRow[data-active="true"] .metaList span,
.runList > button.runRow[data-active="true"] .runMetaLine { color: #355b86; }
.detailStack { display: grid; gap: 16px; }
.detailHeader { align-items: center; }
.keyValueGrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.keyValueGrid div { background: white; border: 1px solid #e3ebf3; border-radius: var(--control-radius); padding: 14px; display: grid; gap: 6px; }
.keyValueGrid span { color: var(--muted); font-size: 12px; }
.timeline { gap: 12px; }
.timelineItem { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 12px; padding: 14px; border-radius: var(--card-radius); background: white; border: 1px solid #e4ecf5; }
.timelineIndex { width: 36px; height: 36px; border-radius: 999px; background: #eaf2fb; color: var(--primary-strong); display: grid; place-items: center; font-weight: 800; }
.timelineBody { display: grid; gap: 8px; }
.timelineHeader { display: flex; justify-content: space-between; gap: 10px; }
.screenshotGrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.codeBlock { white-space: pre-wrap; word-break: break-word; padding: 16px; border-radius: var(--card-radius); background: #0f172a; color: #d8e8ff; font-family: var(--font-geist-mono), monospace; font-size: 12px; line-height: 1.75; max-height: 280px; overflow: auto; }
.emptyState { padding: 18px; border-radius: var(--card-radius); border: 1px dashed #c9d8e6; background: #f9fbfd; color: var(--muted); }
.dialogBackdrop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: rgba(15, 23, 42, 0.42); backdrop-filter: blur(4px); }
.dialogCard { width: min(100%, 560px); display: grid; gap: 20px; padding: 24px; border-radius: var(--panel-radius); border: 1px solid rgba(217,226,236,.95); background: rgba(255,255,255,.98); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22); }
.loadingDialog { width: min(100%, 420px); display: grid; justify-items: center; gap: 12px; padding: 24px; border-radius: var(--panel-radius); border: 1px solid rgba(217,226,236,.95); background: rgba(255,255,255,.98); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22); text-align: center; }
.loadingDialog p { color: var(--muted); line-height: 1.65; }
.loadingSpinner { width: 34px; height: 34px; border-radius: 999px; border: 3px solid rgba(11,107,203,.16); border-top-color: var(--primary); animation: loading-spin .9s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@media print {
  .sidebar, .authCard, .notice, .error, .toolbar, .buttonRow, .runListPanel { display: none !important; }
  .page { padding: 0; background: white; }
  .workspace, .runWorkspace, .reportGrid, .statsGrid { grid-template-columns: 1fr; }
  .panel, .brandCard, .runDetailPanel, .reportCard { box-shadow: none; break-inside: avoid; page-break-inside: avoid; }
}
@media (max-width: 1280px) {
  .reportGrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .runWorkspace { grid-template-columns: 1fr; }
  .runDetailPanel { position: static; }
}
@media (max-width: 1080px) {
  .page, .taskComposer, .formGrid, .statsGrid, .reportGrid, .screenshotGrid, .keyValueGrid { grid-template-columns: 1fr; }
  .page { padding: 20px; }
  .cardHeader, .pageHeader, .reportHeader, .detailHeader, .toolbar, .buttonRow, .targetCardHeader, .taskTitleRow, .sessionMeta, .switchField, .timelineHeader, .runSelectionBar, .runPaginationBar { flex-direction: column; align-items: stretch; }
  .badgeRow, .actionRow { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .topbar, .workspace { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
