:root {
  --bg: #eef2f7;
  --bg2: #ffffff;
  --card: rgba(255,255,255,0.92);
  --card-strong: #ffffff;
  --line: #d9e2ee;
  --text: #111827;
  --muted: #64748b;
  --blue: #155eef;
  --blue2: #0f4ed8;
  --teal: #0f8b8d;
  --green: #059669;
  --red: #dc2626;
  --amber: #b7791f;
  --ink: #0b1220;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.06);
  --radius-xl: 12px;
  --radius-lg: 8px;
  --radius-md: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(15, 139, 141, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(15, 139, 141, 0.05) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #eef2f7 0%, #f8fafc 42%, #ffffff 100%);
  background-size: 36px 36px, 36px 36px, auto;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 22px 56px;
}

.topbar {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: #a7f3d0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 16px;
  color: #64748b;
  margin-top: 8px;
}

h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
}

.header-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 188px;
  margin-bottom: 18px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(15,139,141,0.48), transparent 34%),
    linear-gradient(90deg, #0b1220 0%, #101f3c 54%, #14353f 100%);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  color: #fff;
}

.header-row::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 100%);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
  opacity: 0.7;
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
}

.user-box {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-card {
  min-width: 210px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.user-label {
  font-size: 13px;
  color: #a6b6cf;
  margin-bottom: 6px;
}

.user-name {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.user-role {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 14px;
}

[data-admin-only] {
  display: none;
}

body.is-admin [data-admin-only] {
  display: block;
}

.panel {
  position: relative;
  overflow: hidden;
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
  padding: 20px;
  margin-bottom: 16px;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), #155eef 52%, #7c3aed);
  opacity: 0.88;
}

.panel::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 220px;
  height: 96px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.1), transparent 58%),
    linear-gradient(90deg, rgba(21, 94, 239, 0.08), transparent);
}

.panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2,
.home-detail-panel summary h2 {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.panel-head h2::before,
.home-detail-panel summary h2::before {
  content: "";
  width: 11px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--blue));
  box-shadow: 0 10px 20px rgba(15, 139, 141, 0.22);
}

.panel-head span {
  color: #475569;
  font-size: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}

.home-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-entry-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-items: start;
  gap: 10px;
  min-height: 160px;
  padding: 20px 20px 52px;
  border: 1px solid #d9e2ee;
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15,23,42,0.04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.home-entry-card-wide {
  grid-column: span 2;
}

.home-entry-card-detail {
  align-content: start;
  min-height: 0;
}

.home-entry-card-detail > summary {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-items: start;
  gap: 10px;
  min-height: 108px;
  padding-bottom: 32px;
  cursor: pointer;
  list-style: none;
}

.home-entry-card-detail > summary::-webkit-details-marker {
  display: none;
}

.home-entry-card-detail > summary::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: #0f766e;
}

.home-entry-card-detail:nth-child(6) > summary::before {
  background: #155eef;
}

.home-entry-card-detail > summary strong {
  padding-right: 50px;
}

.home-entry-card-body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.home-entry-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 139, 141, 0.2);
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.14), rgba(255,255,255,0.08)),
    #f8fafc;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.7);
}

.home-entry-card::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--teal);
}

.home-entry-card:nth-child(2)::before {
  background: var(--blue);
}

.home-entry-card:nth-child(3)::before {
  background: var(--amber);
}

.home-entry-card:nth-child(4)::before {
  background: #7c3aed;
}

.home-entry-card:nth-child(5)::before {
  background: #0f766e;
}

.home-entry-card:nth-child(6)::before {
  background: #155eef;
}

.home-entry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 139, 141, 0.32);
  box-shadow: 0 20px 42px rgba(15,23,42,0.11);
}

.home-entry-card strong {
  padding-right: 50px;
  font-size: 20px;
  font-weight: 950;
}

.home-entry-card span {
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.home-entry-card em {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: var(--teal);
  font-style: normal;
  font-size: 14px;
  font-weight: 950;
}

.home-entry-card-detail > summary em {
  left: 0;
  bottom: 0;
}

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

.home-status-grid.is-single {
  grid-template-columns: 1fr;
}

.home-running-panel {
  padding: 20px;
}

.home-running-panel .home-status-block {
  background: #fbfdff;
}

.home-status-block {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 18px;
  border: 1px solid #cfdbea;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.06), transparent 42%),
    #fbfdff;
}

.home-status-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--teal), #155eef);
}

.home-block-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.home-block-head h3 {
  font-size: 18px;
}

.home-block-head span {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.home-compact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.home-compact-list.task-grid {
  grid-template-columns: 1fr;
}

.home-compact-list .item {
  position: relative;
  padding: 14px 14px 14px 16px;
  border-radius: var(--radius-lg);
  border-color: #d7e3f0;
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.home-compact-list .item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: var(--teal);
}

.home-compact-list h3 {
  font-size: 16px;
  margin: 0;
}

.home-compact-list .job-sub-id,
.home-compact-list .meta,
.home-compact-list .summary-box {
  display: none;
}

.home-status-panel .home-compact-list .meta {
  display: grid;
}

.home-status-panel .home-compact-list .executor-current-task-line {
  justify-content: flex-start;
}

.home-running-panel .home-compact-list .job-sub-id,
.home-running-panel .home-compact-list .summary-box {
  display: block;
}

.home-running-panel .home-compact-list .summary-box {
  margin-top: 12px;
}

.home-detail-panel {
  padding: 0;
}

.home-entry-manage-panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #d9e2ee;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.07), transparent 40%),
    #ffffff;
}

.home-entry-manage-panel summary {
  list-style: none;
  cursor: pointer;
}

.home-entry-manage-panel summary::-webkit-details-marker {
  display: none;
}

.home-entry-manage-panel summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-entry-manage-panel summary h2 {
  font-size: 22px;
}

.home-entry-manage-panel summary h2::before {
  content: "";
  width: 10px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--blue));
  box-shadow: 0 10px 20px rgba(15, 139, 141, 0.18);
}

.home-entry-manage-panel summary span {
  color: #475569;
  font-size: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}

.home-entry-manage-panel[open] > :not(summary) {
  margin-top: 14px;
}

.home-entry-subpanels {
  display: grid;
  gap: 14px;
}

.home-entry-subpanel {
  border: 1px solid #d9e2ee;
  border-radius: var(--radius-lg);
  background: #fbfdff;
  padding: 16px;
}

.executor-job-list {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
}

.executor-job-list .section-mini-title {
  margin-bottom: 10px;
}

.executor-job-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d9e2ee;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.executor-job-item + .executor-job-item {
  margin-top: 10px;
}

.executor-job-item h4 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
}

.executor-job-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.compact-summary {
  margin: 0;
  padding: 10px;
}

.executor-job-log summary {
  color: var(--teal);
  font-weight: 900;
  cursor: pointer;
}

.compact-actions {
  margin-top: 2px;
}

.compact-actions button {
  padding: 9px 12px;
  font-size: 13px;
}

.compact-empty {
  padding: 12px;
  font-size: 14px;
}

.executor-current-task-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.executor-current-task-line span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stop-task-button {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 8px 12px;
  font-size: 13px;
  box-shadow: none;
}

.home-detail-panel summary {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 20px;
  color: var(--text);
}

.home-detail-panel summary::-webkit-details-marker {
  display: none;
}

.home-detail-panel summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.home-detail-panel summary h2 {
  font-size: 24px;
}

.home-detail-panel summary span {
  color: #475569;
  font-size: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}

.home-detail-panel[open] {
  padding-bottom: 18px;
}

.home-detail-panel[open] > :not(summary) {
  margin-left: 18px;
  margin-right: 18px;
}

.home-detail-panel[open] > summary {
  margin-bottom: 4px;
}

.main-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.28fr;
  gap: 22px;
  align-items: start;
}

.item,
.executor-card,
.audit-item,
.user-item-card,
.account-create-box,
.account-list-box {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.04);
}

.item:hover,
.executor-card:hover,
.audit-item:hover,
.user-item-card:hover,
.account-create-box:hover,
.account-list-box:hover {
  border-color: #c4d2e4;
  box-shadow: 0 14px 30px rgba(15,23,42,0.07);
}

.meta {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px 18px;
  align-items: start;
}

.k {
  color: var(--muted);
  font-weight: 800;
}

.v {
  color: var(--text);
  font-weight: 800;
  word-break: break-word;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.status-wait {
  background: #fef3c7;
  color: #92400e;
}

.status-run {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-done,
.status-idle {
  background: #dcfce7;
  color: #166534;
}

.status-fail {
  background: #fee2e2;
  color: #991b1b;
}

.executor-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.executor-status::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: currentColor;
}

.executor-status.is-idle {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}

.executor-status.is-busy {
  border-color: #fed7aa;
  background: #ffedd5;
  color: #9a3412;
}

.executor-status.is-stopping {
  border-color: #fde68a;
  background: #fef3c7;
  color: #92400e;
}

.executor-status.is-offline,
.executor-status.is-error {
  border-color: #fecaca;
  background: #fee2e2;
  color: #991b1b;
}

.executor-status.is-unknown {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.executable-task-actions {
  justify-content: space-between;
  align-items: center;
}

.local-executor-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.local-executor-toolbar label {
  display: grid;
  gap: 8px;
  font-weight: 900;
  color: var(--muted);
}

.local-executor-toolbar input {
  width: 100%;
}

.local-executor-card {
  border-color: #cbd5e1;
  background: #f8fafc;
}

button {
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, var(--teal), #0b7375);
  box-shadow: 0 10px 24px rgba(15, 139, 141, 0.2);
  transition: transform .16s ease, box-shadow .16s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 139, 141, 0.26);
}

button.gray {
  background: #475569;
  box-shadow: none;
}

button.danger {
  background: linear-gradient(180deg, #dc2626, #b91c1c);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.16);
}

.button-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius-md);
  padding: 11px 16px;
  background: linear-gradient(180deg, var(--teal), #0b7375);
  box-shadow: 0 10px 24px rgba(15, 139, 141, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button-like.gray {
  background: #475569;
  box-shadow: none;
}

.console-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  background: linear-gradient(180deg, var(--teal), #0b7375);
  box-shadow: 0 10px 24px rgba(15, 139, 141, 0.2);
}

.summary-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.summary-title {
  color: #64748b;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
}

.summary-text,
.log-text,
.audit-detail {
  white-space: pre-wrap;
  line-height: 1.72;
  color: #334155;
}

details {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
  color: var(--blue2);
}

.log-text {
  padding: 0 16px 16px;
  font-size: 14px;
}

.empty,
.readonly-tip {
  color: #64748b;
  padding: 16px 4px;
}

.executor-card-top,
.task-card-top,
.job-card-top,
.user-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.queue-job-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.cancel-queue-button {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: none;
}

.executor-title {
  font-size: 22px;
  font-weight: 950;
  margin-bottom: 8px;
}

.executor-sub,
.task-id-row,
.job-sub-id,
.user-item-sub,
.section-mini-desc {
  color: #64748b;
  font-size: 14px;
}

.task-card h3,
.job-card h3 {
  margin-bottom: 8px;
}

.task-note-box {
  margin-top: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}

.task-note-title {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.task-note-text {
  color: #334155;
  line-height: 1.7;
  font-weight: 700;
}

.amazon-panel {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(246,249,252,0.88));
}

.product-launch-panel {
  background: rgba(255,255,255,0.86);
}

.product-launch-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.72);
}

.product-launch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.product-launch-list {
  display: block;
  margin-top: 16px;
}

.product-launch-grid-shell {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,0.06);
}

.product-launch-grid-scroll {
  overflow: auto;
  max-height: 70vh;
}

.product-launch-scrollbar-top {
  overflow-x: auto;
  overflow-y: hidden;
  height: 18px;
  border-bottom: 1px solid rgba(210, 210, 215, 0.9);
  background: rgba(245,245,247,0.98);
}

.product-launch-scrollbar-spacer {
  height: 1px;
}

.product-launch-grid-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.product-launch-group-head th,
.product-launch-sub-head th {
  position: sticky;
  z-index: 2;
  top: 0;
  backdrop-filter: saturate(180%) blur(18px);
}

.product-launch-group-head th {
  padding: 15px 16px;
  border-right: 1px solid rgba(210, 210, 215, 0.95);
  border-bottom: 1px solid rgba(210, 210, 215, 0.95);
  background: rgba(29, 29, 31, 0.96);
  color: #fff;
  font-size: 14px;
  font-weight: 760;
  text-align: center;
}

.product-launch-group-head th:not(.sticky-task-head) {
  box-shadow: inset 0 -3px 0 var(--blue);
}

.product-launch-group-head th:last-child {
  border-right: 0;
}

.product-launch-sub-head th {
  top: 49px;
  min-width: 160px;
  padding: 12px 14px;
  border-top: 1px solid rgba(210, 210, 215, 0.9);
  border-right: 1px solid rgba(210, 210, 215, 0.9);
  border-bottom: 1px solid rgba(210, 210, 215, 0.9);
  background: rgba(255, 255, 255, 0.98);
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.product-launch-sub-head th:last-child {
  border-right: 0;
}

.product-launch-table-row td,
.product-launch-detail-row td {
  border-right: 1px solid rgba(210, 210, 215, 0.9);
  border-bottom: 1px solid rgba(210, 210, 215, 0.9);
  vertical-align: top;
}

.product-launch-table-row td:last-child,
.product-launch-detail-row td:last-child {
  border-right: 0;
}

.product-launch-table-row:hover td {
  background: #f5f5f7;
}

.product-launch-table-row:nth-child(4n + 1) td {
  background: rgba(255,255,255,0.9);
}

.product-launch-table-row:nth-child(4n + 3) td {
  background: rgba(245,245,247,0.88);
}

.product-launch-cell {
  min-width: 160px;
  padding: 12px 14px;
}

.product-launch-cell.cell-key {
  min-width: 280px;
}

.sticky-task-head {
  left: 0;
  min-width: 210px;
}

.product-launch-group-head .sticky-task-head {
  z-index: 4;
  background: rgba(29, 29, 31, 0.98);
  color: #fff;
}

.sticky-task-cell {
  position: sticky;
  left: 0;
  z-index: 1;
  background: rgba(255,255,255,0.98) !important;
  box-shadow: 10px 0 18px rgba(0,0,0,0.04);
}

.product-launch-cell.cell-audit {
  min-width: 190px;
}

.product-launch-cell.cell-links {
  min-width: 220px;
}

.cell-text,
.cell-note {
  color: #334155;
  font-size: 14px;
  line-height: 1.68;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cell-note {
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}

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

.cell-title {
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
}

.cell-subtitle {
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 900;
}

.cell-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cell-meta-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.95);
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.cell-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.audit-cell-box {
  display: grid;
  gap: 10px;
}

.audit-state {
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.audit-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-action {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(37,99,235,0.18);
}

.product-launch-inline-details {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(245,248,252,0.92);
}

.product-launch-inline-details summary {
  padding: 12px 14px;
  font-size: 13px;
}

.product-launch-inline-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 14px 14px;
}

.product-launch-detail-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.84);
}

.product-launch-detail-title {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.product-launch-detail-list {
  display: grid;
  gap: 10px;
}

.product-launch-detail-list div {
  display: grid;
  gap: 4px;
}

.product-launch-detail-list span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.product-launch-detail-list strong,
.product-launch-detail-log p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-launch-form-shell,
.product-launch-task-row,
.product-launch-requirements-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
}

.product-launch-form-shell {
  margin-top: 16px;
}

.product-launch-form-head,
.product-launch-result-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.product-launch-history {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.product-launch-history-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.product-launch-history-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.product-launch-history-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(245,245,247,0.78);
}

.product-launch-history-item strong,
.product-launch-history-item span {
  display: block;
}

.product-launch-history-item strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.product-launch-history-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.product-launch-form-grid label,
.utility-form-grid label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.product-launch-form-grid label.full-row,
.utility-form-grid label.full-row {
  grid-column: 1 / -1;
}

.product-launch-form-grid input,
.product-launch-form-grid textarea,
.utility-form-grid input,
.utility-form-grid textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.78);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.product-launch-form-grid textarea,
.utility-form-grid textarea {
  min-height: 88px;
  resize: vertical;
}

.product-launch-form-actions {
  margin-top: 16px;
}

.product-launch-task-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.product-launch-task-id {
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.product-launch-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.product-launch-status-group {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.product-launch-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.product-launch-task-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(248,251,255,0.9);
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.product-launch-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-launch-module-card,
.product-launch-requirements-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(248,251,255,0.82);
}

.product-launch-module-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.product-launch-module-head strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
}

.product-launch-module-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.result-row {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
}

.result-row:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.result-row span {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.result-row strong {
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-launch-audit p {
  margin: 0 0 8px;
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.product-launch-evidence {
  display: grid;
  gap: 6px;
}

.product-launch-evidence.compact {
  gap: 4px;
}

.product-launch-evidence a {
  color: var(--blue2);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.product-launch-action-row {
  margin-top: 14px;
}

.product-launch-audit {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.utility-panel {
  margin-bottom: 28px;
}

.utility-entry-layout {
  display: grid;
  gap: 16px;
}

.utility-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
}

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

.utility-result-box {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(248,251,255,0.82);
  overflow: hidden;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.utility-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.utility-result-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.utility-result-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.utility-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.utility-preview-card,
.utility-signal-block {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.82);
}

.utility-preview-image,
.utility-preview-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eef4fb;
}

.utility-preview-image {
  display: block;
  object-fit: cover;
}

.utility-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.utility-error-text {
  color: #b91c1c;
}

.muted-inline {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .product-launch-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .product-launch-form-grid,
  .product-launch-history-list,
  .requirement-grid,
  .product-launch-inline-detail-grid,
  .utility-form-grid,
  .utility-entry-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .utility-preview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-launch-head,
  .amazon-entry-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-launch-form-head,
  .product-launch-result-head,
  .product-launch-history-head {
    flex-direction: column;
  }

  .product-launch-status-group {
    justify-items: start;
  }
}

.amazon-tool-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.amazon-entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.72);
}

.amazon-entry-layout .section-mini-desc {
  max-width: 720px;
  color: #475569;
  line-height: 1.7;
  margin-top: 8px;
}

.amazon-entry-actions {
  display: flex;
  justify-content: flex-end;
}

.amazon-tool-summary {
  background: #0f172a;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 100%;
}

.amazon-tool-summary .section-mini-desc {
  color: #cbd5e1;
  line-height: 1.65;
  margin-top: 8px;
}

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

.amazon-stat {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 14px;
}

.amazon-stat-value {
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

.amazon-stat-label {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  margin-top: 8px;
}

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

.amazon-tool-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.amazon-tool-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.amazon-tool-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}

.amazon-command-box {
  margin-top: 14px;
}

.amazon-command-box textarea {
  min-height: 92px;
  font-size: 14px;
}

.audit-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-weight: 900;
}

.audit-line-sub {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.audit-user,
.audit-action {
  color: #0f172a;
}

.audit-role,
.audit-target {
  color: #475569;
}

/* 账号管理 */
.account-admin-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

.account-create-box {
  position: sticky;
  top: 18px;
}

.account-list-box {
  min-height: 200px;
}

.section-mini-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

label span,
.mini-label {
  display: block;
  margin-bottom: 8px;
  color: #475569;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #dbe4f0;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 14px 14px;
  font-size: 15px;
  outline: none;
  transition: all .18s ease;
  font-family: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #5eead4;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15,139,141,0.12);
}

.user-item-card {
  padding: 18px 18px 20px;
}

.user-item-card + .user-item-card {
  margin-top: 16px;
}

.user-item-name {
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 4px;
}

.user-manage-grid {
  display: grid;
  grid-template-columns: 220px 180px 1fr;
  gap: 16px;
  margin-top: 16px;
  align-items: end;
}

.user-manage-block {
  min-width: 0;
}

.user-password-block {
  min-width: 260px;
}

/* 登录页 */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.login-shell {
  width: 100%;
  max-width: 1220px;
}

.login-layout {
  display: grid;
  grid-template-columns: 1.1fr 420px;
  gap: 24px;
  align-items: stretch;
}

.login-brand-card,
.login-form-card {
  background: var(--card-strong);
  border: 1px solid rgba(255,255,255,0.88);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-brand-card {
  padding: 42px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-brand-top {
  font-size: 18px;
  color: #475569;
  margin-bottom: 18px;
}

.login-brand-title {
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: 0;
  margin: 0 0 22px;
  font-weight: 950;
}

.login-brand-title span {
  display: inline-block;
}

.login-brand-desc {
  margin: 0 0 28px;
  font-size: 22px;
  line-height: 1.5;
  color: #334155;
  max-width: 720px;
}

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

.login-feature-item {
  background: #f8fbff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 18px;
  font-weight: 900;
  color: #0f172a;
}

.login-form-card {
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-head {
  margin-bottom: 20px;
}

.login-form-mini {
  color: #64748b;
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: 700;
}

.login-form-head h2 {
  margin-bottom: 8px;
}

.login-form-head p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}

.login-form .field + .field {
  margin-top: 16px;
}

.login-msg {
  min-height: 24px;
  margin: 12px 0 4px;
  color: #dc2626;
  font-weight: 800;
}

.login-submit {
  width: 100%;
  margin-top: 6px;
  padding: 16px 20px;
  border-radius: 18px;
  font-size: 18px;
}

/* 响应式 */
@media (max-width: 1180px) {
  .main-grid,
  .account-admin-layout,
  .amazon-tool-layout,
  .user-manage-grid,
  .login-layout {
    grid-template-columns: 1fr;
  }

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

  .account-create-box {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-row {
    flex-direction: column;
  }

  .user-box {
    width: 100%;
    justify-content: flex-start;
  }

  .home-entry-grid,
  .home-status-grid {
    grid-template-columns: 1fr;
  }

  .home-entry-card {
    min-height: 132px;
  }

  .home-detail-panel summary > div {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 36px;
    letter-spacing: 0;
  }

  .login-brand-title {
    font-size: 54px;
  }

  .login-brand-desc {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 18px 12px 42px;
  }

  .login-body {
    padding: 14px;
  }

  .login-brand-card,
  .login-form-card {
    padding: 24px 18px;
  }

  .login-brand-title {
    font-size: 42px;
    line-height: 1.02;
  }

  .meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .login-feature-grid {
    grid-template-columns: 1fr;
  }
}


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

.compact-task-card {
  height: 100%;
}

.compact-task-card .task-note-box {
  min-height: 104px;
}

.compact-meta {
  margin-top: 14px;
}

.compact-meta .k,
.compact-meta .v {
  font-size: 14px;
}

.executor-meta {
  margin-top: 14px;
}

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

@media (max-width: 760px) {
  .task-grid {
    grid-template-columns: 1fr;
  }
}


.top-work-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.executor-side-panel {
  position: sticky;
  top: 18px;
}

.compact-panel .panel-head h2 {
  font-size: 24px;
}

.compact-panel .panel-head span {
  font-size: 13px;
}

.compact-panel .executor-card {
  padding: 18px 18px 16px;
}

.compact-panel .executor-title {
  font-size: 20px;
  margin-bottom: 4px;
}

.compact-panel .executor-sub {
  font-size: 13px;
}

.compact-panel .executor-meta {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 12px;
  margin-top: 16px;
}

.compact-panel .executor-meta .k,
.compact-panel .executor-meta .v {
  font-size: 14px;
}

.compact-panel .executor-card-top {
  align-items: center;
}

@media (max-width: 1180px) {
  .top-work-grid {
    grid-template-columns: 1fr;
  }

  .executor-side-panel {
    position: static;
  }
}

.top-work-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}

.executor-side-panel {
  position: sticky;
  top: 18px;
}

.compact-panel .executor-card {
  padding: 20px 20px 18px;
}

.compact-panel .executor-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.compact-panel .executor-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.compact-panel .executor-sub {
  font-size: 13px;
  color: #667085;
  margin-top: 6px;
}

.compact-panel .executor-meta {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px 14px;
  margin-top: 10px;
}

.compact-panel .executor-meta .k {
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.compact-panel .executor-meta .v {
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.task-create-wrap {
  max-width: 980px;
}

.task-create-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
}

.task-create-grid .full-row {
  grid-column: 1 / -1;
}

.task-create-grid textarea {
  min-height: 120px;
}

#task-admin-list .user-item-card {
  margin-bottom: 18px;
}

#task-admin-list .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

#task-admin-list textarea {
  min-height: 120px;
}

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

.compact-task-card {
  height: 100%;
}

.compact-task-card .task-note-box {
  min-height: 104px;
}

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

  #task-admin-list .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .top-work-grid {
    grid-template-columns: 1fr;
  }

  .executor-side-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .task-create-grid,
  .amazon-tool-grid,
  .task-grid {
    grid-template-columns: 1fr;
  }
}

.top-work-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}

.executor-side-panel {
  position: sticky;
  top: 18px;
}

.compact-panel .executor-card {
  padding: 20px 20px 18px;
}

.compact-panel .executor-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.compact-panel .executor-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.compact-panel .executor-sub {
  font-size: 13px;
  color: #667085;
  margin-top: 6px;
}

.compact-panel .executor-meta {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px 14px;
  margin-top: 10px;
}

.compact-panel .executor-meta .k {
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.compact-panel .executor-meta .v {
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.task-create-wrap {
  max-width: 980px;
}

.task-create-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
}

.task-create-grid .full-row {
  grid-column: 1 / -1;
}

.task-create-grid textarea {
  min-height: 120px;
}

#task-admin-list .user-item-card {
  margin-bottom: 18px;
}

#task-admin-list .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

#task-admin-list textarea {
  min-height: 120px;
}

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

.compact-task-card {
  height: 100%;
}

.compact-task-card .task-note-box {
  min-height: 104px;
}

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

  #task-admin-list .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .top-work-grid {
    grid-template-columns: 1fr;
  }

  .executor-side-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .task-create-grid,
  .task-grid,
  .local-executor-toolbar {
    grid-template-columns: 1fr;
  }
}

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

.executor-card {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.executor-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.executor-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.executor-sub {
  font-size: 13px;
  color: #667085;
  margin-top: 6px;
}

.executor-meta {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px 12px;
  margin-top: 10px;
}

.executor-meta .k {
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.executor-meta .v {
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

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

.compact-task-card {
  height: 100%;
}

.compact-task-card .task-note-box {
  min-height: 104px;
}

.task-create-wrap {
  max-width: 100%;
}

.task-create-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
}

.task-create-grid .full-row {
  grid-column: 1 / -1;
}

.task-create-grid textarea {
  min-height: 120px;
}

#task-admin-list .user-item-card,
#user-list .user-item-card,
#job-list .job-card,
#audit-list .audit-item {
  margin-bottom: 18px;
}

@media (max-width: 1280px) {
  .executor-grid,
  .task-grid,
  .task-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .executor-grid,
  .task-grid,
  .task-create-grid {
    grid-template-columns: 1fr;
  }
}

/* 2026-05-01: calm tech console refresh */
:root {
  --bg: #eef2f7;
  --bg2: #ffffff;
  --card: #ffffff;
  --card-strong: #ffffff;
  --line: #d9e2ee;
  --text: #111827;
  --muted: #64748b;
  --blue: #155eef;
  --blue2: #0f4ed8;
  --teal: #0f8b8d;
  --green: #059669;
  --red: #dc2626;
  --amber: #b7791f;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --radius-xl: 12px;
  --radius-lg: 8px;
  --radius-md: 8px;
}

body {
  background:
    linear-gradient(90deg, rgba(15, 139, 141, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(15, 139, 141, 0.05) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #eef2f7 0%, #f8fafc 42%, #ffffff 100%);
  background-size: 36px 36px, 36px 36px, auto;
}

.wrap {
  max-width: 1280px;
  padding: 28px 22px 56px;
}

.header-row {
  position: relative;
  align-items: center;
  margin-bottom: 18px;
  min-height: 188px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(15,139,141,0.48), transparent 34%),
    linear-gradient(90deg, #0b1220 0%, #101f3c 54%, #14353f 100%);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  color: #fff;
}

.header-row::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 100%);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
  opacity: 0.7;
}

.hero,
.user-box {
  position: relative;
  z-index: 1;
}

.topbar {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 900;
}

h2 {
  font-size: 24px;
  letter-spacing: 0;
  font-weight: 900;
}

h3 {
  font-size: 16px;
  letter-spacing: 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: none;
}

.panel-head {
  min-height: 34px;
  margin-bottom: 14px;
}

.panel-head span,
.status {
  min-width: auto;
  border-radius: 999px;
  padding: 5px 10px;
  background: #eef5fc;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.user-card,
.item,
.executor-card,
.audit-item,
.user-item-card,
.account-create-box,
.account-list-box,
.amazon-entry-layout {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15,23,42,0.04);
}

.user-card {
  min-width: 210px;
  padding: 16px 18px;
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  box-shadow: none;
}

.user-label {
  color: #a6b6cf;
}

.user-name {
  color: #fff;
}

.user-role {
  color: #cbd5e1;
}

.user-box {
  gap: 10px;
}

.global-user-menu {
  position: fixed;
  top: 10px;
  right: 22px;
  z-index: 1000;
  display: inline-flex;
  align-items: flex-start;
  font-family: inherit;
}

.global-user-menu::after {
  position: absolute;
  top: 100%;
  right: 0;
  width: 196px;
  height: 24px;
  content: "";
}

.global-user-trigger {
  min-width: 108px;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  background: rgba(15, 139, 141, 0.94);
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.global-user-menu:hover .global-user-trigger,
.global-user-trigger:focus-visible {
  background: #0f766e;
}

.global-user-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  display: grid;
  width: 176px;
  padding: 8px;
  border: 1px solid #d7e3ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.global-user-menu:hover .global-user-dropdown,
.global-user-menu:focus-within .global-user-dropdown,
.global-user-menu.is-open .global-user-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.global-user-meta,
.global-user-role {
  padding: 8px 10px 10px;
  border-bottom: 1px solid #e7eef6;
  color: #5f6f85;
  font-size: 13px;
  font-weight: 850;
}

.global-user-meta {
  display: grid;
  gap: 4px;
  line-height: 1.35;
}

.global-user-dropdown a,
.global-user-dropdown button {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #13243a;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.global-user-dropdown a:hover,
.global-user-dropdown button:hover {
  background: #eef8f7;
  color: #0f766e;
}

body.has-global-user-menu .niche-topbar {
  padding-right: 170px;
}

body.has-global-user-menu .niche-top-actions,
body.has-global-user-menu .niche-topbar > .niche-home-link {
  margin-right: 8px;
}

.simple-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.simple-page-head h1 {
  margin: 0;
  color: #0f172a;
}

.account-settings-panel {
  max-width: 760px;
}

.account-profile-line {
  display: grid;
  gap: 6px;
}

.account-profile-line strong {
  color: #0f172a;
  font-size: 22px;
}

.account-profile-line span {
  color: #64748b;
  font-weight: 700;
}

.account-settings-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.account-settings-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 850;
}

.account-settings-form input {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d7e3ef;
  border-radius: 6px;
  font: inherit;
}

.account-settings-message {
  min-height: 22px;
  margin-top: 12px;
  font-weight: 850;
}

.account-settings-message.is-success {
  color: #0f8b5f;
}

.account-settings-message.is-error {
  color: #b42318;
}

.selection-favorites-panel {
  padding: 20px;
  border: 1px solid #d7e3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.favorites-list {
  display: grid;
  gap: 12px;
}

.favorite-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e3ebf3;
  border-radius: 8px;
  background: #fbfdff;
}

.favorite-thumb {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.favorite-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.favorite-title {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  text-decoration: none;
}

.favorite-meta {
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.favorite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.favorite-actions a,
.favorite-actions button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #bfd0e2;
  border-radius: 6px;
  background: #fff;
  color: #0f766e;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

button,
.console-link-button {
  min-height: 42px;
  border-radius: var(--radius-md);
  padding: 11px 16px;
  background: linear-gradient(180deg, var(--teal), #0b7375);
  box-shadow: 0 10px 24px rgba(15, 139, 141, 0.2);
  font-size: 14px;
  font-weight: 800;
}

button.gray {
  background: #475569;
  box-shadow: none;
}

button.danger {
  background: linear-gradient(180deg, #dc2626, #b91c1c);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.16);
}

.executor-grid,
.task-grid,
.amazon-tool-grid {
  gap: 12px;
}

.executor-card,
.compact-task-card,
.job-card {
  padding: 15px;
}

.executor-title,
.user-item-name {
  font-size: 16px;
  font-weight: 800;
}

.meta {
  gap: 8px 12px;
}

.k,
.executor-meta .k,
.summary-title,
.task-note-title {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.v,
.executor-meta .v,
.task-note-text {
  font-size: 13px;
  font-weight: 700;
}

.summary-box,
.task-note-box {
  border: 1px solid #e4ebf3;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
}

.amazon-panel {
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.amazon-entry-layout {
  padding: 18px;
}

.amazon-entry-layout .section-mini-title {
  font-size: 18px;
  color: #111827;
}

.amazon-entry-layout .section-mini-desc {
  color: #64748b;
}

input,
textarea,
select {
  border-radius: 10px;
}

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

  h1 {
    font-size: 28px;
  }

  .amazon-entry-layout {
    grid-template-columns: 1fr;
  }

  .amazon-entry-actions {
    justify-content: flex-start;
  }

}

/* 2026-05-26 homepage restyle: quiet operations console */
body {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.wrap {
  max-width: 1240px;
  padding-top: 24px;
}

.header-row {
  min-height: 168px;
  border: 1px solid #d8e0ea;
  background:
    linear-gradient(90deg, #ffffff 0%, #f9fbfd 58%, #edf5f6 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
  color: var(--text);
}

.header-row::after,
.panel::before,
.panel::after,
.home-entry-card::after,
.home-entry-card-detail::after,
.home-status-block::before,
.home-compact-list .item::before {
  display: none;
}

.topbar {
  border-color: #d6e4e4;
  background: #edf7f6;
  color: #0f766e;
}

.user-card {
  background: #ffffff;
  border-color: #d8e0ea;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  backdrop-filter: none;
}

.user-label,
.user-role {
  color: #64748b;
}

.user-name {
  color: #0f172a;
}

.panel {
  overflow: visible;
  border-color: #d8e0ea;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.panel-head h2,
.home-detail-panel summary h2 {
  gap: 10px;
}

.panel-head h2::before,
.home-detail-panel summary h2::before {
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: #0f8b8d;
  box-shadow: none;
}

.panel-head span,
.home-detail-panel summary span {
  border-color: #d8e0ea;
  background: #f8fafc;
  color: #56667a;
}

.home-entry-card {
  min-height: 148px;
  border-color: #d8e0ea;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: none;
}

.home-entry-card::before {
  width: 42px;
  height: 3px;
}

.home-entry-card-detail::before {
  display: none;
}

.home-entry-card-detail > summary::before {
  width: 42px;
  height: 3px;
}

.home-entry-card:hover {
  transform: translateY(-1px);
  border-color: #9cc8c8;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.home-entry-card strong {
  padding-right: 0;
}

.home-status-block,
.home-running-panel .home-status-block {
  border-color: #d8e0ea;
  background: #ffffff;
}

.home-compact-list .item,
.item,
.executor-card,
.audit-item,
.user-item-card,
.account-create-box,
.account-list-box {
  border-color: #d8e0ea;
  background: #ffffff;
  box-shadow: none;
}

.home-compact-list .item:hover,
.item:hover,
.executor-card:hover,
.audit-item:hover,
.user-item-card:hover,
.account-create-box:hover,
.account-list-box:hover {
  border-color: #b8c7d8;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.home-detail-panel summary {
  cursor: default;
}

.home-detail-panel[open] {
  padding-bottom: 20px;
}

.home-detail-panel[open] > :not(summary) {
  margin-left: 20px;
  margin-right: 20px;
}
