:root {
  --bg: #f9f9f9;
  --card: #ffffff;
  --ink: #171717;
  --muted: #737373;
  --line: #ececec;
  --green: #22bc7e;
  --green-2: #1aa56d;
  --green-soft: #e8f8f1;
  --warn: #fff6e5;
  --warn-ink: #b45309;
  --err: #e5484d;
  --err-bg: #fdecec;
  --ok-bg: #e8f8f1;
  --ok-ink: #0f7a52;
  --head: #ffffff;
  --off: #f0f0f0;
  --radius: 20px;
  --radius-sm: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.02em;
}
a { color: var(--green-2); text-decoration: none; }
a:hover { color: var(--ink); }
.top {
  display: flex; align-items: center; gap: 28px;
  background: var(--head); color: var(--ink);
  padding: 0 28px; height: 64px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 800; color: var(--ink) !important;
  letter-spacing: -0.04em; text-decoration: none;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.08);
  flex: 0 0 auto;
}
.top nav { display: flex; gap: 4px; align-items: center; font-size: 14px; font-weight: 600; flex: 1; }
.top nav a {
  color: #525252; text-decoration: none; padding: 8px 12px; border-radius: 8px;
}
.top nav a:hover, .top nav a.on { color: var(--ink); background: #f3f3f3; }
.top nav a.on { color: var(--green-2); }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px;
  border-radius: 999px; background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700;
}
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-left: auto; }
.who-name { color: var(--ink); font-weight: 600; }
.who-role { color: var(--muted); font-size: 12px; }
.who-out {
  color: #fff; background: var(--ink); border-radius: 8px;
  padding: 7px 12px; font-weight: 600; font-size: 13px;
}
.who-out:hover { background: #2a2a2a; color: #fff; }
.wrap { max-width: 1180px; margin: 36px auto; padding: 0 24px 72px; }
.wrap.wide { max-width: 1880px; }
h1 {
  font-size: 32px; font-weight: 800; margin: 0 0 8px;
  letter-spacing: -0.04em; color: #1a1a1a; line-height: 1.25;
}
.rank-product { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 12px; }
.rank-product img {
  width: 84px; height: 84px; object-fit: cover; border-radius: 12px;
  background: #f3f3f3; border: 1px solid var(--line); flex: 0 0 auto;
}
.rank-product h1 { font-size: 22px; line-height: 1.35; margin: 0 0 6px; }
.rank-sub { margin: -2px 0 6px; font-size: 15px; font-weight: 650; line-height: 1.4; }
.rank-marks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }
.rank-mark { font-size: 12px; font-weight: 800; color: var(--ink); }
.rank-mark.store { color: var(--green-2); }
.rank-shop { margin: 0 0 2px; font-size: 15px; font-weight: 750; }
.rank-link { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; word-break: break-all; }
.rank-link:hover { color: var(--green-2); }
.rank-kind { margin-right: 6px; color: var(--ink); font-weight: 700; }
.rank-price { margin: 2px 0 0; font-size: 14px; font-weight: 700; }
.rank-price s { margin-right: 6px; color: var(--muted); font-weight: 600; }
.rank-off { margin-right: 4px; color: #e5484d; }
.rank-now { color: #e5484d; font-size: 16px; }
.rank-cat, .rank-review { margin: 2px 0 0; color: var(--muted); font-size: 12px; font-weight: 650; }
h2 {
  font-size: 15px; font-weight: 700; margin: 0 0 16px; color: var(--ink);
}
.page-head { margin-bottom: 24px; }
.lead { color: var(--muted); margin: 0 0 8px; max-width: 46em; font-size: 15px; }
.hero { margin-bottom: 32px; }
.hero h1 { font-size: 36px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  color: inherit; box-shadow: 0 8px 24px rgba(23, 23, 23, 0.04);
}
.tile:hover { border-color: #d8d8d8; color: inherit; box-shadow: 0 10px 28px rgba(23, 23, 23, 0.06); }
.tile strong { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.tile strong:not(:first-child) { margin-top: 8px; }
.tile span { color: var(--muted); font-size: 14px; }
body.auth {
  background: var(--bg);
  min-height: 100vh;
}
body.auth .wrap { margin: 0 auto; padding: 0 16px; display: flex; min-height: 100vh; align-items: center; }
.login-box {
  width: 100%; max-width: 400px; margin: 0 auto;
  background: #fff; padding: 40px 36px 36px; border-radius: 24px;
  box-shadow: 0 12px 40px rgba(23, 23, 23, 0.08);
  border: 1px solid var(--line);
}
.login-brand { margin-bottom: 20px; font-size: 22px; }
.login-box h1 { font-size: 28px; margin: 0 0 6px; }
.login-box .sub { color: var(--muted); margin: 0 0 28px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 14px; color: #525252; }
input, select {
  width: 100%; margin-top: 6px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; background: #fff; color: var(--ink);
  font-family: inherit; letter-spacing: -0.02em;
}
input:focus, select:focus { outline: 2px solid rgba(34, 188, 126, 0.28); border-color: var(--green); }
button {
  background: var(--green); color: #fff; border: 0; border-radius: var(--radius-sm);
  padding: 11px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; letter-spacing: -0.02em;
}
button:hover { background: var(--green-2); }
.login-box button { width: 100%; margin-top: 8px; padding: 12px 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 12px; margin: 0 0 20px;
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.04);
}
.row-form { display: grid; grid-template-columns: 1fr 1fr 160px auto; gap: 12px; align-items: end; }
.row-form button { height: 42px; margin-bottom: 14px; }
.row-form.grant { grid-template-columns: 1fr 120px auto; }
.filter { margin: 0 0 16px; max-width: 260px; }
.member-combo { position: relative; margin-top: 6px; }
.member-combo-input {
  margin-top: 0; padding-right: 32px; cursor: text;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23737373' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.member-combo-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 4px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.08);
  max-height: 220px; overflow: auto;
}
.member-combo-list li { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.member-combo-list li:hover { background: var(--green-soft); }
.member-combo-list li[hidden] { display: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th {
  color: #737373; font-weight: 600; font-size: 12px;
}
tr.self { background: var(--green-soft); }
tr.warn td { background: var(--warn); }
tr.off td { color: var(--muted); }
tr.empty td { background: transparent; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.name { font-weight: 600; }
.muted { color: var(--muted); font-size: 12px; }
.tag {
  display: inline-block; font-size: 10px; background: var(--ok-bg); color: var(--ok-ink);
  padding: 1px 7px; border-radius: 999px; font-weight: 700;
}
.note { color: var(--warn-ink); font-weight: 700; margin-right: 8px; font-size: 12px; }
.flash {
  background: var(--ok-bg); color: var(--ok-ink);
  padding: 12px 14px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; font-weight: 600;
}
.flash.err { background: var(--err-bg); color: var(--err); }
form.inline { display: inline; }
.work-actions { display: flex; gap: 8px; }
.work-actions form.inline button { min-width: 88px; height: 38px; }
button.linkish {
  background: none; color: var(--green-2); font-weight: 600; padding: 0; font-size: 12px;
}
button.linkish:hover { text-decoration: underline; background: none; color: var(--ink); }
button.ghost, a.ghost {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  padding: 7px 12px; font-size: 12px; height: auto; margin: 0;
  border-radius: var(--radius-sm); font-weight: 600;
}
button.ghost:hover, a.ghost:hover { border-color: var(--green); color: var(--green-2); background: #fff; }
button.ghost.danger { color: var(--err); }
button.ghost.danger:hover { border-color: var(--err); color: var(--err); background: var(--err-bg); }
button.toggle {
  min-width: 72px; font-size: 12px; padding: 6px 10px; font-weight: 700;
  border-radius: 999px;
}
button.toggle.on { background: var(--green); color: #fff; }
button.toggle.on:hover { background: var(--green-2); }
button.toggle.off { background: var(--off); color: #737373; }
button.toggle.off:hover { background: #e4e4e4; }
button.toggle.ready { background: #f5c518; color: #1a1a1a; }
button.toggle.ready:hover { background: #e0b000; }
button.toggle.run { background: var(--green); color: #fff; }
button.toggle.run:hover { background: var(--green-2); }
button.toggle.hold, span.toggle.hold { background: var(--err); color: #fff; }
button.toggle.hold:hover { background: #c9363b; }
span.toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px; height: 28px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
span.toggle.ready { background: #f5c518; color: #1a1a1a; }
span.toggle.run { background: var(--green); color: #fff; }
form.fill { display: flex; gap: 8px; align-items: center; }
form.fill input { width: 148px; margin: 0; padding: 7px 9px; font-size: 13px; }
form.fill input[name="keyword"] { width: 280px; flex: 0 0 280px; }
table.slots { min-width: 1480px; }
form.extend-all { display: inline-flex; align-items: center; gap: 6px; }
form.extend-all span { font-weight: 700; }
input.extend-days { width: 64px; margin: 0; padding: 7px 8px; font-size: 14px; }
table.slots th, table.slots td { white-space: nowrap; }
table.slots th:first-child, table.slots td:first-child { width: 36px; text-align: center; }
table.slots th.slot-check, table.slots td.slot-check { width: 36px; padding-left: 12px; padding-right: 4px; }
table.slots td.note-cell { white-space: normal; }
.work-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.sum-card {
  height: 128px; padding: 16px 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px;
  display: flex; flex-direction: column;
}
.sum-k { color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1; }
.sum-v {
  margin-top: 10px; font-size: 32px; font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.sum-v span { margin-left: 4px; font-size: 14px; font-weight: 700; color: var(--muted); }
.sum-split { margin: 8px 0 0; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.35; }
.sum-split b { color: var(--ink); font-weight: 800; }
.sum-hour { margin: 6px 0 0; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.2; }
.sum-hour b { color: var(--ink); font-weight: 800; }
.sum-bar { margin-top: auto; height: 6px; background: #ececec; border-radius: 999px; overflow: hidden; }
.sum-bar > span { display: block; height: 6px; background: var(--green); border-radius: 999px; }
.slot-bar { width: 140px; height: 8px; background: #ececec; border-radius: 999px; overflow: hidden; }
.slot-bar > span { display: block; height: 8px; border-radius: 999px; background: var(--err); }
.slot-bar.mid > span { background: #f5c518; }
.slot-bar.done > span { background: var(--green); }
.phone-bits { display: flex; gap: 6px; align-items: center; }
.phone-bits + .phone-bits { margin-top: 4px; }
.phone-bits span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px; height: 26px; padding: 0 8px; border-radius: 999px;
  background: #f3f3f3; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.phone-bits span.model { min-width: 108px; }
.phone-bits span.state { background: #fdecec; color: #b91c1c; }
td.phones { white-space: nowrap; }
.pc-log-row > td { padding-top: 0; }
.pc-log-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 6px 0;
}
.pc-log-name { font-size: 13px; font-weight: 700; color: #555; }
.pc-logs {
  margin-top: 4px; height: 240px; overflow: auto; padding: 10px 12px;
  border-radius: 12px; background: #171717; color: #e8e8e8;
  font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.5;
}
.pc-logs .muted { color: #8a8a8a; }
form.fill a.graph-link, form.fill a.logic-link {
  display: inline-flex; align-items: center; text-decoration: none;
}
form.fill a.logic-link {
  border-color: #dbeafe; background: #f8fbff; color: #1d4ed8;
}
form.fill a.logic-link:hover {
  border-color: #3b82f6; background: #eff6ff; color: #1e40af;
}
.rank-moved {
  flex: 0 0 auto; margin: 0; padding: 0;
  font-size: 10px; line-height: 1; font-weight: 650;
  color: var(--err); white-space: nowrap;
}
.slot-no {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 800; font-size: 13px;
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
  color: var(--ink); background: #f3f3f3; border: 0;
  border-radius: 8px; padding: 5px 9px; cursor: pointer;
}
.slot-no:hover { background: var(--green-soft); color: var(--green-2); }
.slot-no.copied { background: var(--green); color: #fff; }
.slot-nos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 12px 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.chart-wrap { overflow-x: auto; margin: 8px 0 20px; }
.rank-chart { width: 100%; height: auto; display: block; }
.rank-chart .grid { stroke: var(--line); stroke-width: 1; }
.rank-chart .line { stroke: #3b82f6; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rank-chart .line.napp { stroke: var(--green); }
.rank-chart .dot { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.rank-chart .dot.plus { fill: #3b82f6; }
.rank-chart .dot.napp { fill: var(--green-2); }
.settings-form { display: flex; flex-direction: column; gap: 16px; }
.settings-form > button { align-self: flex-start; }
.cfg-block h3 { margin: 0 0 10px; font-size: 15px; }
.cfg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.cfg-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cfg-grid label, .case-grid label, .pc-name {
  display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted);
}
.cfg-grid input, .cfg-grid select, .case-grid input, .pc-name input { font: inherit; color: var(--ink); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 8px; }
.cfg-hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.range { display: flex; align-items: center; gap: 8px; }
.range input { width: 100%; }
details.pc-cfg {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; background: #fff;
}
details.pc-cfg summary { cursor: pointer; font-weight: 700; }
details.pc-cfg .settings-form { margin-top: 14px; }
.account-search { max-width: 280px; margin: 0 0 12px; }
form.date-pick { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
form.date-pick span { font-variant-numeric: tabular-nums; }
form.date-pick input[type="date"] {
  width: 22px; height: 22px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer;
}
form.date-pick input[type="date"]::-webkit-datetime-edit,
form.date-pick input[type="date"]::-webkit-inner-spin-button,
form.date-pick input[type="date"]::-webkit-clear-button { display: none; }
form.date-pick input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0; padding: 0; cursor: pointer; width: 18px; height: 18px;
}
.memo-input { width: 180px; margin: 0; padding: 6px 8px; font-size: 13px; }
button.gear {
  width: 32px; height: 32px; padding: 0; border-radius: 8px;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
}
button.gear:hover { border-color: var(--green); color: var(--green-2); background: #fff; }
.weight-err { color: var(--err); font-size: 13px; font-weight: 700; margin: 0; }
.slot-label { font-variant-numeric: tabular-nums; font-weight: 600; }
.legend { color: var(--muted); font-size: 13px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 6px 0 12px; }
.swatch.plus { background: #3b82f6; }
.swatch.napp { background: var(--green); }
.rank-chart .tick { fill: var(--muted); font-size: 11px; font-family: "Pretendard Variable", Pretendard, sans-serif; }
.rank-chart .dot-label { fill: var(--ink); font-size: 11px; font-weight: 700; font-family: "Pretendard Variable", Pretendard, sans-serif; }
.rank-chart .rank-badge { fill: #fff; stroke-width: 1; }
.rank-chart .rank-badge.plus { stroke: #3b82f6; }
.rank-chart .rank-badge.napp { stroke: var(--green); }
.rank-chart .rank-badge-text { font-size: 11px; font-weight: 700; font-family: "Pretendard Variable", Pretendard, sans-serif; }
.rank-chart .rank-badge-text.plus { fill: #3b82f6; }
.rank-chart .rank-badge-text.napp { fill: var(--green-2); }
.rank-chart .badge-time { font-size: 8px; font-family: "Pretendard Variable", Pretendard, sans-serif; }
.rank-chart .badge-time.plus { fill: #6d9fdd; }
.rank-chart .badge-time.napp { fill: #4fae83; }
.rank-table .rank-plus { color: #3b82f6; font-weight: 700; }
.rank-table .rank-napp { color: var(--green-2); font-weight: 700; }
.rank-table .move { font-size: 0.68em; font-weight: 700; margin-left: 2px; }
.rank-table .move.up { color: #dc2626; }
.rank-table .move.down { color: #2563eb; }
.rank-table { max-width: 320px; }
.rank-bottom { display: flex; align-items: flex-start; gap: 20px; }
.rank-side { flex: 1; display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.rank-span {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px 10px; background: #fbfbfb;
}
.rank-span h3 { margin: 0 0 8px; font-size: 13px; }
.rank-span-ch { margin: 10px 0 2px; font-size: 12px; font-weight: 800; }
.rank-span-ch.plus { color: #3b82f6; }
.rank-span-ch.napp { color: var(--green-2); }
.rank-span-num { margin: 0; font-size: 13px; font-weight: 650; line-height: 1.45; }
.rank-span-num b { font-size: 16px; font-weight: 800; letter-spacing: -0.03em; }
.rank-span-time { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 650; }
.rank-span-delta { margin: 2px 0 0; font-size: 13px; font-weight: 800; }
.rank-span-delta.up { color: #dc2626; }
.rank-span-delta.down { color: #2563eb; }
@media (max-width: 860px) {
  .rank-bottom, .rank-side { flex-direction: column; }
  .rank-span { width: 100%; }
}
.work-actions { margin: 0 0 18px; }
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin: 0 0 20px;
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; box-shadow: 0 8px 24px rgba(23, 23, 23, 0.04);
}
.stat span {
  display: block; color: var(--muted); font-size: 12px; font-weight: 600;
  margin-bottom: 6px;
}
.stat b { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.slot-stats {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 22px;
  margin: 0 0 14px; font-size: 20px; font-weight: 750; letter-spacing: -0.03em;
}
.slot-stats .slot-total { color: var(--ink); }
.slot-stats .slot-on { color: var(--ok-ink); }
.slot-stats .slot-off { color: #c8960a; }
.slot-stats .slot-end { color: var(--err); }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.list-head h2 { margin: 0; }
.slot-search {
  display: flex; align-items: stretch; margin: 0; flex: 1; max-width: 460px; height: 40px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden;
}
.slot-search-label {
  display: flex; align-items: center; margin: 0; padding: 0 14px;
  background: #f4f4f4; border-right: 1px solid var(--line);
  font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap;
}
.slot-search input {
  flex: 1; width: auto; min-width: 0; height: auto; margin: 0; border: 0; border-radius: 0;
  padding: 0 12px; font-size: 14px; background: transparent;
}
.slot-search input:focus { outline: none; }
.slot-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34, 188, 126, 0.2); }
.slot-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.slot-search-count {
  display: flex; align-items: center; padding: 0 4px 0 0;
  color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap;
}
.slot-search-clear {
  margin: 6px; height: auto; padding: 0 10px; border-radius: 8px;
  background: #f3f3f3; color: var(--ink); font-size: 12px; font-weight: 700;
}
.slot-search-clear:hover { background: #e6e6e6; }
.page-size { margin: 0; }
.page-size select { width: auto; min-width: 128px; margin: 0; height: 36px; padding: 0 12px; }
.slot-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 4px; }
.slot-pages a, .slot-pages button, .slot-pages span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 700;
}
.slot-pages a:hover, .slot-pages button:hover { border-color: var(--green); color: var(--green-2); }
.slot-pages a.on, .slot-pages button.on { background: var(--green); border-color: var(--green); color: #fff; }
.slot-pages button:disabled { color: #a3a3a3; background: #f7f7f7; }
.slot-pages span.off, .slot-pages span.gap { color: #a3a3a3; background: #f7f7f7; }
.work-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.work-head > div:first-child { flex: 1; min-width: 0; }
.work-head h1 { font-size: 18px; margin: 0 0 4px; }
.work-moves { max-width: none; margin: 0; font-size: 12px; line-height: 1.35; }
.work-moves p { margin: 0 0 2px; font-size: 12px; }
.work-moves p.move-name { margin: 8px 0 2px; font-size: 16px; font-weight: 800; line-height: 1.2; }
.move-name.plus { color: #2563eb; }
.move-name.napp { color: #1aa56d; }
.move-more { margin: 4px 0 8px; }
.modal-card.move-detail-card {
  width: max-content; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px);
  padding: 14px 14px 10px; display: flex; flex-direction: column;
}
.move-detail-card .work-day-table { max-height: calc(100vh - 120px); overflow: auto; }
#move-detail-table { width: max-content; table-layout: auto; }
#move-detail-table th, #move-detail-table td {
  width: auto; padding: 2px 6px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; word-break: normal;
}
#move-detail-table th:nth-child(3), #move-detail-table td:nth-child(3) { max-width: 140px; }
#move-detail-table th:nth-child(4), #move-detail-table td:nth-child(4) { max-width: 280px; }
.logout-dates { display: flex; flex-wrap: wrap; gap: 8px; }
.logout-dates button.on { border-color: var(--green); background: var(--green-soft); }
.logout-day { margin: 14px 0 0; }
.logout-day strong { display: block; margin-top: 10px; }
.logout-day p { margin: 4px 0 0; line-height: 1.5; word-break: break-all; }
.work-moves b.up { color: #dc2626; }
.work-moves b.down { color: #2563eb; }
.move-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 4px; }
#plus-pick { margin-bottom: 14px; }
.move-table caption { caption-side: top; text-align: left; font-size: 11px; font-weight: 800; color: var(--muted); padding: 2px 0; }
.move-table th, .move-table td {
  border: 1px solid var(--line); padding: 1px 4px; font-size: 11px; font-weight: 650;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left;
}
.move-table th { background: #f7f7f7; color: var(--muted); }
.move-table th:nth-child(1), .move-table td:nth-child(1) { width: 52px; text-align: center; }
.move-table th:nth-child(2), .move-table td:nth-child(2) { width: 96px; }
.move-table th:nth-child(3), .move-table td:nth-child(3) { width: 72px; }
.move-table th:nth-child(5), .move-table td:nth-child(5),
.move-table th:nth-child(6), .move-table td:nth-child(6) { width: 52px; }
.move-table th:nth-child(7), .move-table td:nth-child(7) { width: 78px; }
.move-table td.up { color: #dc2626; font-weight: 800; }
.move-table td.down { color: #2563eb; font-weight: 800; }
.work-slot-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.work-slot-bar input { width: min(280px, 100%); margin: 0; }
#slot-count { color: var(--muted); font-size: 13px; font-weight: 700; }
.slot-none { margin: 8px 0 0; color: var(--muted); font-weight: 650; }
tr[hidden] { display: none; }
.work-cal {
  flex: 0 0 auto; width: 232px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 10px 10px 12px; box-shadow: 0 8px 24px rgba(23, 23, 23, 0.04);
}
.cal-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-bar strong { font-size: 14px; }
.cal-bar button {
  width: 28px; height: 28px; padding: 0; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; font-size: 16px;
}
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-week span { color: var(--muted); font-size: 11px; font-weight: 700; }
.cal-day, .cal-blank { height: 28px; }
.cal-day {
  position: relative; width: 100%; padding: 0; background: transparent; color: var(--ink);
  border: 0; border-radius: 8px; font-size: 12px; font-weight: 700;
}
.cal-day:hover { background: #f3f3f3; }
.cal-day.has::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px;
  margin-left: -2px; border-radius: 50%; background: var(--green);
}
.cal-day.today { background: var(--green-soft); color: var(--ok-ink); }
.cal-day:disabled { color: #c8c8c8; background: transparent; cursor: default; }
.work-day-card { width: min(860px, calc(100% - 32px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column; }
.work-day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.work-day-head h2 { margin: 0; font-size: 18px; }
.work-day-card input { margin: 0 0 8px; }
.work-day-sum { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 650; }
.work-day-table { overflow: auto; max-height: 60vh; }
@media (max-width: 860px) {
  .work-head { flex-direction: column; }
  .work-cal { width: 100%; }
}
.slot-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 14px; }
.slot-picked { margin: 0 8px 0 0; font-size: 14px; font-weight: 700; }
.modal {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(420px, calc(100% - 32px)); padding: 22px 22px 16px; background: #fff;
  border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
}
.modal-card p { margin: 0 0 18px; font-size: 16px; font-weight: 750; line-height: 1.45; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
tr.busy td { background: var(--green-soft); }
.ok-n { color: var(--ok-ink); font-weight: 700; }
.fail-n { color: var(--err); font-weight: 700; }
a.linkish { color: var(--green-2); font-weight: 600; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--green-2); font-weight: 700; }
.crumbs b { color: var(--ink); }
.pkt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pkt-list a {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; color: var(--ink); font-weight: 650; word-break: break-all;
}
.pkt-view {
  white-space: pre-wrap; word-break: break-all; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; font-size: 12px; line-height: 1.5; max-height: 72vh; overflow: auto;
}
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .row-form, .row-form.grant { grid-template-columns: 1fr; }
  .cfg-apps, .cfg-grid { grid-template-columns: 1fr; }
  .who-role { display: none; }
  h1, .hero h1 { font-size: 26px; }
  .top { padding: 0 16px; gap: 12px; }
  .find-boards { grid-template-columns: 1fr; }
}
.find-wait { margin: 0 0 16px; font-size: 15px; font-weight: 700; color: var(--ink); }
.find-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.find-board {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 12px; background: #fbfbfb;
}
.find-board h3 { display: flex; align-items: center; margin: 0 0 12px; font-size: 14px; }
.find-board h3 .swatch { margin: 0 8px 0 0; }
.find-bar { width: 100%; height: 8px; background: #ececec; border-radius: 999px; overflow: hidden; }
.find-bar > span { display: block; height: 8px; border-radius: 999px; width: 0; }
.find-board.plus .find-bar > span { background: #3b82f6; }
.find-board.napp .find-bar > span { background: #22bc7e; }
.find-label { margin: 8px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.find-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.find-board.is-found .find-label { color: var(--ok-ink); }
.find-board.is-miss .find-label { color: #737373; }
#find-form button:disabled,
#find-form button:disabled:hover { background: #b7e6d2; color: #fff; cursor: default; }

/* 로직분석기 (/logic) */
.rank-mark.badge-logic {
  background: #eff6ff; color: #1d4ed8; padding: 2px 8px; border-radius: 999px; border: 1px solid #bfdbfe;
}
.rank-mark.grade {
  background: #fef3c7; color: #b45309; padding: 2px 8px; border-radius: 999px;
}
.logic-nav-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px;
}
.logic-nav-bar p { margin: 0; }
.logic-refresh-btn {
  border-color: #3b82f6 !important; color: #1d4ed8 !important; background: #eff6ff !important; font-weight: 700 !important;
}
.logic-refresh-btn:hover {
  background: #dbeafe !important; color: #1e3a8a !important;
}
.logic-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: #f3f3f3; color: var(--ink); margin-left: 4px;
}
.logic-chip.ok { background: var(--ok-bg); color: var(--ok-ink); }
.logic-chip.info { background: #eff6ff; color: #1d4ed8; }
.logic-chip.warn { background: var(--warn); color: var(--warn-ink); }
.logic-kpi-strip {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 14px 0;
}
.logic-kpi {
  background: #fbfbfb; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.logic-kpi span { display: block; font-size: 12px; color: var(--muted); font-weight: 650; margin-bottom: 4px; }
.logic-kpi b { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.logic-kpi b.plus, .plus-ink { color: #3b82f6; }
.logic-kpi b.napp, .napp-ink { color: var(--green-2); }
.logic-verdicts { display: grid; gap: 8px; margin: 10px 0 6px; }
.logic-verdict {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #f8fafc;
}
.logic-verdict.ok { background: var(--ok-bg); border-color: #bbf7d0; color: var(--ok-ink); }
.logic-verdict.warn { background: var(--warn); border-color: #fde68a; color: var(--warn-ink); }
.logic-verdict.info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.logic-verdict strong { display: block; font-size: 14px; font-weight: 800; margin-bottom: 2px; }
.logic-verdict p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink); }
.logic-pillars {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0;
}
.logic-pillar {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fbfbfb;
}
.pillar-head { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.pillar-head h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--ink); }
.pillar-sub { margin: 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.pillar-main { margin: 4px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.pillar-list { margin: 0; display: grid; gap: 6px; }
.pillar-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.pillar-row dt { color: var(--muted); font-weight: 600; }
.pillar-row dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.logic-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.logic-table th, .logic-table td { padding: 9px 8px; font-size: 12.5px; }
.logic-bar-wrap { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.logic-bar { height: 8px; border-radius: 999px; background: var(--green); min-width: 4px; }
.logic-bar.plus { background: #3b82f6; }
.logic-bar.napp { background: var(--green); }
.logic-bar-wrap span { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.logic-foot-note { margin: 10px 0 4px; font-size: 12.5px; color: var(--muted); }
.logic-cat-averages {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 12px 0 16px;
}
.logic-cat-box {
  background: #fbfbfb; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.logic-cat-box span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 650; }
.logic-cat-box b { display: block; font-size: 17px; font-weight: 800; margin-top: 2px; }
.logic-cat-box small { display: block; font-size: 11px; color: var(--green-2); font-weight: 700; margin-top: 2px; }
.comp-title { font-weight: 650; line-height: 1.35; max-width: 280px; white-space: normal; }
.logic-seo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.logic-seo-grid h3 { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.logic-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.logic-tags .logic-chip { margin-left: 0; }
@media (max-width: 1024px) {
  .logic-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .logic-pillars, .logic-two-col, .logic-seo-grid { grid-template-columns: 1fr; }
}

