@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ============================================================
   タイムカードシステム 体験版

   実システム（Python/Flask + SQLite + NFCリーダー）の画面を、
   自社サイトのCSP（script-src 'self' / style-src 'self'）に合わせて
   外部CDNとインラインstyleを使わずに再現しています。
   Google Fonts だけは CSP で許可済みのため @import で読み込みます。
   ============================================================ */

:root {
  --bg-dark: #1a1a2e;
  --bg-panel: #1f1f38;
  --glass-bg: rgba(255, 255, 255, .05);
  --border-gold: rgba(212, 175, 55, .4);
  --text-main: #e0e0e0;
  --text-gold: #f4e7be;
  --text-dim: #9aa0b0;
  --line: rgba(255, 255, 255, .1);
  --input-bg: rgba(0, 0, 0, .3);
  --btn-in: linear-gradient(135deg, #2d5a45, #1e3c2e);
  --btn-out: linear-gradient(135deg, #6e3b3b, #4a2626);
  --btn-break: linear-gradient(135deg, #705e36, #4b3f24);
  --btn-back: linear-gradient(135deg, #365069, #233445);
  --ok: #2ecc71;
  --warn: #f1c40f;
  --ng: #e74c3c;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg-dark);
  background-image: radial-gradient(circle at 10% 20%, #1e1e32 0%, #1a1a2e 90%);
  color: var(--text-main);
  font-family: 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

.is-hidden { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 体験版バー ---------- */
.demo-bar {
  position: sticky; top: 0; z-index: 1200;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 9px 20px;
  background: #101024; color: #fff;
  border-bottom: 1px solid var(--border-gold);
  font-size: 12.5px; line-height: 1.5;
}
.demo-bar-tag {
  flex: 0 0 auto;
  padding: 3px 10px; border-radius: 50px;
  background: #f1d493; color: #1d3145;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
}
.demo-bar-text { flex: 1 1 260px; color: rgba(255, 255, 255, .86); margin: 0; }
.demo-bar-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; }
.demo-bar-actions a,
.demo-bar-actions button {
  padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 5px;
  background: transparent; color: #fff;
  font: inherit; font-size: 12px; font-weight: 700; text-decoration: none;
  cursor: pointer;
}
.demo-bar-actions a:hover,
.demo-bar-actions button:hover { background: rgba(255, 255, 255, .14); }

/* ---------- 共通部品 ---------- */
.shell { width: 100%; max-width: 1240px; margin: 0 auto; padding: 18px 20px 60px; }

.card {
  background: var(--glass-bg);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; }

.card h3 {
  margin: 0 0 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: 'Cinzel', 'Noto Sans JP', serif;
  font-size: 17px; color: var(--text-gold);
}
.card h3 small { display: block; font-family: 'Noto Sans JP', sans-serif; font-size: 11px; font-weight: 400; color: var(--text-dim); letter-spacing: 0; }

label { display: block; margin-bottom: 4px; font-size: 12px; opacity: .72; }

input, select {
  width: 100%; padding: 9px 10px; margin: 0 0 14px;
  background: var(--input-bg); border: 1px solid var(--line); border-radius: 8px;
  color: #fff; font: inherit; font-size: 14px; outline: none;
  transition: border-color .2s;
}
input:focus, select:focus { border-color: var(--text-gold); }
input[readonly] { color: var(--text-gold); cursor: default; }
select { appearance: none; padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 49%, #cfd4e0 50%), linear-gradient(-45deg, transparent 49%, #cfd4e0 50%);
  background-position: calc(100% - 15px) 18px, calc(100% - 10px) 18px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
select option { background: #21213c; color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border: none; border-radius: 8px;
  background: rgba(255, 255, 255, .08); color: #fff;
  font: inherit; font-size: 14px; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: filter .2s, background-color .2s, color .2s;
}
.btn:hover:not([disabled]) { filter: brightness(1.15); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-save { background: linear-gradient(135deg, #2d5a45, #1e3c2e); }
.btn-csv { background: linear-gradient(135deg, #2c3e50, #1a252f); border: 1px solid var(--line); }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .25); }
.btn-gold { background: linear-gradient(135deg, #d4af37, #8a7018); }
.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 7px; }
.btn-icon { padding: 5px 9px; font-size: 13px; }
.btn-edit { background: transparent; border: 1px solid #27ae60; color: #27ae60; }
.btn-edit:hover { background: #27ae60; color: #fff; }
.btn-del { background: transparent; border: 1px solid #c0392b; color: #c0392b; }
.btn-del:hover { background: #c0392b; color: #fff; }
.btn-select { background: rgba(212, 175, 55, .1); border: 1px solid var(--text-gold); color: var(--text-gold); border-radius: 15px; padding: 4px 10px; font-size: 12px; }
.btn-select:hover { background: var(--text-gold); color: var(--bg-dark); }
.btn-quick { background: rgba(46, 204, 113, .1); border: 1px solid var(--ok); color: var(--ok); }
.btn-quick:hover { background: var(--ok); color: var(--bg-dark); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-working { background: rgba(46, 204, 113, .18); color: var(--ok); border: 1px solid rgba(46, 204, 113, .32); }
.badge-break { background: rgba(241, 196, 15, .18); color: var(--warn); border: 1px solid rgba(241, 196, 15, .32); }
.badge-done { background: rgba(231, 76, 60, .18); color: var(--ng); border: 1px solid rgba(231, 76, 60, .32); }
.badge-review { background: rgba(241, 196, 15, .18); color: var(--warn); border: 1px solid rgba(241, 196, 15, .32); }

.hint { margin: 0; font-size: 11.5px; line-height: 1.8; color: var(--text-dim); }
.hint-gold { color: #d6bd82; }
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }

/* ---------- 画面ヘッダー（管理系） ---------- */
.app-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 18px;
}
.app-brand { font-family: 'Cinzel', 'Noto Sans JP', serif; font-size: 22px; color: var(--text-gold); letter-spacing: .02em; }
.app-brand small { display: block; font-family: 'Noto Sans JP', sans-serif; font-size: 11.5px; font-weight: 400; letter-spacing: 0; color: var(--text-dim); }
.app-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.app-nav a, .app-nav button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 20px;
  background: transparent; color: #fff; font: inherit; font-size: 12.5px;
  text-decoration: none; cursor: pointer; transition: background-color .2s;
}
.app-nav a:hover, .app-nav button:hover { background: rgba(255, 255, 255, .1); }
.app-nav .is-current { background: rgba(212, 175, 55, .16); border-color: var(--border-gold); color: var(--text-gold); }
.app-nav .nav-exit { border-color: rgba(231, 76, 60, .5); color: #e08a80; }
.app-nav .nav-exit:hover { background: rgba(231, 76, 60, .12); color: #ff6b6b; }

/* ============================================================
   打刻画面（キオスク）
   ============================================================ */
.kiosk-shell { width: 100%; max-width: 1240px; margin: 0 auto; padding: 18px 20px 48px; }

.kiosk-main {
  display: grid; grid-template-columns: 6fr 4fr;
  min-height: 460px;
  background: var(--glass-bg);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  overflow: hidden;
}

.kiosk-control { padding: 26px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }

.kiosk-title {
  display: flex; align-items: center; gap: 15px; margin-bottom: 20px;
  font-family: 'Cinzel', 'Noto Sans JP', serif; font-size: 20px; color: var(--text-gold);
  letter-spacing: .04em; text-shadow: 0 2px 5px rgba(0, 0, 0, .5); white-space: nowrap;
}
.kiosk-title-line { flex: 1 1 auto; height: 1px; background: linear-gradient(to right, var(--border-gold), transparent); }

.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; flex: 1 1 auto; }

.mode-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 118px; padding: 14px 8px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px;
  color: #fff; font: inherit; font-size: 20px; font-weight: 700;
  cursor: pointer; transition: transform .2s, filter .2s, box-shadow .2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .3);
}
.mode-btn .mode-icon { font-size: 30px; line-height: 1; opacity: .85; }
.mode-btn .mode-en { font-family: 'Cinzel', serif; font-size: 11px; font-weight: 400; opacity: .7; letter-spacing: .08em; }
.mode-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.mode-btn.is-active { border: 2px solid var(--text-gold); box-shadow: 0 0 22px rgba(212, 175, 55, .3); }
.mode-in { background: var(--btn-in); }
.mode-out { background: var(--btn-out); }
.mode-break-start { background: var(--btn-break); }
.mode-break-end { background: var(--btn-back); }

.kiosk-status {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 58px; margin-top: 20px; padding: 8px 18px;
  background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .05); border-radius: 50px;
}
.kiosk-message { font-size: 15px; color: #bbb; letter-spacing: .02em; }
.kiosk-message.is-ok { color: var(--text-gold); font-weight: 700; text-shadow: 0 0 10px rgba(212, 175, 55, .5); }
.kiosk-message.is-ng { color: #ff6b6b; font-weight: 700; text-shadow: 0 0 10px rgba(255, 107, 107, .4); }

.kiosk-list { display: flex; flex-direction: column; padding: 20px; background: rgba(0, 0, 0, .2); }
.kiosk-list-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
  font-family: 'Cinzel', serif; font-weight: 600; color: var(--text-gold); font-size: 15px;
}
.kiosk-list-head a { color: rgba(255, 255, 255, .35); font-size: 20px; text-decoration: none; transition: color .2s; }
.kiosk-list-head a:hover { color: var(--text-gold); }
.kiosk-list-body { flex: 1 1 auto; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.kiosk-list-body::-webkit-scrollbar { width: 6px; }
.kiosk-list-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 3px; }

.staff-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 10px; padding: 11px 14px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .05); border-radius: 12px;
}
.staff-row-name { font-size: 15px; font-weight: 700; color: #fff; }
.staff-row-time { font-size: 12px; color: #8a90a0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.kiosk-empty { margin-top: 44px; text-align: center; color: #565d72; font-family: 'Cinzel', serif; font-size: 14px; }

/* ---------- 体験版のカードリーダー ---------- */
.reader {
  margin-top: 18px; padding: 18px 20px;
  background: rgba(0, 0, 0, .25); border: 1px dashed var(--border-gold); border-radius: 18px;
}
.reader-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.reader-tag {
  padding: 3px 10px; border-radius: 50px; background: rgba(212, 175, 55, .16);
  border: 1px solid var(--border-gold); color: var(--text-gold);
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.reader-lead { flex: 1 1 260px; margin: 0; font-size: 12px; line-height: 1.7; color: var(--text-dim); }
.reader-clock { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; color: var(--text-gold); }
.reader-clock small { display: block; font-family: 'Noto Sans JP', sans-serif; font-size: 10.5px; color: var(--text-dim); text-align: right; }

.card-tray { display: flex; flex-wrap: wrap; gap: 10px; }
.nfc-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-width: 150px; padding: 10px 14px;
  background: linear-gradient(135deg, #2b2b4a, #232339);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px;
  color: #fff; font: inherit; text-align: left; cursor: pointer;
  transition: transform .15s, border-color .2s, box-shadow .2s;
}
.nfc-card:hover { transform: translateY(-2px); border-color: var(--text-gold); box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.nfc-card:active { transform: scale(.98); }
.nfc-card-name { font-size: 14px; font-weight: 700; }
.nfc-card-sub { font-size: 10.5px; color: #8a90a0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.nfc-card-role { font-size: 10.5px; color: #98a2c0; }
.nfc-card.is-unknown { background: linear-gradient(135deg, #3a2f2a, #2a2320); border-style: dashed; }
.nfc-card.is-retired { background: linear-gradient(135deg, #37293a, #261d28); border-style: dashed; }

/* ============================================================
   ダッシュボード / 管理画面
   ============================================================ */
/* グリッド内でも表だけが横スクロールするよう、最小幅の自動計算を止める */
.table-wrap { overflow-x: auto; max-width: 100%; }

table.data {
  width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px;
}
table.data th {
  padding: 9px 8px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--border-gold);
  font-family: 'Cinzel', 'Noto Sans JP', serif; font-size: 11.5px; font-weight: 600;
  color: var(--text-gold); letter-spacing: .05em;
}
table.data td { padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; }
table.data tbody tr:hover { background: rgba(255, 255, 255, .03); }
table.data .col-name { font-weight: 700; color: #fff; white-space: nowrap; }
table.data .col-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #9aa0b0; }
table.data .col-worktime { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--text-gold); white-space: nowrap; }
table.data .col-act { white-space: nowrap; }
table.data .empty-row { padding: 34px 8px; text-align: center; color: #5c6379; }

.cell-input { margin: 0; padding: 5px 7px; font-size: 13px; }
.cell-input-time { width: 104px; }
.cell-input-code { width: 84px; }
.cell-input-name { width: 130px; }
.cell-input-date { width: 138px; }
.cell-input-pw { width: 66px; }
.cell-input-idm { width: 152px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
.cell-select { margin: 0; padding: 5px 24px 5px 7px; font-size: 13px; width: 86px;
  background-position: calc(100% - 13px) 13px, calc(100% - 8px) 13px; }
.break-pair { display: flex; align-items: center; gap: 5px; }
.break-pair span { color: #7b8298; font-size: 12px; }
.break-fixed { font-size: 12px; color: #c9cede; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.break-total { font-size: 11px; color: #8a90a0; }
.card-cell { display: flex; align-items: center; gap: 6px; }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
  margin-bottom: 16px; padding: 14px 16px;
  background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: 12px;
}
.toolbar .field { margin: 0; }
.toolbar label { margin-bottom: 3px; }
.toolbar input, .toolbar select { margin: 0; }
.toolbar-title { flex: 1 1 200px; font-size: 15px; font-weight: 700; color: var(--text-gold); }
.toolbar-title small { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-dim); }
.field-date input { width: 158px; }
.field-time input { width: 110px; }
.field-emp select { width: 168px; }
.field-type select { width: 96px; }

.manual-box {
  margin-top: 18px; padding: 16px;
  background: rgba(212, 175, 55, .06); border: 1px solid rgba(212, 175, 55, .22); border-radius: 12px;
}
.manual-box h4 { margin: 0 0 12px; font-size: 14px; color: var(--text-gold); }
.manual-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.manual-row .field { margin: 0; }
.manual-row label { margin-bottom: 3px; }
.manual-row input, .manual-row select { margin: 0; }

.admin-grid { display: grid; grid-template-columns: 352px 1fr; gap: 18px; align-items: start; }
.admin-grid > *, .admin-col > * { min-width: 0; }
.admin-col { display: grid; gap: 18px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

.unknown-list { list-style: none; margin: 0; padding: 0; }
.unknown-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
  padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); font-size: 13px;
}
.unknown-list li:last-child { border-bottom: none; }
.unknown-idm { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #d8dce8; }
.unknown-meta { display: block; font-size: 10.5px; color: #8a90a0; }
.unknown-retired { display: block; font-size: 10.5px; color: #d8a0a0; }
.unknown-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.unknown-empty { padding: 14px 0; color: #5c6379; font-size: 12.5px; }

.csv-preview-note { margin: 0 0 12px; font-size: 12px; color: var(--text-dim); }
table.csv-table { width: 100%; min-width: 1100px; border-collapse: collapse; font-size: 11.5px; }
table.csv-table th, table.csv-table td {
  padding: 5px 7px; border: 1px solid rgba(255, 255, 255, .1); white-space: nowrap;
}
table.csv-table th { background: rgba(212, 175, 55, .1); color: var(--text-gold); font-weight: 600; font-size: 10.5px; }
table.csv-table td { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #ccd1de; }
table.csv-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }

/* ---------- ログイン ---------- */
.login-wrap { max-width: 420px; margin: 40px auto 0; }
.login-wrap .card { padding: 30px; }
.login-title { font-family: 'Cinzel', serif; font-size: 22px; color: var(--text-gold); text-align: center; margin-bottom: 6px; }
.login-sub { margin: 0 0 22px; text-align: center; font-size: 12px; color: var(--text-dim); }
.login-note { margin-top: 18px; padding: 12px 14px; background: rgba(212, 175, 55, .08); border: 1px solid rgba(212, 175, 55, .22); border-radius: 10px; }
.login-note p { margin: 0; font-size: 12px; line-height: 1.8; color: #d6bd82; }
.login-note code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-gold); }
.login-error { margin: 0 0 16px; padding: 10px 12px; background: rgba(231, 76, 60, .14); border: 1px solid rgba(231, 76, 60, .35); border-radius: 8px; color: #ff9c92; font-size: 13px; }

/* ---------- モーダル ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 1500;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, .72);
}
.overlay:empty { display: none; }

.confirm-modal {
  width: 100%; max-width: 520px; padding: 34px 30px; text-align: center;
  background: var(--bg-dark); border: 2px solid var(--text-gold); border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .6), 0 0 30px rgba(212, 175, 55, .28);
}
.confirm-name { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.confirm-action { font-size: 18px; color: var(--text-gold); line-height: 1.5; margin-bottom: 26px; }
.confirm-action .confirm-warn { color: #ff6b6b; }
.confirm-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.confirm-buttons .btn { min-width: 150px; padding: 13px 24px; font-size: 16px; }

.dialog {
  width: 100%; max-width: 860px; max-height: 86vh; display: flex; flex-direction: column;
  background: var(--bg-panel); border: 1px solid var(--border-gold); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}
.dialog-wide { max-width: 1160px; }
.dialog-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.dialog-head h4 { font-family: 'Cinzel', 'Noto Sans JP', serif; font-size: 17px; color: var(--text-gold); }
.dialog-body { padding: 20px; overflow: auto; }
.dialog-body h5 { margin: 18px 0 6px; font-size: 14px; color: var(--text-gold); }
.dialog-body h5:first-child { margin-top: 0; }
.dialog-body p, .dialog-body li { font-size: 13px; line-height: 1.9; color: #cfd4e0; }
.dialog-body p { margin: 0 0 8px; }
.dialog-body ol, .dialog-body ul { margin: 0 0 10px; padding-left: 1.3em; }
.dialog-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.dialog-close { background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 8px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.dialog-close:hover { background: rgba(255, 255, 255, .1); }

/* ---------- トースト ---------- */
.toast-area { position: fixed; right: 16px; bottom: 16px; z-index: 1600; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast {
  padding: 11px 15px; border-radius: 10px; font-size: 13px; line-height: 1.7;
  background: #262644; border: 1px solid var(--border-gold); color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}
.toast.is-ok { border-color: rgba(46, 204, 113, .5); }
.toast.is-error { border-color: rgba(231, 76, 60, .6); }

/* ============================================================
   レスポンシブ（印刷には影響させないため screen に限定）
   ============================================================ */
@media screen and (max-width: 960px) {
  .admin-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 860px) {
  .kiosk-main { grid-template-columns: 1fr; min-height: 0; }
  .kiosk-control { border-right: none; border-bottom: 1px solid var(--line); }
  .kiosk-list-body { max-height: none; }
}

@media screen and (max-width: 560px) {
  body { font-size: 14px; }
  .demo-bar { padding: 8px 14px; }
  .shell, .kiosk-shell { padding: 14px 14px 44px; }
  .card { padding: 16px; border-radius: 14px; }
  .kiosk-main { border-radius: 18px; }
  .kiosk-control { padding: 18px 16px; }
  .kiosk-title { font-size: 15px; white-space: normal; }
  .mode-grid { gap: 10px; }
  .mode-btn { min-height: 96px; font-size: 16px; border-radius: 13px; }
  .mode-btn .mode-icon { font-size: 24px; }
  .kiosk-message { font-size: 13px; }
  .kiosk-status { border-radius: 18px; padding: 10px 14px; }
  .kiosk-list { padding: 16px; }
  .reader { padding: 14px; }
  .nfc-card { min-width: 0; flex: 1 1 calc(50% - 5px); padding: 9px 11px; }
  .nfc-card-name { font-size: 13px; }
  .app-brand { font-size: 18px; }
  .confirm-modal { padding: 24px 18px; }
  .confirm-name { font-size: 22px; }
  .confirm-action { font-size: 15px; }
  .confirm-buttons .btn { min-width: 0; flex: 1 1 120px; }
  .overlay { padding: 12px; }
  .dialog { max-height: 90vh; }
  .dialog-body { padding: 16px; }
  .toolbar { padding: 12px; }
  .field-date input, .field-time input, .field-emp select { width: 100%; }
  .toolbar .field, .manual-row .field { flex: 1 1 128px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- この体験版について ----------
   画面本体は JS が #app に描くため、JS を実行しない読み手（検索・AIのクローラー）には
   中身が見えない。概要と開発例へのリンクを #app の外に静的に置いている。 */
.demo-about { border-top: 1px solid var(--line); margin-top: 24px; }
.demo-about-inner { max-width: 1240px; margin: 0 auto; padding: 28px 20px 64px; color: var(--text-dim); font-size: 13px; line-height: 1.85; }
.demo-about h2 { margin: 0 0 10px; color: var(--text-gold); font-size: 15px; letter-spacing: .04em; }
.demo-about p { margin: 0 0 10px; max-width: 760px; }
.demo-about-label { color: var(--text-main); font-weight: 700; margin-bottom: 4px; }
.demo-about ul { margin: 0 0 12px; padding-left: 1.4em; }
.demo-about a { color: var(--text-gold); }
.demo-about-by { margin-top: 16px; font-size: 12px; }
@media print { .demo-about { display: none !important; } }
