:root{
  --bg:#f4f7fb;
  --panel:#ffffff;
  --panel-soft:#f8fafc;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --line-soft:#eef2f7;
  --primary:#2563eb;
  --primary-dark:#1d4ed8;
  --primary-soft:#dbeafe;
  --success:#16a34a;
  --success-soft:#dcfce7;
  --warning:#d97706;
  --warning-soft:#fef3c7;
  --danger:#dc2626;
  --danger-soft:#fee2e2;
  --shadow:0 16px 40px rgba(15,23,42,.08);
  --radius:16px;
  --sidebar:260px;
}

*{box-sizing:border-box}
html{height:100%}
body{
  margin:0;
  min-height:100%;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans JP","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:14px;
  line-height:1.6;
}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}
img,svg{max-width:100%}

.app-shell{display:flex;min-height:100vh;width:100%}
.sidebar{
  width:var(--sidebar);
  flex:0 0 var(--sidebar);
  background:#0f172a;
  color:#e5e7eb;
  padding:22px 18px;
  position:sticky;
  top:0;
  height:100vh;
  overflow-y:auto;
}
.brand{display:flex;align-items:center;gap:12px;margin-bottom:26px}
.brand-logo{
  width:42px;height:42px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#60a5fa,#2563eb);
  color:#fff;font-weight:800;letter-spacing:.02em;
}
.brand strong{display:block;color:#fff;font-size:16px;line-height:1.2}
.brand span{display:block;color:#94a3b8;font-size:12px;margin-top:3px}
.nav{display:flex;flex-direction:column;gap:4px}
.nav a{
  color:#cbd5e1;
  padding:10px 12px;
  border-radius:12px;
  display:block;
  font-weight:600;
}
.nav a:hover{background:rgba(255,255,255,.08);color:#fff;text-decoration:none}
.nav hr{width:100%;border:0;border-top:1px solid rgba(255,255,255,.12);margin:12px 0}

.main{flex:1;min-width:0;padding:24px 28px 44px}
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:20px;
}
.topbar h1{margin:0;font-size:26px;line-height:1.25;letter-spacing:.02em}
.userbox{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 10px 8px 14px;
  box-shadow:0 4px 14px rgba(15,23,42,.04);
  white-space:nowrap;
}
.userbox small{color:var(--muted)}
.logout{
  background:#f1f5f9;
  color:#334155;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:700;
}
.logout:hover{background:#e2e8f0;text-decoration:none}

.card,details.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  margin:0 0 18px;
  box-shadow:var(--shadow);
  overflow-x:auto;
  overflow-y:visible;
}
.card h2,details.card h2{margin:0 0 14px;font-size:18px}
.card p:first-child{margin-top:0}
details.card summary{cursor:pointer}

.grid{display:grid;gap:16px}
.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}

.stat{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}
.stat b{display:block;font-size:30px;line-height:1.1;margin-bottom:8px}
.stat span{color:var(--muted);font-weight:700}

.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.actions h2{margin:0}
.search{display:grid;gap:12px;width:100%}
.document-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap}
.document-search{flex:1 1 760px;min-width:0}
.document-search .search{grid-template-columns:1.45fr 1fr 1fr .95fr .95fr .95fr auto;align-items:end}
.document-actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-left:auto}

.field{margin-bottom:14px}
label{display:block;margin-bottom:6px;color:#334155;font-size:13px;font-weight:700}
.input,input[type="text"],input[type="email"],input[type="password"],input[type="date"],input[type="number"],input:not([type]),select,textarea{
  width:100%;
  min-height:42px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:9px 12px;
  background:#fff;
  color:var(--text);
  font:inherit;
  outline:none;
}
textarea{min-height:120px;resize:vertical}
.input:focus,input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(37,99,235,.12)}
button:disabled,.btn:disabled{opacity:.55;cursor:not-allowed}

.btn,button.btn,a.btn,input[type="submit"].btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:42px;
  padding:9px 15px;
  border:0;
  border-radius:12px;
  background:var(--primary);
  color:#fff;
  font-weight:800;
  font-size:14px;
  line-height:1.2;
  cursor:pointer;
  white-space:nowrap;
  text-decoration:none;
  box-shadow:0 8px 18px rgba(37,99,235,.22);
}
.btn:hover,button.btn:hover,a.btn:hover{background:var(--primary-dark);color:#fff;text-decoration:none}
.btn.secondary{
  background:#f1f5f9;
  color:#334155;
  border:1px solid #cbd5e1;
  box-shadow:none;
}
.btn.secondary:hover{background:#e2e8f0;color:#0f172a}
.btn.danger{background:var(--danger);color:#fff;box-shadow:0 8px 18px rgba(220,38,38,.18)}
.btn-large{font-size:16px;padding:14px 18px;border-radius:13px;min-height:52px}

.table-wrap{width:100%;overflow-x:auto}
.table{width:100%;border-collapse:separate;border-spacing:0;min-width:760px}
.table th,.table td{border-bottom:1px solid var(--line-soft);padding:11px 10px;text-align:left;vertical-align:middle}
.table th{background:#f8fafc;color:#475569;font-size:12px;letter-spacing:.02em;white-space:nowrap}
.table tr:hover td{background:#fbfdff}
.table td{word-break:break-word}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:3px 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.badge.pending,.badge.review,.badge.warn{background:var(--warning-soft);color:#92400e}
.badge.processed,.badge.ok,.badge.success{background:var(--success-soft);color:#166534}
.badge.error{background:var(--danger-soft);color:#991b1b}
.badge.ocr_done,.badge.extracted{background:var(--primary-soft);color:#1e40af}

.flash{
  border-radius:14px;
  padding:12px 14px;
  margin:0 0 14px;
  border:1px solid var(--line);
  background:#f8fafc;
  color:#334155;
  font-weight:700;
}
.flash.success,.flash.ok{background:var(--success-soft);border-color:#bbf7d0;color:#166534}
.flash.error{background:var(--danger-soft);border-color:#fecaca;color:#991b1b}
.flash.warn,.flash.warning{background:var(--warning-soft);border-color:#fde68a;color:#92400e}

.muted{color:var(--muted)}
.hint{font-size:12px;color:var(--muted);margin-top:6px}
.link{color:var(--primary);text-decoration:underline}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace}
.pre{
  white-space:pre-wrap;
  word-break:break-word;
  background:#0f172a;
  color:#e5e7eb;
  border-radius:14px;
  padding:16px;
  overflow:auto;
  max-height:520px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  font-size:13px;
}

.form-narrow{max-width:520px}
.drive-hero{display:flex;align-items:center;justify-content:space-between;gap:22px}
.drive-action{min-width:260px;text-align:right}
.folder-tree{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:14px;
  margin-top:12px;
  line-height:1.8;
}
.drive-connections-table{table-layout:fixed;width:100%;min-width:980px}
.drive-connections-table th,.drive-connections-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
.drive-connections-table .col-id{width:48px}
.drive-connections-table .col-status{width:64px}
.drive-connections-table .col-action{width:76px}
.drive-connections-table .col-account{width:220px}
.drive-connections-table .mono{font-size:12px}
.drive-connections-table .delete-button{padding:8px 12px;min-width:auto}

.login-page{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  padding:24px;
  background:linear-gradient(135deg,#eff6ff,#f8fafc 45%,#e0f2fe);
}
.login-card{
  width:100%;
  max-width:420px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:30px;
  box-shadow:0 24px 60px rgba(15,23,42,.14);
}
.login-logo{font-size:28px;font-weight:900;text-align:center;margin-bottom:6px;color:#0f172a}
.login-sub{text-align:center;color:var(--muted);margin-bottom:22px}
.footer-note{text-align:center;color:var(--muted);font-size:12px;margin-top:18px}

@media(max-width:1180px){
  .document-search .search{grid-template-columns:repeat(3,minmax(0,1fr))}
  .document-actions{width:100%;margin-left:0;justify-content:flex-start}
}
@media(max-width:900px){
  .app-shell{display:block}
  .sidebar{position:relative;width:100%;height:auto;min-height:0;display:block}
  .nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .main{padding:18px}
  .topbar{display:block}
  .userbox{margin-top:12px;width:fit-content;max-width:100%;flex-wrap:wrap;border-radius:16px}
  .cols-2,.cols-3,.cols-4{grid-template-columns:1fr}
  .drive-hero{display:block}
  .drive-action{text-align:left;margin-top:16px;min-width:0}
  .document-search .search{grid-template-columns:1fr}
  .btn{width:auto}
}
@media(max-width:560px){
  .nav{grid-template-columns:1fr}
  .main{padding:14px}
  .card,details.card{padding:16px;border-radius:14px}
  .document-actions{flex-direction:column;align-items:stretch}
  .document-actions .btn,.document-actions form,.document-actions form .btn{width:100%}
}


/* ===== UI refresh 2026-06-24: PCフォーム・Drive連携画面 ===== */
.main{
  background:
    radial-gradient(circle at 16% 0%, rgba(37,99,235,.08), transparent 32%),
    linear-gradient(180deg,#f8fbff 0%,#eef4fb 100%);
}
.card,details.card{
  border-color:#dbe5f0;
  box-shadow:0 18px 50px rgba(15,23,42,.07);
}
.topbar{margin-bottom:28px}
.topbar h1{font-size:28px;font-weight:900;letter-spacing:-.02em}

/* 決算期設定：PCでは縦長にしない */
.fiscal-form{
  display:grid;
  grid-template-columns:130px 140px 110px 140px 110px 140px minmax(190px,.9fr);
  gap:14px;
  align-items:end;
}
.fiscal-form > div{min-width:0;margin:0}
.fiscal-form button{width:100%;min-height:52px}
.fiscal-form input[type="number"]{
  text-align:center;
  font-weight:700;
  font-size:16px;
}
@media(max-width:1280px){
  .fiscal-form{grid-template-columns:repeat(3,minmax(0,1fr))}
  .fiscal-form button{grid-column:1 / -1}
}
@media(max-width:720px){
  .fiscal-form{grid-template-columns:1fr}
}

/* 汎用フォームを少しPC向けに */
.field{margin-bottom:16px}
label{color:#0f2344;font-weight:800}
.input,input[type="text"],input[type="email"],input[type="password"],input[type="date"],input[type="number"],input:not([type]),select,textarea{
  min-height:48px;
  border-color:#c8d6e8;
  border-radius:14px;
  padding:11px 14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
.btn,button.btn,a.btn,input[type="submit"].btn{
  min-height:46px;
  border-radius:14px;
}

/* Drive連携：説明・操作・状態をカード化 */
.drive-page{display:grid;gap:18px}
.page-kicker{
  display:inline-flex;
  color:#2563eb;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:4px;
}
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.section-heading h2{margin:0;font-size:20px;letter-spacing:-.02em}
.drive-hero-modern{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);
  gap:28px;
  align-items:stretch;
  padding:26px;
  overflow:hidden;
}
.drive-hero-modern h2{font-size:24px;margin-bottom:6px}
.drive-hero-copy{min-width:0}
.drive-action-panel{
  min-width:0;
  text-align:left;
  align-self:stretch;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
  border:1px solid #dbeafe;
  border-radius:20px;
  padding:20px;
  box-shadow:0 14px 34px rgba(37,99,235,.08);
}
.drive-action-panel .flash{margin-bottom:14px;border-radius:14px}
.drive-action-panel form{margin:0}
.drive-action-panel .btn{width:100%;justify-content:center}
.drive-action-panel .field{margin-bottom:14px}
.folder-tree-modern{
  margin-top:18px;
  max-width:760px;
  background:linear-gradient(180deg,#f8fbff,#ffffff);
  border-color:#d8e4f2;
  border-radius:18px;
  padding:18px 20px;
  line-height:1.95;
  color:#0f2344;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.drive-status-card{padding:24px}
.drive-status-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.drive-status-grid > div{
  min-width:0;
  padding:16px;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#fbfdff;
}
.drive-status-grid strong{
  display:block;
  color:#64748b;
  font-size:12px;
  margin-bottom:6px;
}
.drive-status-grid a,.drive-status-grid span:not(.badge){word-break:break-word}
.drive-list-card{padding:24px}
.drive-connections-table{border:1px solid #e8eef6;border-radius:16px;overflow:hidden;background:#fff}
.drive-connections-table th{background:#f3f7fc;color:#334155;font-weight:900}
.drive-connections-table td{background:#fff}

/* サイドバーを少しSaaS風に */
.sidebar{background:linear-gradient(180deg,#0b1730 0%,#0f172a 100%)}
.nav a{padding:11px 13px;border-radius:12px}
.nav a[href="/app/drive_settings.php"]:hover,
.nav a:hover{background:rgba(37,99,235,.22)}

@media(max-width:1100px){
  .drive-hero-modern{grid-template-columns:1fr}
  .drive-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .drive-status-grid{grid-template-columns:1fr}
  .drive-hero-modern{padding:18px}
  .drive-action-panel{padding:16px}
}

/* Batch process page */
.batch-hero-card{padding:24px}
.batch-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:4px 0 20px;
  border-bottom:1px solid #e8eef6;
  margin-bottom:18px;
}
.page-kicker{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 10px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:900;
  letter-spacing:.03em;
  margin-bottom:8px;
}
.batch-hero-copy{min-width:0}
.batch-hero-copy h2{font-size:24px;margin:0 0 8px}
.batch-hero-copy p{max-width:920px;margin:0;line-height:1.8}
.batch-hero-stats{
  flex:0 0 150px;
  min-height:94px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid #dbeafe;
  border-radius:20px;
  background:linear-gradient(135deg,#eff6ff,#fff);
}
.batch-hero-stats strong{font-size:34px;line-height:1;color:#1d4ed8}
.batch-hero-stats span{margin-top:8px;color:#475569;font-weight:800;font-size:13px}
.batch-filter-form{
  display:grid;
  grid-template-columns:minmax(260px,420px) 120px 150px;
  gap:12px;
  align-items:end;
  max-width:720px;
}
.batch-filter-form .field{margin:0}
.batch-filter-form .btn{width:100%}
.batch-list-card{padding:22px 24px}
.batch-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.batch-checks{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.check-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  margin:0;
  padding:9px 13px;
  border:1px solid #dbe3ef;
  border-radius:999px;
  background:#f8fafc;
  color:#0f172a;
  font-weight:800;
}
.check-pill input{width:auto;min-height:0;margin:0}
.batch-main-button{min-width:190px}
.batch-table-wrap{border:1px solid #e8eef6;border-radius:16px;background:#fff}
.batch-table{margin:0;min-width:920px}
.batch-table th{background:#f3f7fc;color:#334155;font-weight:900}
.batch-table th:first-child,.batch-table td:first-child{width:42px;text-align:center}
.batch-table th:nth-child(2),.batch-table td:nth-child(2){width:64px;text-align:center}
.batch-filename{max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(max-width:900px){
  .batch-hero{align-items:flex-start;flex-direction:column}
  .batch-hero-stats{width:100%;flex-basis:auto;min-height:76px}
  .batch-filter-form{grid-template-columns:1fr;max-width:none}
  .batch-toolbar{align-items:stretch;flex-direction:column}
  .batch-main-button{width:100%}
}
@media(max-width:560px){
  .batch-hero-card,.batch-list-card{padding:16px}
  .check-pill{width:100%;border-radius:14px}
}

/* Section label color variants */
.page-kicker.kicker-batch{
  background:#eef2ff;
  color:#3730a3;
  border:1px solid #c7d2fe;
}
.page-kicker.kicker-drive{
  background:#ecfdf5;
  color:#047857;
  border:1px solid #bbf7d0;
}
.page-kicker.kicker-status{
  background:#fff7ed;
  color:#c2410c;
  border:1px solid #fed7aa;
}
.page-kicker.kicker-list{
  background:#f5f3ff;
  color:#6d28d9;
  border:1px solid #ddd6fe;
}

/* Dashboard spacing: statistics cards and recent documents */
.dashboard-stats,
.stats-grid{
  margin-bottom:32px;
}

.dashboard-page .card + .card{
  margin-top:32px;
}

.recent-documents-card{
  margin-top:8px;
}

/* Dashboard: add clear spacing between summary cards and recent documents */
.grid.cols-4{
  margin-bottom:32px;
}

.grid.cols-4 + .card{
  margin-top:32px;
}

@media(max-width:900px){
  .grid.cols-4{
    margin-bottom:24px;
  }
  .grid.cols-4 + .card{
    margin-top:24px;
  }
}


/* 書類登録：アップロード読み取り中の表示 */
.upload-reading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(5px);
}
.upload-reading-overlay.is-visible {
  display: flex;
}
.upload-reading-box {
  width: min(520px, calc(100vw - 40px));
  padding: 34px 30px;
  border-radius: 24px;
  border: 1px solid rgba(191, 219, 254, .9);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
  text-align: center;
}
.upload-reading-spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 999px;
  border: 5px solid #dbeafe;
  border-top-color: #2563eb;
  animation: uploadReadingSpin .85s linear infinite;
}
.upload-reading-box h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #0f2344;
}
.upload-reading-box p {
  margin: 0;
  color: #52637a;
  line-height: 1.8;
}
.upload-reading-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.upload-reading-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}
@keyframes uploadReadingSpin {
  to { transform: rotate(360deg); }
}
.upload-read-button:disabled {
  opacity: .75;
  cursor: wait;
}

/* 書類詳細：上部操作ボタンと内容テーブルの余白 */
.document-detail-header-actions {
  margin-bottom: 16px;
}


/* ダッシュボード：統計カードと最近の書類の余白 */
.dashboard-stats {
  margin-bottom: 36px;
}
.recent-documents-card {
  margin-top: 0;
}
.dashboard-recent-actions {
  margin-bottom: 18px;
}
.dashboard-recent-actions .btn {
  margin-bottom: 8px;
}


/* 書類登録フォーム：保存・確定確認 */
.finalize-confirm-modal{
    position:fixed;
    inset:0;
    z-index:9998;
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(15,23,42,.42);
    backdrop-filter:blur(6px);
}
.finalize-confirm-modal.is-visible{display:flex}
.finalize-confirm-box{
    width:min(560px,100%);
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    box-shadow:0 28px 80px rgba(15,23,42,.24);
    padding:30px;
}
.finalize-confirm-box h2{margin:0 0 12px;font-size:24px}
.finalize-confirm-box p{margin:0 0 14px;color:var(--muted)}
.finalize-confirm-box ul{
    margin:12px 0 16px;
    padding:14px 18px 14px 38px;
    background:#f8fafc;
    border:1px solid var(--border);
    border-radius:16px;
}
.finalize-confirm-box li{margin:6px 0;font-weight:700}
.finalize-confirm-actions{justify-content:flex-end;margin-top:20px}

/* ダッシュボード：書類を登録ボタン下の余白を少し狭くする */
.dashboard-recent-actions{
    margin-bottom:5px;
}


/* ダッシュボード：統計カードと最近の書類の間隔を少しだけ狭く調整 */
.dashboard-stats,
.grid.cols-4{
    margin-bottom:28px;
}
.grid.cols-4 + .card{
    margin-top:28px;
}
.recent-documents-card{
    margin-top:0;
}
.dashboard-recent-actions{
    margin-bottom:5px;
}

/* ダッシュボード：統計カードと最近の書類の間隔をさらに少し狭くする */
.dashboard-stats,
.grid.cols-4{
    margin-bottom:20px;
}
.grid.cols-4 + .card{
    margin-top:20px;
}

/* アカウント設定：解約申請ボタン上の余白 */
.account-cancel-form{
    margin-top:14px;
}

/* プラン管理：契約期間の数値と単位 */
.plan-duration-row{
    display:grid;
    grid-template-columns:1fr 160px;
    gap:12px;
}
@media (max-width: 760px){
    .plan-duration-row{
        grid-template-columns:1fr;
    }
}

/* Account renewal controls */
.account-renew-form{
    max-width: 520px;
    margin-top: 18px;
}
.account-renew-form .field{
    margin-bottom: 14px;
}
.account-cancel-note{
    margin-top: 18px;
}
