/* BC-Action Series sandbox — layout & components.
   Flat: no shadows, no gradients. Radius 2px (cards up to 4px). */

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-section);
  -webkit-font-smoothing: antialiased;
  min-width: 1280px;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
button { font-family: inherit; }
h1, h2, h3, p { margin: 0; }

/* ---------- Window shell / top bar (fake title bar) ---------- */
.app-shell { display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  height: var(--topbar-h);
  flex: 0 0 var(--topbar-h);
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px 0 0;
  user-select: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 200px;
  padding-left: 16px;
}
.brand .mark { width: 3px; height: 18px; background: var(--brand-primary); }
.brand .title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--text-primary);
}
.nav-tabs { display: flex; align-items: stretch; height: 100%; }
.nav-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 20px;
  font-size: 13px;
  color: var(--chrome-glyph);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.nav-tab.active {
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
}
.nav-tab.locked { color: var(--text-secondary); cursor: not-allowed; }
.nav-tab .lock { font-size: 11px; opacity: 0.7; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.role-badge { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-primary); }
.btn-logout {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 12px; font-size: 12px; color: var(--text-primary); cursor: pointer;
}
.win-controls { display: flex; align-items: center; gap: 4px; padding-left: 8px; border-left: 1px solid var(--border); }
.win-controls .glyph {
  width: 28px; height: 28px; display: grid; place-items: center;
  color: var(--chrome-glyph); font-size: 13px; cursor: default;
}

/* status dot */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--success); }
.dot.neutral { background: var(--status-neutral); }
.dot.warn { background: var(--warning); }
.dot.err { background: var(--error); }
.dot.hollow { background: #fff; border: 1.5px solid var(--status-neutral); box-sizing: border-box; }

/* ---------- Content area ---------- */
.content { flex: 1 1 auto; overflow: auto; padding: 24px 28px; }
.page-title { font-size: 20px; font-weight: 700; letter-spacing: 0.04em; display: flex; align-items: center; }
.vmark { width: 3px; height: 1em; background: var(--brand-primary); display: inline-block; margin-right: 10px; flex: 0 0 auto; align-self: center; }
.card-head .vmark { height: 15px; }
.page-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.card-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between;
}
.card-body { padding: 16px; }
.section-label { font-size: 14px; font-weight: 700; margin-bottom: 10px; }

/* ---------- Buttons ---------- */
.btn {
  font-size: 13px; padding: 8px 18px; border-radius: var(--radius);
  cursor: pointer; border: 1px solid transparent; line-height: 1.2;
}
.btn-primary { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); font-weight: 700; }
.btn-primary:hover { background: var(--brand-primary-dark); }
.btn-secondary { background: #fff; color: var(--text-primary); border-color: var(--text-primary); }
.btn-ghost { background: #fff; color: var(--text-primary); border-color: var(--border); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ---------- Inputs ---------- */
label.field-label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.req { color: var(--error); }
.input, select.input {
  width: 100%; padding: 9px 11px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--border-input); border-radius: var(--radius);
  background: #fff; color: var(--text-primary);
}
.input:focus, select.input:focus { outline: none; border-color: var(--brand-primary); }
.input[readonly], .input.readonly { background: var(--bg-section); color: var(--text-secondary); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }
.input-icon .input { padding-left: 34px; }
.helper { font-size: 12px; color: var(--text-secondary); margin-top: 6px; line-height: 1.5; }

/* ---------- Tables ---------- */
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th {
  text-align: left; font-weight: 700; font-size: 12px; color: var(--text-primary);
  background: var(--bg-section); padding: 10px 12px; border-bottom: 1px solid var(--border);
}
table.grid td { padding: 11px 12px; border-bottom: 1px solid var(--border); }
table.grid tr.selected td { background: var(--selection-bg); }
table.grid tr.flagged td { background: var(--flagged-bg); }
table.grid tr.total td { font-weight: 700; background: var(--bg-section); }

/* ---------- Toggle switch (green) ---------- */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.switch input { display: none; }
.switch .track { position: absolute; inset: 0; background: var(--status-neutral); border-radius: 11px; transition: background .15s; }
.switch .thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: left .15s; }
.switch input:checked + .track { background: var(--brand-primary); }
.switch input:checked + .track + .thumb { left: 20px; }

/* ---------- Segmented toggle ---------- */
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.segmented button { background: #fff; border: none; padding: 7px 16px; font-size: 12px; cursor: pointer; color: var(--text-secondary); border-left: 1px solid var(--border); }
.segmented button:first-child { border-left: none; }
.segmented button.active { background: var(--brand-primary); color: #fff; font-weight: 700; }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.chip.on { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.chip.light { background: var(--brand-primary-light); border-color: var(--brand-primary-light); color: var(--brand-primary-dark); font-weight: 700; }
.seg-chip { width: 12px; height: 12px; border-radius: 2px; display: inline-block; flex: 0 0 auto; }

/* ---------- Status pills ---------- */
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.status.ok { color: var(--success); }
.status.warn { color: var(--warning); }
.status.err { color: var(--error); }
.over { color: var(--error); }

/* ---------- Sequence bar ---------- */
.seqbar { display: flex; width: 100%; height: 22px; border-radius: 2px; overflow: hidden; }
.seqbar .seg { height: 100%; }

/* ---------- Sub nav (extrapolated) ---------- */
.subnav { display: flex; gap: 2px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.subnav a { padding: 9px 16px; font-size: 13px; color: var(--text-secondary); text-decoration: none; border-bottom: 2px solid transparent; }
.subnav a.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); font-weight: 700; }

/* ---------- Alerts ---------- */
.alert-warn {
  display: flex; align-items: center; gap: 8px;
  background: #FBF3E2; border: 1px solid var(--warning); color: var(--warning);
  padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px;
}

/* ---------- 結果検索 (04) ---------- */
.filter-card { margin-bottom: 10px; }
.filter-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.filter-row .fg { display: flex; flex-direction: column; }
.filter-row .fg .input { width: 160px; }
.daterange { display: flex; align-items: center; gap: 8px; }
.date-in { position: relative; display: inline-block; }
.date-in svg { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); pointer-events: none; }
.date-in .input { width: 130px; padding-right: 30px; }
.tilde { color: var(--text-secondary); }
.fg-btns { display: flex; gap: 8px; margin-left: auto; }
.fg-btns .btn { display: inline-flex; align-items: center; gap: 6px; }

.result-list { margin-top: 6px; }
.ref-strip {
  display: flex; align-items: center; gap: 16px; padding: 12px 16px;
  background: var(--brand-primary-light); border-bottom: 1px solid var(--border);
}
.ref-strip .seqbar { flex: 1; }
.seg-label { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.seg-label span { font-size: 11px; color: #fff; white-space: nowrap; text-shadow: 0 0 2px rgba(0,0,0,.25); }

.rrow {
  display: grid; grid-template-columns: 300px 1fr 150px; gap: 20px; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.rrow:hover { background: var(--bg-section); }
.rr-l1 { font-size: 14px; }
.rr-l1 b { font-size: 15px; }
.rr-l2 { font-size: 12px; margin-top: 4px; }
.rr-l2 .mono { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.rr-l2 .mono.over { color: var(--error); }
.rr-status { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.no-rows { padding: 40px; text-align: center; }
.result-foot { text-align: right; font-size: 12px; margin-top: 10px; }

/* ---------- システム設定 (10) ---------- */
.sys-title { margin-bottom: 18px; }
.sys-col { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.sys-head { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 700; }
.sys-head-row { display: flex; align-items: center; justify-content: space-between; }
.sys-field { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.sys-field:last-child { margin-bottom: 0; }
.sys-field > label { width: 180px; flex: 0 0 auto; font-size: 13px; color: var(--text-primary); }
.path-row { display: flex; gap: 8px; align-items: center; flex: 1; }
.path-row .input { flex: 1; max-width: 420px; }
.disk-row { display: flex; align-items: center; gap: 12px; flex: 1; }
.disk-bar { width: 320px; height: 10px; background: var(--bg-section); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.disk-fill { height: 100%; background: var(--brand-primary); }

/* ---------- 作業エリア設定 (09) ---------- */
.area-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.area-toolbar { display: flex; align-items: center; gap: 8px; }
.area-captime { margin-left: auto; font-size: 12px; }
.area-shape-btns { display: flex; justify-content: flex-end; gap: 8px; margin: 14px 0; }
.area-canvas { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #3a4149; border-radius: 2px; overflow: hidden; }
.area-canvas .bench { position: absolute; inset: 0; width: 100%; height: 100%; }
.area-ov { position: absolute; border: 2px solid; box-sizing: border-box; }
.area-ov.selected { border-width: 2px; }
.area-tag { position: absolute; top: -22px; left: -2px; font-size: 11px; color: #fff; padding: 2px 8px; border-radius: 2px; white-space: nowrap; }
.ah { position: absolute; width: 8px; height: 8px; background: #fff; border: 1px solid #4a6070; }
.ah-nw { left: -4px; top: -4px; } .ah-n { left: calc(50% - 4px); top: -4px; } .ah-ne { right: -4px; top: -4px; }
.ah-e { right: -4px; top: calc(50% - 4px); } .ah-se { right: -4px; bottom: -4px; }
.ah-s { left: calc(50% - 4px); bottom: -4px; } .ah-sw { left: -4px; bottom: -4px; } .ah-w { left: -4px; top: calc(50% - 4px); }
.area-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.area-row:hover { background: var(--bg-section); }
.area-row.selected { background: var(--selection-bg); }
.area-rowname { flex: 1; font-weight: 700; }
.area-row .chip { font-size: 11px; padding: 2px 8px; }
.area-side .helper { line-height: 1.6; }

/* ---------- master-detail (08) ---------- */
.master-detail { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.md-list { display: flex; flex-direction: column; }
.proc-item { padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.proc-item:hover { background: var(--bg-section); }
.proc-item.selected { background: var(--selection-bg); }
.proc-name { font-weight: 700; font-size: 14px; }
.proc-sub { font-size: 12px; color: var(--text-secondary); margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.md-list-foot { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--border); }
.proc-basic { display: flex; flex-direction: column; gap: 18px; }
.proc-basic .pb-name .input { max-width: 420px; }
.pb-toggle { display: flex; align-items: center; gap: 12px; }
.pb-toggle .field-label { margin-bottom: 0; }
.tg-label { font-size: 13px; }
.model-row { display: flex; gap: 8px; align-items: center; max-width: 560px; }
.model-row .input { flex: 1; }
.takt-in { width: 110px; }
.ic-btn { color: var(--text-secondary); cursor: pointer; }
.ic-drag { font-size: 13px; }
.thresh-row { display: flex; align-items: flex-start; gap: 40px; }
.thresh-tg { display: flex; flex-direction: column; gap: 8px; }
.thresh-tg .switch { align-self: flex-start; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- 作業別集計 (07) ---------- */
.info-note { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--bg-page); color: var(--text-secondary); font-size: 12px; padding: 9px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.summary-grid { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.wk-list tr.selected td { background: var(--selection-bg); }
.wk-row { cursor: pointer; }
.wk-scroll { max-height: 620px; overflow: auto; padding: 4px 16px 16px; }
.wk-section { padding: 16px 0; border-bottom: 1px solid var(--border); }
.wk-section:last-child { border-bottom: none; }
.wk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.wk-head b { font-size: 14px; }
.stat-chip { font-size: 11px; color: var(--text-secondary); background: var(--bg-section); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px 8px; }
.wk-badge { font-size: 11px; padding: 3px 10px; border-radius: var(--radius); font-weight: 700; }
.wk-badge.good { background: var(--brand-primary-light); color: var(--brand-primary-dark); }
.wk-badge.bad { background: #F6EAD2; color: var(--warning); }
.wk-note { font-size: 11px; margin-left: 4px; }
.mini-chart { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 74px; padding-right: 40px; border-bottom: 1px solid var(--border); }
.mini-bar { flex: 1; min-width: 4px; border-radius: 1px 1px 0 0; }
.std-line { position: absolute; left: 0; right: 40px; border-top: 1.5px dashed var(--text-secondary); }
.std-line span { position: absolute; right: -38px; top: -8px; font-size: 10px; color: var(--text-secondary); }

/* ---------- 日別完成台数 (06) ---------- */
.period-box { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 12px; font-size: 12px; color: var(--text-primary); }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { padding: 18px 20px; }
.kpi-l { font-size: 12px; color: var(--text-secondary); }
.kpi-v { font-size: 26px; font-weight: 700; margin-top: 6px; }
.kpi-note { font-size: 12px; font-weight: 400; color: var(--text-secondary); }
.kpi-s { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
.progress { height: 8px; background: var(--bg-section); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand-primary); }

.chart-card { margin-bottom: 16px; }
.legend { font-size: 12px; font-weight: 400; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 6px; }
.lg-actual { display: inline-block; width: 12px; height: 12px; background: var(--brand-primary); border-radius: 2px; }
.lg-plan { display: inline-block; width: 16px; border-top: 2px dashed var(--text-primary); margin-left: 10px; }
.daily-chart { width: 100%; height: 300px; display: block; }

.daily-bottom { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.history-scroll { max-height: 320px; overflow: auto; }
.gl-col { display: flex; flex-direction: column; gap: 14px; }
.qty-row { display: flex; align-items: center; gap: 8px; }
.qty-row .input { width: 90px; }
.gl-col .date-in .input { width: 100%; }
.gl-col .date-in svg { right: 10px; }

/* ---------- 結果確認 (05) ---------- */
.backlink { font-size: 13px; color: var(--text-primary); text-decoration: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 12px; }
.backlink:hover { background: var(--bg-section); }
.detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.sec-lab { display: flex; align-items: center; font-size: 14px; font-weight: 700; }

.head-strip { display: flex; align-items: center; gap: 34px; padding: 14px 20px; margin-bottom: 16px; }
.hf-l { font-size: 11px; color: var(--text-secondary); margin-bottom: 3px; }
.hf-v { font-size: 14px; }
.head-badge { margin-left: auto; }
.badge-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 12px; border-radius: var(--radius); border: 1px solid; }
.badge-status.ok { color: var(--success); border-color: var(--success); }
.badge-status.warn { color: var(--warning); border-color: var(--warning); }
.badge-status.err { color: var(--error); border-color: var(--error); }

.video-card { padding: 16px; margin-bottom: 16px; }
.video-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cam-chip { width: 30px; height: 26px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius); cursor: pointer; font-size: 12px; color: var(--text-secondary); }
.cam-chip.on { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.vsep { width: 1px; height: 20px; background: var(--border); }
.skel-toggle { cursor: pointer; }
.chip.on.skel-toggle { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

.video-panel { position: relative; width: 100%; max-width: 720px; margin: 0 auto; aspect-ratio: 16 / 9; background: #1c2229; border-radius: 2px; overflow: hidden; display: grid; place-items: center; }
.video-panel video { width: 100%; height: 100%; object-fit: contain; display: block; background: #1c2229; }
.video-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.video-fallback .fb-text { color: #9fb0bc; font-size: 12px; max-width: 380px; line-height: 1.6; }
.video-fallback code { color: #cdd9e0; background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 2px; }
.video-ts { position: absolute; top: 10px; left: 12px; color: #dfe7ec; font-size: 12px; background: rgba(0,0,0,.35); padding: 2px 6px; border-radius: 2px; }

.video-controls { display: flex; align-items: center; gap: 12px; max-width: 720px; margin: 12px auto 0; }
.vc-btn { width: 34px; height: 30px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius); cursor: pointer; font-size: 13px; color: var(--text-primary); }
.vc-btn.play { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.vc-time { font-size: 12px; color: var(--text-secondary); }
.seek { flex: 1; appearance: none; height: 4px; border-radius: 2px; background: #d9e2e6; outline: none; }
.seek::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-primary); cursor: pointer; }
.seek::-moz-range-thumb { width: 12px; height: 12px; border: none; border-radius: 50%; background: var(--brand-primary); cursor: pointer; }

.order-card { padding: 16px 20px; margin-bottom: 16px; }
.seq-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.seq-lab { width: 40px; font-size: 12px; color: var(--text-secondary); flex: 0 0 auto; }
.seq-track { position: relative; flex: 1; height: 30px; }
.seq-seg { position: absolute; top: 0; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; white-space: nowrap; overflow: hidden; border-radius: 1px; box-sizing: border-box; }
.seq-seg.act { cursor: pointer; }
.seq-seg.warn { outline: 1.5px solid var(--warning); outline-offset: -1.5px; }
.seq-seg.active { box-shadow: inset 0 0 0 2px #fff; }
.playhead { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--brand-primary-dark); }
.playhead::before { content: ""; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-primary-dark); }
.seq-axis { position: relative; height: 18px; margin-left: 52px; margin-top: 4px; }
.seq-axis .tick { position: absolute; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); }
.seq-tip { position: absolute; top: 38px; z-index: 5; display: none; background: #232b33; color: #eef3f6; padding: 10px 12px; border-radius: 3px; font-size: 12px; min-width: 190px; }
.seq-tip .tip-row { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.seq-tip .tip-row span { color: #9fb0bc; }

.detail-bottom { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.takt-grid { margin-top: 6px; }
.takt-grid tr.playing td { background: var(--selection-bg); }
.takt-grid tr.playing td:first-child { box-shadow: inset 3px 0 0 var(--brand-primary); }
.memo-add { width: 100%; }
.memo-label { font-size: 12px; color: var(--text-secondary); margin: 16px 0 8px; }
.memo-editor { margin-top: 10px; }
.memo-list { padding: 14px; }
.memo-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
.memo-item:last-child { border-bottom: none; }
.memo-meta { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; }
.memo-text { font-size: 13px; line-height: 1.6; }

/* ---------- 作業記録 (03) ---------- */
.work-grid { display: grid; grid-template-columns: minmax(420px, 480px) 1fr; gap: 28px; align-items: start; }
.work-right { min-height: 640px; }
.trigger-box {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-page);
  padding: 16px; font-size: 14px; cursor: pointer; user-select: none;
}
.trigger-box:hover { border-color: var(--brand-primary); }
.trigger-box.recording { background: var(--brand-primary-light); border-color: var(--brand-primary); }
.trig-timer { font-size: 15px; font-weight: 700; color: var(--brand-primary-dark); }

/* ---------- Login (01) ---------- */
.login-screen { min-height: 100vh; background: #E7E9EA; display: grid; place-items: center; }
.login-window { width: 520px; background: var(--bg-page); border: 1px solid var(--border); }
.login-titlebar {
  height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); padding-right: 12px;
}
.login-body { background: var(--bg-section); padding: 28px 40px 20px; }
.login-card { background: var(--bg-page); padding: 32px; }
.login-title { font-size: 24px; font-weight: 700; }
.login-sub { font-size: 13px; color: var(--text-secondary); margin: 6px 0 22px; }
.login-btn { width: 100%; margin-top: 22px; padding: 12px; font-size: 14px; }
.login-status { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: var(--text-secondary); margin-top: 16px; }
.login-ver { text-align: center; font-size: 12px; color: var(--text-secondary); padding: 14px 0 4px; }

/* ---------- Utility ---------- */
.row { display: flex; }
.gap-16 { gap: 16px; }
.muted { color: var(--text-secondary); }
.grid-2col { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
