:root {
  color-scheme: light;
  --ink: #19253b;
  --muted: #54637b;
  --line: #dce3ed;
  --canvas: #f4f6fa;
  --brand: #244fc2;
  --nav: #14243d;
  --radius: 14px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
a, button, input, select, textarea { outline-offset: 3px; }
:focus-visible { outline: 3px solid #577cec; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.55rem, 2.5vw, 2.12rem); letter-spacing: -.035em; line-height: 1.25; }
h2 { font-size: 1.24rem; line-height: 1.4; }
h3 { font-size: 1.06rem; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 235px minmax(0, 1fr); }
.sidebar { color: #dbe5fa; background: var(--nav); padding: 27px 14px; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 7px 30px; }
.brand strong, .brand small { display: block; }
.brand strong { color: white; font-size: 1.14rem; line-height: 1.25; }
.brand small { color: #ccd7ea; font-size: .78rem; }
.mark { display: grid; place-items: center; width: 41px; height: 41px; flex: none; border-radius: 10px; color: white; background: #335ed6; font-weight: 800; font-size: 1.18rem; }
.sidebar nav { display: grid; gap: 5px; }
.nav-item { color: inherit; border: 0; border-radius: 9px; padding: 10px 12px; text-align: left; background: transparent; min-height: 45px; }
.nav-item[aria-current="page"] { color: white; background: #294778; font-weight: 700; box-shadow: inset 3px 0 #91acff; }
.nav-item:hover { background: #263d61; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 63px; background: white; border-bottom: 1px solid var(--line); padding: 10px 28px; }
.top-left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; }
.trial { border-radius: 999px; padding: 2px 8px; border: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 530; }
.account { color: var(--muted); font-size: .88rem; text-align: right; overflow-wrap: anywhere; }
main { max-width: 1430px; margin: 0 auto; padding: 29px clamp(16px, 3vw, 38px) 48px; }
.heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 43px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 9px; font-weight: 680; text-decoration: none; text-align: center; background: white; color: var(--ink); }
.button:hover { background: #f3f6fd; }
.primary { background: var(--brand); color: white; border-color: var(--brand); }
.primary:hover { background: #1d409e; }
.button-link { border: 0; background: transparent; color: var(--brand); padding-inline: 0; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; min-width: 0; box-shadow: 0 5px 23px #14243d08; }
.toolbar { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.tabs button { border: 0; border-radius: 8px; min-height: 40px; padding: 5px 10px; color: var(--muted); background: transparent; }
.tabs button[aria-selected="true"] { color: #1e449d; background: #e9efff; font-weight: 720; }
.search { flex: 0 1 250px; min-width: 145px; }
.input { display: block; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #c8d2e1; border-radius: 8px; background: white; color: var(--ink); }
.input::placeholder { color: #64748b; }
textarea.input { resize: vertical; min-height: 109px; }
.split { display: grid; grid-template-columns: minmax(255px, 34%) minmax(0, 1fr); min-height: 445px; }
.queue { border-right: 1px solid var(--line); min-width: 0; }
.queue-count { color: var(--muted); background: #f7f9fc; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: .86rem; }
.rows { max-height: 610px; overflow-y: auto; }
.row { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: white; padding: 12px 16px; color: var(--ink); text-align: left; }
.row:hover { background: #f6f8fe; }
.row[aria-pressed="true"] { background: #edf3ff; box-shadow: inset 3px 0 var(--brand); }
.row-top { display: flex; align-items: start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.row-title { display: block; font-weight: 690; overflow-wrap: anywhere; }
.row-sub { display: block; margin-top: 4px; color: var(--muted); font-size: .88rem; }
.badge { display: inline-block; flex: 0 1 auto; font-size: .82rem; font-weight: 730; padding: 2px 7px; border-radius: 6px; background: #e9effc; color: #254486; }
.badge.done { background: #e1f4eb; color: #1c6647; }
.badge.draft { background: #fff1cf; color: #734600; }
.detail { padding: 19px 20px 23px; min-width: 0; }
.detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.detail-head h2 { overflow-wrap: anywhere; }
.metadata { display: flex; flex-wrap: wrap; gap: 5px 18px; color: var(--muted); font-size: .88rem; margin-top: 5px; }
.detail-section { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.copy { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 5px; }
.timeline { margin: 5px 0 0; padding: 0; list-style: none; }
.timeline li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline li small { color: var(--muted); flex-shrink: 0; }
.detail-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.table-scroll { overflow-x: auto; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 8px; font-size: 1rem; }
th { background: #f4f7fd; white-space: nowrap; }
td:first-child { overflow-wrap: anywhere; }
.hint, .empty { color: var(--muted); }
.hint { font-size: .9rem; }
.empty { padding: 18px 16px; }
.error { color: #9b2534; background: #fff1f3; border: 1px solid #f4cad0; border-radius: 8px; padding: 8px 11px; }
.success { color: #1b6445; background: #e9f6ef; border: 1px solid #cee9dc; border-radius: 8px; padding: 8px 11px; margin-bottom: 12px; }
.editor { max-width: 850px; padding: clamp(16px, 3vw, 26px); }
.fields { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; min-width: 0; font-weight: 690; }
.field .input { font-weight: 480; }
.editor .subhead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.product-list { display: grid; gap: 6px; margin: 0; }
.product-row { display: grid; grid-template-columns: 27px minmax(0, 1fr) 100px 50px; gap: 8px; align-items: end; padding: 8px; border-radius: 9px; background: #f5f7fc; }
.product-row .counter { color: var(--muted); align-self: center; text-align: center; }
.product-row .remove { font-size: .87rem; font-weight: 650; }
.product-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.paste-area { margin-top: 8px; display: grid; gap: 8px; }
.form-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.startup { text-align: center; margin: 50px auto; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(100%, 420px); background: white; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.login-card .mark { margin-bottom: 15px; }
.login-card .button { margin-top: 15px; }
.login-status { margin-top: 9px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 195px minmax(0, 1fr); }
  .sidebar { padding-inline: 9px; }
  main, .topbar { padding-inline: 16px; }
}
@media (max-width: 700px) {
  .shell { display: block; }
  .sidebar { padding: 11px 14px; }
  .brand { margin: 0 0 8px; }
  .brand small { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav-item { padding: 6px 9px; }
  .topbar { min-height: 47px; }
  .top-left > span:first-child { display: none; }
  main { padding-top: 17px; }
  .heading { align-items: start; flex-wrap: wrap; }
  .toolbar { padding: 8px 11px; }
  .search { flex: 1 1 100%; }
  .split { display: block; min-height: 0; }
  .queue { border-right: 0; border-bottom: 1px solid var(--line); }
  .rows { max-height: 330px; }
  .detail { padding: 14px; }
  .product-row { grid-template-columns: 20px minmax(0, 1fr) 74px 40px; gap: 5px; padding: 5px; }
}
