:root {
  --ink: #1e2d39;
  --ink-soft: #45545f;
  --navy: #203f58;
  --navy-deep: #173247;
  --navy-pale: #e9eff3;
  --green: #486b59;
  --green-pale: #edf3ef;
  --gold: #a98b58;
  --gold-pale: #f4efe5;
  --canvas: #f3f1ec;
  --surface: #ffffff;
  --surface-alt: #faf9f6;
  --line: #d8d6cf;
  --line-strong: #b9b8b3;
  --muted: #68747c;
  --danger: #9c403c;
  --danger-pale: #faf0ef;
  --warning: #8a641d;
  --warning-pale: #fbf5e8;
  --shadow-sm: 0 2px 7px rgba(25, 40, 50, .05);
  --shadow-md: 0 14px 36px rgba(28, 43, 52, .07);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { min-width: 320px; font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Yu Gothic UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-feature-settings: "palt" 1;
  letter-spacing: .015em;
  line-height: 1.75;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
form { margin: 0; }
.hidden { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(38, 83, 116, .26);
  outline-offset: 2px;
}

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 24px;
  background: var(--canvas);
}
.login-page::before {
  position: fixed;
  inset: 0 0 auto 0;
  height: 5px;
  content: "";
  background: var(--navy-deep);
}
.login-card {
  width: min(100%, 540px);
  padding: 46px 50px 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(27, 43, 53, .11);
}
.login-brand {
  margin: -6px 0 34px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}
.login-logo { display: block; width: min(100%, 300px); margin: 0 auto; }
.login-brand span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  text-align: center;
  font-size: .78rem;
  letter-spacing: .09em;
}
.login-card h1 { margin-bottom: 8px; }
.login-card .lead { margin: 0 0 27px; }
.login-support {
  display: grid;
  gap: 2px;
  margin-top: 31px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: .82rem;
}
.login-support strong { color: var(--ink-soft); }
.demo-note { margin: 20px 0; padding: 15px; border: 1px solid #bdcbd4; background: #f1f5f7; color: var(--navy); }
.quick-login { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.quick-login button { min-height: 46px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; cursor: pointer; }

/* Global shell */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-top: 4px solid var(--navy-deep);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 12px rgba(28, 43, 52, .035);
}
.brand-wrap { min-width: 0; display: flex; align-items: center; gap: 22px; }
.brand-logo { width: 214px; max-height: 61px; object-fit: contain; }
.product-name {
  padding-left: 22px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}
.account { display: grid; justify-items: end; line-height: 1.45; }
.account-context { color: var(--muted); font-size: .74rem; letter-spacing: .05em; }
.account strong { color: var(--ink); font-size: .92rem; }
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-size: 1.25rem;
  cursor: pointer;
}
.app-layout { min-height: calc(100vh - 88px); display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 88px;
  height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 30px 20px 22px;
  border-right: 1px solid var(--line);
  background: #fbfaf7;
}
.sidebar-title {
  padding: 0 12px 17px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.sidebar nav { display: grid; gap: 5px; }
.nav-link {
  position: relative;
  min-height: 55px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #394955;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.nav-link:hover { border-color: #dfe2df; background: #fff; color: var(--navy); }
.nav-link.active {
  border-color: #cdd8df;
  background: var(--navy-pale);
  color: var(--navy-deep);
}
.nav-link.active::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -1px;
  width: 3px;
  content: "";
  background: var(--navy);
}
.nav-icon {
  flex: 0 0 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd2d6;
  border-radius: 5px;
  background: #fff;
  color: var(--navy);
  font-size: .72rem;
  font-weight: 900;
}
.nav-link.active .nav-icon { border-color: var(--navy); background: var(--navy); color: #fff; }
.nav-label { min-width: 0; flex: 1; }
.nav-count {
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border: 2px solid #fff;
  border-radius: 13px;
  background: var(--danger);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(112, 39, 36, .18);
}
.sidebar-foot {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding: 17px 14px 3px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
}
.sidebar-foot strong { color: var(--ink-soft); font-size: .82rem; }
.sidebar-logout { width: 100%; margin-top: 12px; }
.main { min-width: 0; padding: 44px 48px 88px; }
.content { width: min(100%, 1320px); margin: 0 auto; }

/* Typography */
.eyebrow {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.45; letter-spacing: .01em; }
h1 { margin-bottom: 29px; color: #182b39; font-size: clamp(1.72rem, 2.7vw, 2.2rem); font-weight: 760; }
h2 { margin-bottom: 18px; font-size: 1.25rem; }
h3 { margin-bottom: 12px; font-size: 1.02rem; }
p { overflow-wrap: anywhere; }
.lead { color: var(--muted); }
.page-heading, .support-overview {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-heading h1, .support-overview h1 { margin-bottom: 5px; }
.page-heading p, .support-overview p { margin: 0; color: var(--muted); }

/* Messages */
.notice {
  margin-bottom: 23px;
  padding: 15px 18px;
  border: 1px solid #dbc99e;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: var(--warning-pale);
  color: #6c531f;
}
.notice.success, .success { border-color: #bacdc1; border-left-color: var(--green); background: var(--green-pale); color: #345443; }
.notice.error, .error { border-color: #dec0bd; border-left-color: var(--danger); background: var(--danger-pale); color: #7d3532; }
.demo-bar { padding: 8px 14px; border-bottom: 1px solid #cbd5db; background: #edf2f4; color: var(--navy); text-align: center; font-size: .82rem; font-weight: 700; }

/* Cards and dashboard */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
.stat, .panel, .confirm-panel, .chat-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.stat {
  position: relative;
  min-height: 124px;
  padding: 25px 25px 21px;
  overflow: hidden;
}
.stat::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--navy);
}
.stat:nth-child(2)::before { background: var(--gold); }
.stat:nth-child(3)::before { background: var(--green); }
.stat span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.stat strong { display: block; margin-top: 9px; color: var(--ink); font-size: 1.55rem; font-weight: 760; }
.panel { overflow: hidden; }
.panel-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-caption { color: var(--muted); font-size: .8rem; font-weight: 700; }
.panel-body { padding: 28px; }
.panel + .panel { margin-top: 28px; }
.section-gap, .field-top { margin-top: 28px; }
.inner-head { margin: -23px -23px 22px; border-radius: 9px 9px 0 0; }

/* Forms */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.search { flex: 1; }
.field { min-width: 0; display: grid; align-content: start; gap: 8px; }
.field label { color: #35444f; font-size: .84rem; font-weight: 800; }
.field small { color: var(--muted); }
.input, select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #bfc5c7;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 124px; resize: vertical; }
.input:hover, select:hover, textarea:hover { border-color: #919da3; }
.input:focus, select:focus, textarea:focus { outline: none; border-color: #446b87; box-shadow: 0 0 0 3px rgba(42, 79, 105, .12); }
.grid-2, .grid-3 { display: grid; column-gap: 22px; row-gap: 23px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-section {
  margin-bottom: 24px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.item-card { background: #fdfdfc; box-shadow: none; }
.read-value { min-height: 50px; padding: 12px 14px; border: 1px solid #e1e2df; border-radius: 6px; background: #f6f6f3; font-weight: 700; }
.file-input { padding: 9px; }
.file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.file-list span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fafafa; font-size: .82rem; }
.check-line { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: .9rem; }
.check-line input { width: 20px; height: 20px; accent-color: var(--navy); }
.form-submit { margin-top: 28px; }
.confirm-submit-form { display: block; }

/* Buttons */
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--navy-deep);
  border-radius: 6px;
  background: var(--navy-deep);
  color: #fff;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.button:hover { background: #264d69; border-color: #264d69; box-shadow: 0 5px 14px rgba(25, 54, 75, .13); transform: translateY(-1px); }
.button.primary { border-color: var(--navy); background: var(--navy); }
.button.green { border-color: var(--green); background: var(--green); }
.button.light { border-color: #c8cbca; background: #fff; color: var(--navy-deep); }
.button.light:hover { border-color: #9fa9ae; background: #f7f7f5; }
.button.danger { border-color: var(--danger); background: var(--danger); }
.button.disabled, .button:disabled { pointer-events: none; opacity: .46; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.actions form { margin: 0; }
.full-button { width: 100%; margin-top: 24px; }

/* Quotes and detail */
.quote-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 165px minmax(150px, 1.1fr) minmax(230px, 1.7fr) 110px 120px;
  align-items: center;
  gap: 16px;
  padding: 13px 23px;
  border-bottom: 1px solid #e5e4df;
  text-decoration: none;
  transition: background .15s ease;
}
.quote-row:last-child { border-bottom: 0; }
.quote-row:hover { background: #f8f8f5; }
.quote-number { color: var(--navy); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; font-weight: 800; }
.quote-row strong, .quote-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  width: fit-content;
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid #dfc98f;
  border-radius: 4px;
  background: #fbf4df;
  color: #7b5d18;
  font-size: .75rem;
  font-weight: 800;
}
.badge.done { border-color: #bdd0c3; background: #eef5f0; color: #3c624d; }
.badge.order { border-color: #bdcbd4; background: #edf2f5; color: #294e69; }
.empty { padding: 52px 20px; color: var(--muted); text-align: center; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.detail-item { min-width: 0; padding: 15px 17px; background: #fbfbf9; }
.detail-item small { display: block; color: var(--muted); font-size: .76rem; }
.detail-item strong { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.table-wrap { width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 7px; }
.detail-table { min-width: 760px; border: 0 !important; }
.detail-table th:first-child, .detail-table td:first-child { border-left: 0; }
.detail-table th:last-child, .detail-table td:last-child { border-right: 0; }
.receipt-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}
.receipt-summary > div { min-width: 0; padding: 14px 16px; background: #f8f8f5; }
.receipt-summary small { display: block; color: var(--muted); font-size: .72rem; }
.receipt-summary strong { display: block; margin-top: 3px; overflow-wrap: anywhere; font-size: .9rem; }
.document-actions { display: grid; gap: 9px; margin-top: 22px; }
.document-action-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.document-action-group > span { width: 128px; color: var(--muted); font-size: .8rem; font-weight: 800; }
.document-action-group .button { min-height: 39px; padding: 6px 13px; }
.receipt-resend { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
.image-card { display: grid; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--navy); text-decoration: none; }
.image-card img { width: 100%; height: 135px; border-radius: 4px; object-fit: cover; background: #efefec; }
.image-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }

/* Accounts */
.account-row { padding: 25px 27px; border-bottom: 1px solid #e5e4df; }
.account-row:last-child { border-bottom: 0; }
.account-row small { display: block; margin-bottom: 5px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.account-summary { display: grid; grid-template-columns: 150px minmax(240px, 1.5fr) minmax(130px, .5fr); gap: 26px; align-items: start; }
.account-summary strong, .account-summary span { display: block; }
.account-summary > div > span:not(.badge) { margin-top: 4px; color: var(--ink-soft); }
.account-actions { padding-top: 19px; border-top: 1px dashed #d8d8d3; }
.inline-form { min-width: 0; flex: 1 1 420px; display: flex; gap: 8px; }
.account-row .inline-form .input { min-width: 220px; }
.delete-control { margin-left: auto; }
.delete-control > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #d5aaa7;
  border-radius: 6px;
  color: var(--danger);
  cursor: pointer;
  font-size: .86rem;
  font-weight: 800;
  list-style: none;
}
.delete-control > summary::-webkit-details-marker { display: none; }
.delete-control form { width: min(100%, 540px); margin-top: 10px; padding: 17px; border: 1px solid #dfc2bf; border-radius: 7px; background: var(--danger-pale); }
.delete-control label { display: block; margin-bottom: 8px; color: #713b38; font-size: .8rem; font-weight: 700; }

/* Confirmation and receipt request */
.confirm-panel { margin-bottom: 23px; padding: 28px; box-shadow: var(--shadow-md); }
.confirm-list { margin: 0 0 24px; }
.confirm-list > div { display: grid; grid-template-columns: 185px 1fr; gap: 22px; padding: 13px 3px; border-bottom: 1px solid #e5e4df; }
.confirm-list dt { color: var(--muted); font-size: .84rem; font-weight: 700; }
.confirm-list dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.confirm-item { margin: 9px 0; padding: 14px 17px; border-left: 3px solid var(--navy); background: #f5f7f7; }
.confirm-item p { margin: 5px 0 0; color: var(--ink-soft); font-size: .9rem; }
.final-warning { margin-bottom: 24px; padding: 17px 19px; border: 1px solid #d9c58f; border-left: 4px solid var(--gold); border-radius: 6px; background: var(--warning-pale); color: #6b531f; }
.receipt-request { margin-top: 27px; padding: 23px; border: 1px solid #cdd6d1; border-radius: 8px; background: #f6f8f6; }
.receipt-request-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 21px; }
.receipt-request-head h2 { margin-bottom: 4px; }
.receipt-request-head p { margin: 0; color: var(--muted); font-size: .86rem; }
.switch-check {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid #bfcac3;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 800;
  white-space: nowrap;
}
.switch-check input { width: 20px; height: 20px; accent-color: var(--green); }

/* History */
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; margin-left: 8px; padding: 0 0 22px 27px; border-left: 1px solid #b9c6ce; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { position: absolute; top: 6px; left: -6px; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; content: ""; background: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.timeline time { display: block; margin-bottom: 5px; color: var(--muted); font-size: .76rem; }
.timeline-card { padding: 15px 17px; border: 1px solid var(--line); border-radius: 7px; background: #fbfbf9; }
.timeline-card p { margin: 4px 0; color: var(--ink-soft); }
.timeline-card small { color: var(--muted); }

/* Support */
.support-summary { min-width: 178px; padding: 17px 20px; border: 1px solid #d7b7b4; border-left: 4px solid var(--danger); border-radius: 7px; background: #fff; }
.support-summary strong { display: block; color: var(--danger); font-size: 1.58rem; line-height: 1; }
.support-summary span { display: block; margin-top: 7px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.support-facility-list { display: grid; }
.support-facility-list a {
  min-height: 88px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 16px 23px;
  border-bottom: 1px solid #e5e4df;
  color: var(--ink);
  text-decoration: none;
}
.support-facility-list a:last-child { border-bottom: 0; }
.support-facility-list a:hover { background: #f8f8f5; }
.support-facility-item.has-unread { background: #f1f5f7; }
.support-avatar { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #bdc9d0; border-radius: 6px; background: #fff; color: var(--navy) !important; font-weight: 900; }
.support-item-body { min-width: 0; }
.support-item-body strong { display: block; overflow-wrap: anywhere; }
.support-item-body > span { display: block; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.support-item-meta { display: grid; justify-items: end; gap: 7px; }
.support-item-meta time { color: var(--muted); font-size: .72rem; }
.support-item-meta b { min-width: 26px; height: 26px; display: grid; place-items: center; padding: 0 7px; border-radius: 13px; background: var(--danger); color: #fff; font-size: .72rem; }
.chat-panel { overflow: hidden; box-shadow: var(--shadow-md); }
.chat-log { min-height: 340px; max-height: 650px; overflow-y: auto; padding: 30px; background: #eeece7; }
.chat-message { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 20px; }
.chat-message.mine { align-items: flex-end; }
.chat-meta { margin: 0 5px 5px; color: var(--muted); font-size: .72rem; }
.chat-bubble { max-width: min(78%, 740px); padding: 13px 16px; border: 1px solid #cfcfc9; border-radius: 3px 9px 9px 9px; background: #fff; overflow-wrap: anywhere; box-shadow: 0 2px 5px rgba(36, 44, 48, .04); }
.chat-message.mine .chat-bubble { border-color: #bac9c0; border-radius: 9px 3px 9px 9px; background: #e6eee9; }
.chat-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.chat-images img { width: 118px; height: 94px; border-radius: 5px; object-fit: cover; }
.chat-form { display: grid; gap: 15px; padding: 24px 27px; border-top: 1px solid var(--line); background: #fff; }

/* Notifications */
.notification-status { padding: 7px 11px; border: 1px solid #bdcec3; border-radius: 4px; background: var(--green-pale); color: var(--green); font-size: .76rem; font-weight: 800; }
.notification-list { display: grid; }
.notification-item {
  position: relative;
  min-height: 94px;
  display: grid;
  grid-template-columns: 11px 42px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e4df;
  background: #fff;
  text-decoration: none;
}
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: #f9f9f6; }
.notification-item.is-new { background: #f2f5f6; }
.notification-dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.notification-item.is-new .notification-dot { background: var(--danger); }
.notification-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #bdc8ce; border-radius: 5px; background: #f7f8f8; color: var(--navy); font-size: .78rem; font-weight: 900; }
.notification-body { min-width: 0; display: grid; gap: 2px; }
.notification-body strong { color: var(--ink); }
.notification-body strong small { margin-left: 6px; color: var(--navy); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.notification-body > span { overflow: hidden; color: var(--ink-soft); text-overflow: ellipsis; white-space: nowrap; }
.notification-body time { color: var(--muted); font-size: .72rem; }

/* Manual and FAQ */
.help-steps { position: relative; display: grid; gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-md); }
.help-steps section {
  min-height: 150px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: start;
  gap: 25px;
  padding: 29px 34px;
  border-bottom: 1px solid #e3e2dc;
  background: #fff;
}
.help-steps section:first-child { border-radius: 9px 9px 0 0; }
.help-steps section:last-child { border-bottom: 0; border-radius: 0 0 9px 9px; }
.help-steps section:nth-child(even) { background: #fbfaf7; }
.help-steps section > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #aebfc9;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 700;
}
.help-steps h2 { margin: 1px 0 8px; color: var(--navy-deep); font-size: 1.15rem; }
.help-steps p { max-width: 900px; margin: 0; color: var(--ink-soft); line-height: 1.95; }
.faq-list { display: grid; }
.faq-list details { border-bottom: 1px solid #e3e2dc; background: #fff; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list details[open] { background: #fbfaf7; }
.faq-list summary { position: relative; padding: 21px 62px 21px 58px; cursor: pointer; list-style: none; color: var(--ink); font-weight: 800; line-height: 1.6; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { position: absolute; top: 19px; left: 23px; color: var(--gold); content: "Q"; font-family: Georgia, serif; font-size: 1.05rem; font-weight: 800; }
.faq-list summary::after { position: absolute; top: 50%; right: 25px; content: "+"; color: var(--navy); font-size: 1.35rem; font-weight: 400; transform: translateY(-50%); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0; padding: 0 28px 24px 58px; color: var(--ink-soft); line-height: 1.9; }

/* Shared tables */
.print-table { width: 100%; border-collapse: collapse; background: #fff; }
.print-table th, .print-table td { padding: 11px 12px; border: 1px solid #c9cbc9; text-align: left; }
.print-table th { background: #f1f1ee; color: #34434e; font-size: .8rem; }
.print-table td { font-size: .9rem; }

/* Browser document preview */
.document-body { min-width: 320px; padding: 0 0 54px; background: #e8e6e1; }
.document-controls {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 28px;
  border-bottom: 1px solid #c7c7c3;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 3px 14px rgba(30, 38, 42, .07);
}
.document-controls > div:first-child { display: grid; line-height: 1.4; }
.document-controls span { color: var(--muted); font-size: .74rem; }
.document-controls .actions { margin: 0; }
.business-document {
  width: 210mm;
  min-height: 297mm;
  margin: 24px auto;
  padding: 15mm 13mm 12mm;
  background: #fff;
  box-shadow: 0 14px 42px rgba(29, 38, 43, .16);
  color: #111;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-feature-settings: normal;
  letter-spacing: 0;
  line-height: 1.45;
}
.document-heading { position: relative; min-height: 76px; }
.document-title { text-align: center; }
.document-title h1 { margin: 0; color: #111; font-size: 24pt; font-weight: 700; letter-spacing: .15em; }
.document-title p { margin: 3px 0 0; font-size: 9pt; }
.document-date { position: absolute; top: 41px; right: 0; margin: 0; font-size: 8.5pt; }
.document-parties { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; margin-top: 8px; }
.document-customer > p { margin: 0 0 5px; font-size: 9pt; }
.document-customer h2 { margin: 0 0 7px; padding-bottom: 5px; border-bottom: 1px solid #111; font-size: 13pt; }
.document-contact { display: flex; gap: 22px; font-size: 7.5pt; }
.document-issuer { display: grid; align-content: start; justify-items: end; font-size: 7.5pt; line-height: 1.45; text-align: right; }
.document-operator-logo { width: 118px; max-height: 58px; margin-bottom: 5px; object-fit: contain; }
.document-issuer strong { margin-bottom: 3px; font-size: 10pt; }
.document-message { margin: 22px 0 10px; font-size: 8.5pt; }
.document-meta-table { width: 100%; border-collapse: collapse; font-size: 8pt; }
.document-meta-table th, .document-meta-table td { height: 23px; padding: 3px 7px; border: 1px solid #111; }
.document-meta-table th { width: 110px; background: #ededeb; font-weight: 700; text-align: center; }
.document-total { height: 43px; display: grid; grid-template-columns: 165px 1fr; align-items: center; margin-top: 12px; border: 1.5px solid #111; }
.document-total span { height: 100%; display: grid; place-items: center; border-right: 1px solid #111; background: #ededeb; font-size: 10pt; font-weight: 700; }
.document-total strong { padding: 0 16px; font-size: 18pt; text-align: right; }
.document-lines { width: 100%; margin-top: 12px; border-collapse: collapse; table-layout: fixed; font-size: 7.5pt; }
.document-lines th, .document-lines td { height: 36px; padding: 3px 5px; border: 1px solid #111; vertical-align: middle; overflow-wrap: anywhere; }
.document-lines th { height: 29px; background: #ededeb; text-align: center; line-height: 1.25; }
.document-lines td small, .document-lines td strong { display: block; }
.document-lines td small { font-size: 6.5pt; }
.document-lines td strong { font-weight: 400; }
.document-lines .blank-row td { height: 34px; }
.document-lines .col-number { width: 32px; }
.document-lines .col-quantity { width: 44px; }
.document-lines .col-unit { width: 38px; }
.document-lines .col-price { width: 72px; }
.document-lines .col-note { width: 84px; }
.center { text-align: center !important; }
.right { text-align: right !important; }
.document-caution { margin: 12px 0 8px; font-size: 7pt; }
.document-order-box { margin-top: 10px; border: 1.5px solid #111; font-size: 7.5pt; }
.document-order-box h2 { margin: 0 0 7px; padding: 4px; border-bottom: 1px solid #111; background: #ededeb; font-size: 8pt; text-align: center; }
.document-order-box p { margin: 7px 9px; }
.document-order-box > strong { display: block; margin: 7px 9px; text-align: right; }
.document-remarks { margin-top: 12px; border-top: 3px solid #111; }
.document-remarks h2 { margin: 0; padding: 4px 3px; border-bottom: 1px solid #111; font-size: 8pt; }
.document-remarks p { min-height: 34px; margin: 6px 4px; font-size: 7.5pt; }
.document-footer { margin-top: 20px; padding-top: 7px; border-top: 1px solid #111; font-size: 6.5pt; text-align: center; }

@media (max-width: 1180px) {
  .app-layout { grid-template-columns: 238px minmax(0, 1fr); }
  .sidebar { padding-right: 14px; padding-left: 14px; }
  .main { padding: 38px 30px 78px; }
  .product-name { display: none; }
  .quote-row { grid-template-columns: 150px minmax(130px, 1fr) minmax(190px, 1.6fr) 100px 110px; }
  .receipt-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .topbar { height: 76px; padding: 0 16px; border-top-width: 3px; }
  .menu-button { display: grid; place-items: center; }
  .brand-wrap { gap: 13px; }
  .brand-logo { width: 178px; }
  .account-context { display: none; }
  .app-layout { display: block; min-height: calc(100vh - 76px); }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: min(310px, 86vw);
    height: 100vh;
    padding-top: 28px;
    transform: translateX(-104%);
    transition: transform .2s ease;
    box-shadow: 13px 0 40px rgba(25, 37, 45, .2);
  }
  .sidebar.open { transform: translateX(0); }
  .backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(20, 32, 40, .47); }
  .main { padding: 31px 18px 64px; }
  .stats, .grid-3 { grid-template-columns: 1fr; }
  .stat { min-height: 105px; }
  .panel-body { padding: 22px 19px; }
  .panel-head { padding: 15px 19px; }
  .inner-head { margin: -23px -23px 22px; }
  .quote-row { grid-template-columns: 1fr auto; gap: 5px 10px; padding: 16px 18px; }
  .quote-row .facility, .quote-row .item { grid-column: 1 / -1; }
  .quote-row .quantity { display: none; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar .button { width: 100%; }
  .account-summary { grid-template-columns: 1fr; gap: 14px; }
  .delete-control { width: 100%; margin-left: 0; }
  .delete-control > summary { justify-content: center; }
  .page-heading, .support-overview { align-items: stretch; flex-direction: column; }
  .support-summary { width: 100%; }
  .document-controls { align-items: stretch; flex-direction: column; padding: 12px 16px; }
  .document-controls > div:first-child { display: none; }
  .document-controls .actions { display: grid; grid-template-columns: repeat(3, 1fr); }
  .business-document { width: calc(100% - 24px); min-height: auto; margin: 12px; padding: 28px 22px; overflow-x: auto; }
}

@media (max-width: 680px) {
  html { font-size: 15px; }
  .topbar { height: 70px; }
  .brand-logo { width: 150px; }
  .account strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
  .main { padding: 25px 13px 56px; }
  h1 { margin-bottom: 23px; font-size: 1.65rem; }
  .stats, .grid-2, .grid-3, .detail-grid, .receipt-summary { grid-template-columns: 1fr; }
  .stat { padding: 21px; }
  .form-section { padding: 18px 15px; }
  .inner-head { margin: -18px -15px 20px; }
  .panel-head { align-items: flex-start; }
  .panel-body { padding: 19px 15px; }
  .confirm-panel { padding: 20px 15px; }
  .confirm-list > div { grid-template-columns: 1fr; gap: 3px; padding: 12px 0; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions .button, .actions form, .actions form .button { width: 100%; }
  .inline-form { width: 100%; flex-direction: column; }
  .account-row { padding: 20px 15px; }
  .account-row .inline-form .input { min-width: 0; }
  .document-action-group { display: grid; grid-template-columns: 1fr 1fr; }
  .document-action-group > span { width: auto; grid-column: 1 / -1; }
  .receipt-request { padding: 18px 14px; }
  .receipt-request-head { flex-direction: column; }
  .switch-check { width: 100%; white-space: normal; }
  .support-facility-list a { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 14px 12px; }
  .support-avatar { width: 38px; height: 38px; }
  .chat-log { min-height: 300px; padding: 20px 12px; }
  .chat-bubble { max-width: 92%; }
  .chat-form { padding: 18px 14px; }
  .notification-item { grid-template-columns: 7px 34px minmax(0, 1fr); gap: 10px; padding: 14px 11px; }
  .notification-icon { width: 34px; height: 34px; }
  .notification-body > span { white-space: normal; }
  .help-steps section { min-height: 0; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 22px 16px; }
  .help-steps section > span { width: 44px; height: 44px; font-size: 1rem; }
  .help-steps h2 { font-size: 1.02rem; }
  .help-steps p { font-size: .91rem; line-height: 1.85; }
  .faq-list summary { padding: 18px 45px 18px 44px; }
  .faq-list summary::before { left: 17px; }
  .faq-list summary::after { right: 17px; }
  .faq-list p { padding: 0 18px 21px 44px; }
  .login-page { padding: 20px 13px; }
  .login-card { padding: 33px 23px 27px; }
  .quick-login { grid-template-columns: 1fr; }
  .document-controls .actions { grid-template-columns: 1fr; }
  .document-controls .actions .button { width: 100%; }
  .business-document { width: calc(100% - 20px); min-width: 0; margin: 10px; padding: 20px 14px; }
  .document-heading { min-height: 96px; }
  .document-title h1 { font-size: 18pt; }
  .document-date { position: static; margin-top: 10px; text-align: right; }
  .document-parties { grid-template-columns: 1fr; gap: 18px; }
  .document-issuer { justify-items: start; text-align: left; }
  .document-operator-logo { width: 108px; }
  .document-total { grid-template-columns: 132px 1fr; }
  .document-total strong { font-size: 14pt; }
  .document-lines { min-width: 680px; }
}

@media print {
  body, .document-body { min-width: 0; padding: 0; background: #fff; }
  .document-controls, .demo-bar { display: none !important; }
  .business-document {
    width: auto;
    min-width: 0;
    min-height: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  @page { size: A4; margin: 10mm; }
}

/* v1.4.0 - restore the approved N-Plus visual language */
:root {
  --ink: #10243a;
  --ink-soft: #42566d;
  --navy: #143151;
  --navy-deep: #0e2946;
  --navy-pale: #e9f3fb;
  --green: #18864b;
  --green-pale: #ecfdf5;
  --gold: #0d7fe8;
  --gold-pale: #eff6ff;
  --canvas: #f3f6f8;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --line: #d9e2ea;
  --line-strong: #bdcad6;
  --muted: #65758a;
  --danger: #b42318;
  --danger-pale: #fef2f2;
  --warning: #854d0e;
  --warning-pale: #fffbeb;
  --shadow-sm: 0 10px 28px rgba(20, 49, 81, .08);
  --shadow-md: 0 16px 38px rgba(20, 49, 81, .10);
  --radius: 17px;
}

body {
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-feature-settings: normal;
  letter-spacing: 0;
  line-height: 1.65;
}

:focus-visible { outline-color: rgba(13, 127, 232, .28); }

.login-page {
  padding: 28px 20px;
  background:
    radial-gradient(circle at 10% 10%, rgba(29, 180, 236, .16), transparent 35%),
    radial-gradient(circle at 90% 85%, rgba(101, 207, 23, .13), transparent 32%),
    var(--canvas);
}
.login-page::before { display: none; }
.login-card {
  width: min(100%, 520px);
  padding: 38px;
  border-color: var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}
.login-brand { margin: 0 0 28px; padding-bottom: 24px; }
.login-logo { width: min(100%, 360px); }
.login-card h1 { margin-bottom: 9px; }
.login-card .lead { margin-bottom: 25px; }
.login-support { margin-top: 25px; padding-top: 20px; }
.login-support a { color: var(--navy); font-weight: 800; text-decoration: none; }
.login-support a:hover { text-decoration: underline; }
.admin-login-card { width: min(100%, 560px); }
.admin-login-brand { display: grid; justify-items: center; gap: 13px; }
.login-operator-logo { display: block; width: min(100%, 265px); max-height: 132px; object-fit: contain; }
.admin-login-brand span { margin-top: 0; }

.topbar {
  height: 76px;
  padding: 0 30px;
  border-top: 0;
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .97);
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.brand-wrap { gap: 12px; }
.brand-logo { width: 228px; max-height: 58px; }
.product-name { display: none; }
.account-context { color: var(--muted); font-size: .78rem; }
.account strong { color: var(--ink); }
.menu-button { border-radius: 12px; }
.app-layout { min-height: calc(100vh - 76px); grid-template-columns: 245px minmax(0, 1fr); }
.sidebar {
  top: 76px;
  height: calc(100vh - 76px);
  padding: 22px 16px 18px;
  border-right: 0;
  background: var(--navy);
  color: #fff;
}
.sidebar-title { padding: 5px 13px 18px; color: #b9d4eb; font-size: .82rem; letter-spacing: .08em; }
.sidebar nav { gap: 0; }
.nav-link {
  min-height: 54px;
  gap: 11px;
  margin-bottom: 7px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: .94rem;
}
.nav-link:hover { border-color: transparent; background: rgba(255, 255, 255, .10); color: #fff; }
.nav-link.active { border-color: transparent; background: #fff; color: var(--navy); }
.nav-link.active::before { display: none; }
.nav-icon {
  flex-basis: 25px;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  font-size: .76rem;
}
.nav-link.active .nav-icon { border: 0; background: transparent; color: var(--navy); }
.sidebar-foot {
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  color: #cee3f5;
}
.operator-logo-panel { display: grid; gap: 6px; }
.operator-logo-panel > span { color: #cee3f5; font-size: .72rem; }
.operator-logo-panel img {
  width: 100%;
  max-height: 82px;
  padding: 8px 12px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}
.sidebar-logout { margin-top: 2px; border-color: #fff !important; background: #fff !important; color: var(--navy) !important; }

.main { padding: 42px 40px 80px; }
.content { width: min(100%, 1220px); }
.eyebrow { margin-bottom: 4px; color: #0d7fe8; font-size: .82rem; letter-spacing: .05em; text-transform: none; }
h1 { margin-bottom: 26px; color: var(--ink); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }

.notice { padding: 13px 16px; border-color: #fde68a; border-left-width: 1px; border-radius: 12px; background: #fffbeb; color: #854d0e; }
.notice.success, .success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.notice.error, .error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.demo-bar { background: #e8f4ff; color: #22577f; }

.stat, .panel, .confirm-panel, .chat-panel { border-color: var(--line); border-radius: 17px; box-shadow: var(--shadow-sm); }
.stat { min-height: 122px; padding: 24px; }
.stat::before { display: none; }
.stat span { font-size: .9rem; }
.stat strong { margin-top: 5px; color: #0877b8; font-size: 1.6rem; }
.panel-head { min-height: 60px; padding: 18px 24px; background: #f8fafc; }
.panel-body { padding: 26px; }
.panel + .panel { margin-top: 26px; }
.section-gap, .field-top { margin-top: 26px; }
.inner-head { margin: -22px -22px 20px; border-radius: 14px 14px 0 0; }

.field label { color: var(--ink); font-size: .9rem; }
.input, select, textarea {
  min-height: 50px;
  padding: 11px 13px;
  border-color: #bdcad6;
  border-radius: 10px;
  color: var(--ink);
}
.input:hover, select:hover, textarea:hover { border-color: #9cb0c2; }
.input:focus, select:focus, textarea:focus { border-color: #0d7fe8; box-shadow: 0 0 0 3px rgba(13, 127, 232, .16); }
.form-section { border-radius: 15px; box-shadow: none; }
.read-value { border: 0; border-radius: 10px; background: #edf2f6; }
.check-line input { accent-color: #0d7fe8; }

.button {
  min-height: 48px;
  padding: 8px 18px;
  border-color: var(--navy);
  border-radius: 11px;
  background: var(--navy);
  font-size: .9rem;
}
.button:hover { background: #1b4772; border-color: #1b4772; box-shadow: 0 7px 18px rgba(20, 49, 81, .16); }
.button.primary { border-color: #0d7fe8; background: #0d7fe8; }
.button.primary:hover { border-color: #0872d3; background: #0872d3; }
.button.green { border-color: #18864b; background: #18864b; }
.button.light { border-color: var(--line); color: var(--navy); }
.button.light:hover { border-color: #aac0d1; background: #f7fbff; }
.button.danger { border-color: #b42318; background: #b42318; }

.quote-row { border-bottom-color: #e8eef3; }
.quote-row:hover { background: #f8fbfd; }
.quote-number { color: #0866ad; }
.badge { border: 0; border-radius: 999px; background: #fef3c7; color: #9a4d07; }
.badge.done { border: 0; background: #d1fae5; color: #06704d; }
.badge.order { border: 0; background: #dbeafe; color: #1d4ed8; }
.detail-grid, .receipt-summary { border-radius: 12px; }
.detail-item, .receipt-summary > div { background: #f8fafc; }
.image-card { border-radius: 12px; }
.image-card img { border-radius: 8px; }

.account-row { border-bottom-color: #e8eef3; }
.account-actions { border-top-color: #d8e2eb; }
.delete-control > summary { border-radius: 10px; }
.delete-control form { border-radius: 12px; }

.confirm-panel { border-radius: 17px; }
.confirm-list > div { border-bottom-color: #e8eef3; }
.confirm-item { border-left-color: #0d7fe8; border-radius: 8px; background: #f4f8fb; }
.final-warning { border-color: #f2b84b; border-left-width: 4px; background: #fff8df; }
.receipt-request { border-color: #cfe1d6; border-radius: 14px; background: #f4faf6; }
.switch-check { border-radius: 10px; }

.timeline li { border-left-color: #c9d8e5; }
.timeline li::before { background: #0d7fe8; box-shadow: 0 0 0 1px #0d7fe8; }
.timeline-card { border-radius: 10px; background: #f8fafc; }

.support-summary { border-left-color: #d83a3a; border-radius: 12px; }
.support-facility-list a { border-bottom-color: #e1e6eb; }
.support-facility-list a:hover { background: #f5f9fc; }
.support-facility-item.has-unread { background: #eef7ff; }
.support-avatar { border: 0; border-radius: 50%; background: #dfe9f2; }
.chat-log { background: #e9edf1; }
.chat-bubble { border-radius: 4px 12px 12px 12px; }
.chat-message.mine .chat-bubble { border-color: #a9c6dd; border-radius: 12px 4px 12px 12px; background: #dceaf5; }

.notification-item { border-bottom-color: #e0e6eb; }
.notification-item:hover { background: #f6f9fb; }
.notification-item.is-new { background: #eef6fc; }
.notification-icon { border-color: #b8cad8; background: #f2f6f9; }

.help-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.help-steps section,
.help-steps section:first-child,
.help-steps section:last-child,
.help-steps section:nth-child(even) {
  min-height: 190px;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 28px;
  border: 1px solid #cfd8e0;
  border-top: 4px solid #0d7fe8;
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.help-steps section > span { border: 0; border-radius: 12px; background: var(--navy); color: #fff; font-family: inherit; }
.help-steps h2 { margin-top: 3px; color: var(--navy); }
.faq-list { gap: 12px; padding: 22px; background: #f7fafc; }
.faq-list details, .faq-list details:last-child { overflow: hidden; border: 1px solid #dce6ef; border-radius: 12px; }
.faq-list details[open] { border-color: #a9d4f5; background: #fff; box-shadow: 0 8px 20px rgba(18, 91, 150, .08); }
.faq-list summary::before { color: #0d7fe8; }
.faq-list summary::after { color: #0d7fe8; }

.print-table th { background: #edf2f6; color: #344b60; }

@media (max-width: 840px) {
  .topbar { height: 72px; padding: 0 14px; }
  .brand-logo { width: 175px; }
  .app-layout { min-height: calc(100vh - 72px); }
  .sidebar { top: 0; width: 285px; height: 100vh; }
  .main { padding: 28px 16px 64px; }
  .help-steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .login-card { padding: 30px 22px; border-radius: 18px; }
  .login-operator-logo { width: min(100%, 225px); }
  .help-steps section,
  .help-steps section:first-child,
  .help-steps section:last-child,
  .help-steps section:nth-child(even) { grid-template-columns: 52px minmax(0, 1fr); padding: 22px 18px; }
  .help-steps section > span { width: 48px; height: 48px; }
}

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