:root {
  color-scheme: light;
  --bg: #f2f4f3;
  --surface: #ffffff;
  --surface-2: #f7f9f8;
  --ink: #17211c;
  --muted: #6b7a72;
  --faint: #94a29a;
  --line: #e3e8e5;
  --accent: #0f766e;
  --accent-dark: #0c5f58;
  --accent-tint: #e6f4f1;
  --amber: #b45309;
  --amber-bg: #fdf0dd;
  --blue: #1d4ed8;
  --blue-bg: #e8eeff;
  --green: #15803d;
  --green-bg: #e3f5e9;
  --line-bg: #fdf8e3;
  --danger: #b3261e;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(23, 33, 28, 0.06);
  --shadow-md: 0 8px 30px rgba(23, 33, 28, 0.1);
  font-family: "Yu Gothic UI", "Hiragino Sans", Meiryo, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* ============ app bar ============ */

.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0d9488);
  font-weight: 800;
  font-size: 15px;
  flex: none;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-sub {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.appbar-spacer {
  flex: 1;
}

.appbar-stats {
  display: flex;
  gap: 6px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.stat-chip b {
  color: var(--ink);
}

.stat-chip.alert {
  color: var(--amber);
  background: var(--amber-bg);
  border-color: transparent;
}

.appbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============ buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-weight: 700;
  font-size: 13px;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
  background: var(--surface-2);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.55;
}

.btn.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.btn.primary:hover {
  background: var(--accent-dark);
}

.btn.tonal {
  color: var(--accent-dark);
  background: var(--accent-tint);
  border-color: transparent;
}

.btn.tonal:hover {
  background: #d8ede8;
}

.btn.quiet {
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}

.btn.quiet:hover {
  background: var(--surface-2);
}

.btn.icon {
  width: 38px;
  padding: 0;
  color: var(--muted);
}

/* ============ layout ============ */

.layout {
  display: grid;
  grid-template-columns: var(--list-w, 380px) 7px minmax(0, 1fr);
  height: calc(100vh - 56px);
}

.resizer {
  cursor: col-resize;
  position: relative;
  background: transparent;
  touch-action: none;
}

.resizer::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: 0 auto;
  width: 1px;
  background: var(--line);
  transition: background 0.12s ease, width 0.12s ease;
}

.resizer:hover::before,
.resizer.dragging::before {
  width: 3px;
  background: var(--accent);
}

/* ============ list pane ============ */

.list-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.list-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--faint);
}

.search-box input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 6px 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
}

.tab .n {
  color: var(--faint);
  font-weight: 700;
  margin-left: 3px;
}

.tab.active {
  color: var(--accent-dark);
  background: var(--accent-tint);
}

.tab.active .n {
  color: var(--accent-dark);
}

/* ---- チャネル切替タブ（メール / LINE） ---- */

.ch-tabs {
  display: flex;
  gap: 4px;
}

.ch-tab {
  flex: 1;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.ch-tab:hover {
  background: var(--surface-2);
}

.ch-tab.active {
  color: var(--ink);
  border-color: var(--faint);
  background: var(--surface-2);
}

.ch-tab.ch-email.active {
  color: var(--blue);
  background: var(--blue-bg);
  border-color: transparent;
}

.ch-tab.ch-line.active {
  color: #8a6d1f;
  background: var(--line-bg);
  border-color: #e7d9a8;
}

.msg-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px 16px;
}

.list-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

.msg-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  padding: 11px 10px;
  background: transparent;
  transition: background 0.1s ease;
}

.msg-item:hover {
  background: var(--surface-2);
}

.msg-item.ch-line {
  background: var(--line-bg);
}

.msg-item.ch-line:hover {
  background: #faf1d4;
}

.msg-item.active,
.msg-item.ch-line.active {
  background: var(--accent-tint);
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.msg-item.active .avatar {
  background: #fff;
}

.msg-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.msg-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.msg-from {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

.msg-item.is-new .msg-from {
  color: var(--ink);
}

.msg-time {
  color: var(--faint);
  font-size: 11.5px;
  white-space: nowrap;
}

.msg-subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.msg-item.is-new .msg-subject {
  font-weight: 800;
}

.msg-snippet {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--faint);
  font-size: 12.5px;
}

.msg-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  flex-wrap: wrap;
}

/* ============ badges ============ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  padding: 1.5px 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.email {
  color: var(--blue);
  background: var(--blue-bg);
}

.badge.line {
  color: var(--green);
  background: var(--green-bg);
}

.badge.st-new {
  color: var(--amber);
  background: var(--amber-bg);
}

.badge.st-working {
  color: var(--accent-dark);
  background: var(--accent-tint);
}

.badge.st-replied {
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.badge.st-archived {
  color: var(--faint);
  background: var(--surface-2);
}

.badge.draft-ready {
  color: var(--accent-dark);
  background: var(--accent-tint);
  border: 1px solid rgba(15, 118, 110, 0.3);
}

.msg-time.overdue {
  color: var(--danger);
  font-weight: 800;
}

.badge.category {
  color: #6d28d9;
  background: #f1eafd;
}

.badge.assignee {
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

/* ============ detail pane ============ */

.detail-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.detail-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--faint);
  text-align: center;
  padding: 40px;
}

.detail-empty .big {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

#detailContent {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.detail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-head {
  display: grid;
  gap: 8px;
}

.head-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.back-btn {
  display: none;
}

.detail-subject {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.detail-from {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12.5px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.manage-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.manage-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.manage-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  min-width: 42px;
}

.manage-group select {
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  outline: none;
}

.notify-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--green);
  background: var(--green-bg);
  border-radius: 6px;
  padding: 3px 9px;
}

.status-buttons {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.status-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
}

.status-btn:hover {
  background: #fff;
  border-color: var(--faint);
}

.status-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.badge.st-hold {
  color: #92400e;
  background: #fdebc8;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.card-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---- 折りたたみ（アコーディオン） ---- */

.card-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
}

.card-toggle:hover {
  background: rgba(23, 33, 28, 0.05);
}

.card-toggle .chev {
  width: 15px;
  height: 15px;
  color: var(--faint);
  transition: transform 0.15s ease;
  flex: none;
}

.card.collapsed .card-toggle .chev {
  transform: rotate(-90deg);
}

.card.collapsed .card-head {
  border-bottom: 0;
}

.card.collapsed > .card-body,
.card.collapsed > textarea {
  display: none;
}

/* ---- 詳細の2カラム（広い画面） ---- */

.detail-cols {
  display: grid;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.col-left,
.col-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

@media (min-width: 1200px) {
  .detail-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .col-right {
    position: sticky;
    top: 0;
  }

  .reply-card textarea.draft {
    height: 440px;
  }
}

/* ---- 返信の宛先（CC/BCC） ---- */

.recipients {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rcpt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rcpt-label {
  flex: none;
  width: 36px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--faint);
}

.rcpt-to {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--ink);
}

.rcpt-toggle {
  flex: none;
  min-height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
}

.rcpt-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rcpt-row input {
  flex: 1;
  min-width: 0;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 13px;
  outline: none;
}

.rcpt-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.plain-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  background: var(--surface);
}

.plain-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.card-body {
  padding: 14px 16px;
}

.original-body {
  white-space: pre-wrap;
  line-height: 1.75;
  height: 260px;
  overflow-y: auto;
  /* 右下をドラッグして高さを変えられる */
  resize: vertical;
}

/* 高さを変えられる部分の目印（右下の斜線） */
[data-resizable] {
  min-height: 60px;
}

.card-body[data-resizable] {
  padding-bottom: 18px;
  background-image: linear-gradient(135deg, transparent 50%, var(--line) 50%, var(--line) 60%, transparent 60%);
  background-size: 9px 9px;
  background-position: right 3px bottom 3px;
  background-repeat: no-repeat;
}

.summary-box {
  max-height: none;
  overflow-y: auto;
  resize: vertical;
}

.summary-empty {
  color: var(--faint);
  font-size: 13px;
}

.summary-text {
  font-weight: 700;
  line-height: 1.65;
}

.summary-box ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #3c4a43;
}

.summary-box .missing {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
}

textarea.draft {
  display: block;
  width: 100%;
  height: 300px;
  min-height: 120px;
  border: 0;
  padding: 14px 16px;
  line-height: 1.75;
  resize: vertical;
  outline: none;
  background: transparent;
}

/* ============ action bar ============ */

.action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  flex-wrap: wrap;
}

.action-bar .spacer {
  flex: 1;
}

.status-text {
  width: 100%;
  min-height: 1.2em;
  margin: 0;
  padding: 0 22px 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
}

.status-text.error {
  color: var(--danger);
}

/* ============ add dialog ============ */

.add-dialog {
  width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow-md);
}

.add-dialog::backdrop {
  background: rgba(23, 33, 28, 0.4);
}

.add-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.add-form h2 {
  font-size: 16px;
  font-weight: 800;
}

.add-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}

.add-form textarea:focus,
.add-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.channel-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.channel-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.channel-choice span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.channel-choice input:checked + span {
  color: var(--accent-dark);
  border-color: rgba(15, 118, 110, 0.4);
  background: var(--accent-tint);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ---- 送信前プレビュー ---- */

.preview-dialog {
  width: min(680px, calc(100vw - 32px));
}

.preview-fields {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}

.preview-row {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface-2);
  font-size: 13px;
}

.preview-label {
  flex: none;
  width: 52px;
  color: var(--faint);
  font-weight: 800;
  font-size: 11.5px;
  padding-top: 2px;
}

.preview-value {
  flex: 1;
  min-width: 0;
  word-break: break-all;
  color: var(--ink);
}

.preview-value.strong {
  font-weight: 800;
}

.preview-value.muted {
  color: var(--faint);
}

.preview-body {
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 13.5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface);
  max-height: 38vh;
  overflow-y: auto;
}

.hint {
  color: var(--muted);
  font-size: 12.5px;
}

/* ============ toast ============ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  z-index: 50;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============ login ============ */

.login-wrap {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.login-card .field input {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
}

.login-card .field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.login-card .btn {
  min-height: 44px;
}

.login-card .status-text {
  padding: 0;
  background: transparent;
  text-align: center;
}

/* ============ settings page ============ */

.settings-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-title {
  font-size: 19px;
  font-weight: 800;
}

.settings-lead {
  color: var(--muted);
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  padding: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 5px;
}

.field > span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  outline: none;
}

.field textarea {
  line-height: 1.7;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.field .note {
  font-size: 11.5px;
  color: var(--faint);
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13.5px;
}

.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.staff-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  margin-bottom: 6px;
  font-size: 13px;
}

/* ============ mobile ============ */

@media (max-width: 860px) {
  .appbar {
    padding: 0 10px;
    gap: 8px;
  }

  .appbar-stats {
    display: none;
  }

  .brand-sub {
    display: none;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .resizer {
    display: none;
  }

  .list-pane {
    border-right: 0;
  }

  .detail-pane {
    display: none;
  }

  /* 詳細を開いたら全面表示に切替 */
  .layout.show-detail .list-pane {
    display: none;
  }

  .layout.show-detail .detail-pane {
    display: flex;
  }

  .back-btn {
    display: inline-flex;
  }

  .detail-scroll {
    padding: 14px 12px 16px;
  }

  .action-bar,
  .status-text {
    padding-left: 12px;
    padding-right: 12px;
  }

  .action-bar {
    position: sticky;
    bottom: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
