@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Shippori+Mincho:wght@500;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============================================================
   FujiSSL Secure Console — Admin Redesign
   Activated by body class `secure-redesign`
   ============================================================ */
body.secure-redesign,
body.secure-redesign-auth {
  --ink: #0a1628;
  --ink-2: #1a2332;
  --ink-3: #243044;
  --paper: #faf8f3;
  --paper-2: #f1ede4;
  --paper-3: #e8e2d4;
  --red: #c8102e;
  --red-dark: #9a0c24;
  --red-soft: #ff8a9a;
  --line: #d8d2c4;
  --line-soft: #ebe6da;
  --muted: #6b7280;
  --green: #2d6a4f;
  --green-soft: #6ee7b7;
  --amber: #b45309;
  --amber-soft: #fbbf24;
  --info: #1e3a5f;

  margin: 0; padding: 0;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.secure-redesign * { box-sizing: border-box; }
body.secure-redesign a { color: inherit; text-decoration: none; }
body.secure-redesign button, body.secure-redesign input, body.secure-redesign select, body.secure-redesign textarea { font-family: inherit; }

/* Top navbar shimmed by Bootstrap — override */
body.secure-redesign .navbar-fixed-top,
body.secure-redesign .navbar-inverse {
  background: transparent !important;
  border: none !important;
  min-height: 0 !important;
  position: static !important;
  padding: 0;
  margin: 0;
}
body.secure-redesign .navbar-fixed-top .container-fluid,
body.secure-redesign .navbar-fixed-top .navbar-header,
body.secure-redesign .navbar-fixed-top .navbar-brand,
body.secure-redesign .navbar-fixed-top .nav,
body.secure-redesign .navbar-fixed-top .navbar-collapse,
body.secure-redesign .navbar-fixed-top .navbar-toggle { display: none !important; }

/* Hide the fixed login-indicator at bottom */
body.secure-redesign > div[style*="position: fixed"][style*="right:0"][style*="bottom:0"] { display: none !important; }
body.secure-redesign > div[style*="display:fixed"][style*="position: fixed"] { display: none !important; }

/* ============================================================
   App shell: header + sidebar + main
   ============================================================ */
body.secure-redesign .container-fluid,
body.secure-redesign .container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
body.secure-redesign > .container-fluid > .row {
  margin: 0 !important;
  display: flex;
  min-height: 100vh;
}
body.secure-redesign > .container-fluid > .row::before,
body.secure-redesign > .container-fluid > .row::after { display: none !important; }

/* ---------- Header (top) ---------- */
.secure-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 36px;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 100;
}
.secure-header .crumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.04em;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.secure-header .crumb .sep { opacity: 0.4; }
.secure-header .crumb .now { color: var(--ink); }
.secure-header .head-right { display: flex; gap: 14px; align-items: center; font-size: 13px; }
.secure-header .status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--green);
  border: 1px solid rgba(45, 106, 79, 0.25);
  padding: 4px 10px; border-radius: 100px;
  letter-spacing: 0.06em;
}
.secure-header .status-pill::before {
  content: ""; width: 5px; height: 5px;
  background: var(--green); border-radius: 50%;
}
.secure-header .user-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px; color: var(--ink-2);
  background: var(--paper);
  position: relative;
}
.secure-header .user-pill:hover { border-color: var(--ink); }
.secure-header .user-pill .avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-family: 'JetBrains Mono', monospace; font-weight: 700;
}
.secure-header .user-pill .who { font-family: 'JetBrains Mono', monospace; }
.secure-header .user-pill::after { content: "▾"; font-size: 9px; color: var(--muted); margin-left: 4px; }
.secure-header .user-menu {
  display: none;
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px;
  min-width: 200px;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 200;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
.secure-header .user-pill:hover .user-menu,
.secure-header .user-menu:hover { display: block; }
.secure-header .user-menu a {
  display: block; padding: 9px 14px;
  font-size: 13px; color: var(--ink-2);
  transition: background 0.12s ease;
}
.secure-header .user-menu a:hover { background: var(--paper-2); color: var(--ink); }
.secure-header .user-menu .divider {
  margin: 4px 0; height: 1px; background: var(--line-soft);
}

/* ---------- Sidebar ---------- */
.secure-shell {
  display: grid;
  grid-template-columns: 244px 1fr;
  min-height: 100vh;
  width: 100%;
}
.secure-sidebar {
  background: var(--ink);
  color: var(--paper);
  padding: 24px 0 0;
  position: relative;
  overflow: hidden;
}
.secure-sidebar::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.side-brand {
  position: relative;
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 12px;
}
.side-brand .logo-mark {
  width: 28px; height: 28px;
  background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.side-brand .logo-mark::before {
  content: ""; width: 0; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 10px solid #fff; margin-top: 3px;
}
.side-brand .brand-text { font-weight: 900; font-size: 14px; line-height: 1.2; }
.side-brand .brand-text small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em; font-weight: 500; margin-top: 3px;
}

.side-menu { position: relative; padding: 4px 0 24px; }
.side-section {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: rgba(255,255,255,0.4);
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 22px 24px 8px;
  display: flex; align-items: center; gap: 8px;
}
.side-section.first { padding-top: 16px; }
.side-section .free-pill {
  background: var(--red); color: #fff;
  font-size: 8px; padding: 2px 5px; border-radius: 2px;
  letter-spacing: 0.06em;
  animation: pulse-pill 1.85s step-start infinite;
}
@keyframes pulse-pill { 50% { opacity: 0; } }

.side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 24px; font-size: 13px;
  color: rgba(255,255,255,0.72);
  position: relative;
  transition: all 0.15s ease;
}
.side-item::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0;
  background: var(--red);
  transition: height 0.18s ease;
}
.side-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.side-item.active {
  background: rgba(255,255,255,0.06); color: #fff; font-weight: 700;
}
.side-item.active::before { height: 18px; }
.side-item .icon {
  width: 14px; height: 14px;
  color: rgba(255,255,255,0.4);
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  display: flex; align-items: center; justify-content: center;
}
.side-item.active .icon { color: var(--red-soft); }

/* ---------- Main column ---------- */
.secure-main {
  flex: 1;
  background: var(--paper);
  min-width: 0;
  display: flex; flex-direction: column;
}
.secure-content {
  flex: 1; padding: 48px 36px 60px;
  position: relative;
}
.secure-content::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at top, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 0%, transparent 70%);
  pointer-events: none;
}
.content-inner { position: relative; max-width: 1180px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--red); }

.page-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700; line-height: 1.3; margin: 0 0 8px;
}
.page-title small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--muted); font-weight: 400;
  margin-left: 12px; letter-spacing: 0.04em;
}
.page-lead {
  font-size: 14px; color: var(--muted);
  margin-bottom: 40px; max-width: 640px;
}
.page-header-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px; gap: 16px;
  border-bottom: 1px solid var(--ink); padding-bottom: 20px;
}
.page-header-row .titles .eyebrow { margin-bottom: 10px; }
.page-header-row .titles .page-title { margin-bottom: 0; }
.page-header-row .header-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-secure {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  font-size: 13px; font-weight: 700;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  line-height: 1; cursor: pointer;
  text-decoration: none;
  vertical-align: middle;
}
.btn-secure-primary { background: var(--ink); color: var(--paper); border: none; }
.btn-secure-primary:hover { background: var(--red); color: #fff; }
.btn-secure-primary::after { content: "→"; transition: transform 0.18s ease; }
.btn-secure-primary:hover::after { transform: translateX(3px); }
.btn-secure-primary.no-arrow::after { content: none; }

.btn-secure-secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-secure-secondary:hover { border-color: var(--ink); }
.btn-secure-ghost { background: transparent; color: var(--muted); border: none; padding: 8px 10px; }
.btn-secure-ghost:hover { color: var(--ink); }
.btn-secure-success {
  background: var(--green); color: #fff; border: none;
}
.btn-secure-success:hover { filter: brightness(0.92); color: #fff; }
.btn-secure-danger {
  background: var(--red); color: #fff; border: none;
}
.btn-secure-danger:hover { background: var(--red-dark); color: #fff; }
.btn-secure-danger-outline {
  background: transparent; color: var(--red);
  border: 1px solid rgba(200, 16, 46, 0.3);
}
.btn-secure-danger-outline:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-secure-icon {
  padding: 7px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 2px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.btn-secure-icon:hover { border-color: var(--ink); color: var(--ink); }
.btn-secure-icon-sm {
  padding: 4px 8px; font-size: 10px;
  border: 1px solid var(--line); background: var(--paper);
  color: var(--ink-2); border-radius: 2px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em;
}
.btn-secure-icon-sm:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }

.btn-secure-lg {
  padding: 14px 28px; font-size: 14px;
}
.btn-secure-block { display: flex; width: 100%; justify-content: center; }
.btn-secure[disabled],
.btn-secure-primary[disabled],
.btn-secure-success[disabled] {
  background: var(--line); color: var(--muted);
  cursor: not-allowed; pointer-events: none;
}
.btn-secure[disabled]::after { content: none; }

/* Action bar */
.action-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 28px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.action-bar.right { justify-content: flex-end; }
.action-bar .ab-left, .action-bar .ab-right { display: flex; gap: 10px; align-items: center; }

/* ============================================================
   ALERTS / NOTICES
   ============================================================ */
.notice {
  border-radius: 4px;
  padding: 16px 22px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: flex-start;
  font-size: 13px; line-height: 1.7;
}
.notice .notice-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  padding: 4px 8px; border-radius: 2px;
  letter-spacing: 0.08em; flex-shrink: 0;
}
.notice .notice-body strong { font-weight: 700; }
.notice .notice-body a {
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
}
.notice-info {
  background: #f0f5fa; border: 1px solid #c5d6e8; color: var(--info);
}
.notice-info .notice-label { background: var(--info); color: #fff; }
.notice-warn {
  background: #fdf3f4; border: 1px solid rgba(200, 16, 46, 0.2); color: var(--ink-2);
}
.notice-warn .notice-label { background: var(--red); color: #fff; }
.notice-success {
  background: #eef7f2; border: 1px solid rgba(45, 106, 79, 0.2); color: var(--ink-2);
}
.notice-success .notice-label { background: var(--green); color: #fff; }
.notice-danger {
  background: #fdf3f4; border: 1px solid rgba(200, 16, 46, 0.3); color: var(--red-dark);
}
.notice-danger .notice-label { background: var(--red); color: #fff; }

/* Translate legacy Bootstrap alerts */
.secure-redesign .alert {
  border-radius: 4px;
  padding: 16px 22px;
  margin-bottom: 24px;
  font-size: 13px; line-height: 1.7;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
}
.secure-redesign .alert-info { background: #f0f5fa; border-color: #c5d6e8; color: var(--info); }
.secure-redesign .alert-success { background: #eef7f2; border-color: rgba(45, 106, 79, 0.2); }
.secure-redesign .alert-warning { background: #fef9e7; border-color: rgba(180, 83, 9, 0.2); color: var(--amber); }
.secure-redesign .alert-danger { background: #fdf3f4; border-color: rgba(200, 16, 46, 0.2); color: var(--red-dark); }
.secure-redesign .alert strong { font-weight: 700; }
.secure-redesign .alert a { color: var(--red); border-bottom: 1px solid var(--red); padding-bottom: 1px; }

/* form errors */
.secure-redesign .form-error,
.secure-redesign .help-block.error,
.secure-redesign .text-danger {
  color: var(--red);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.secure-redesign .text-warning { color: var(--amber); }
.secure-redesign .text-info { color: var(--info); }
.secure-redesign .text-success { color: var(--green); }
.secure-redesign .text-muted, .secure-redesign .text-plain { color: var(--muted); }

/* ============================================================
   CARDS / KPI / SUMMARY
   ============================================================ */
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 40px;
}
.kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  position: relative; overflow: hidden;
  transition: all 0.18s ease;
}
.kpi:hover { border-color: var(--ink); transform: translateY(-2px); }
.kpi .kpi-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px;
}
.kpi .kpi-value {
  font-family: 'Shippori Mincho', serif;
  font-size: 32px; font-weight: 700; line-height: 1;
  color: var(--ink);
}
.kpi .kpi-value small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  margin-left: 6px; font-weight: 400;
}
.kpi .kpi-delta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; margin-top: 8px;
  color: var(--green); letter-spacing: 0.04em;
}
.kpi .kpi-delta.warn { color: var(--amber); }
.kpi .kpi-delta.danger { color: var(--red); }
.kpi.danger { background: linear-gradient(180deg, var(--paper) 0%, #fdf3f4 100%); }
.kpi.danger .kpi-value { color: var(--red); }

/* Doc block (a section wrapper used everywhere) */
.doc-block { margin-bottom: 40px; }
.doc-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px; margin-bottom: 20px;
  gap: 16px;
}
.doc-head h2, .doc-head h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 18px; font-weight: 700; margin: 0;
}
.doc-head .doc-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em; flex-shrink: 0;
}
.doc-head .doc-tag.danger { color: var(--red); }

/* Announcement list (お知らせ) */
.announce {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden;
}
.announce .ann-head {
  padding: 14px 22px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-family: 'Shippori Mincho', serif;
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between;
}
.announce .ann-head .count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted);
  background: var(--paper); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 2px;
  letter-spacing: 0.06em; font-weight: 400;
}
.announce .ann-item {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 18px; padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
}
.announce .ann-item:last-child { border-bottom: none; }
.announce .ann-item .ann-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.04em; padding-top: 2px;
}
.announce .ann-item .ann-body { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.announce .ann-item .ann-body a {
  color: var(--red); border-bottom: 1px solid var(--red); padding-bottom: 1px;
}

/* Side info panel (for layouts with main + sidebar info panel) */
.info-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.info-panel .ip-head {
  padding: 12px 18px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-family: 'Shippori Mincho', serif;
  font-weight: 700; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.info-panel .ip-body {
  padding: 18px;
  font-size: 13px; color: var(--ink-2); line-height: 1.7;
}
.info-panel .ip-body dl { margin: 0; }
.info-panel .ip-body dt {
  font-weight: 700; font-family: 'Shippori Mincho', serif;
  font-size: 13px; color: var(--ink); margin-top: 10px;
}
.info-panel .ip-body dt:first-child { margin-top: 0; }
.info-panel .ip-body dd { margin: 4px 0 0; font-size: 12px; color: var(--ink-2); }
.info-panel .ip-body p { margin: 0 0 10px; }
.info-panel .ip-body p:last-child { margin: 0; }

/* Two-column layout (main + side info) */
.split {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 24px; align-items: start;
}
.split.wide-side { grid-template-columns: 1fr 380px; }
.split.equal { grid-template-columns: 1fr 1fr; }
.split.thirds { grid-template-columns: 1fr 1fr 1fr; }

/* ============================================================
   TABLES (data tables)
   ============================================================ */
.table-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.table-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  gap: 12px; flex-wrap: wrap;
}
.table-toolbar .toolbar-left,
.table-toolbar .toolbar-right { display: flex; gap: 10px; align-items: center; }
.table-toolbar .table-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted); letter-spacing: 0.06em;
}

/* Replace .table with new style when inside .table-wrap (or .data) */
.secure-redesign table.table,
.secure-redesign table.data {
  width: 100%; border-collapse: collapse; margin: 0;
}
.secure-redesign .table-wrap table.table,
.secure-redesign .table-wrap table.data { background: var(--paper); }
.secure-redesign table.table caption,
.secure-redesign table.data caption {
  text-align: left;
  padding: 14px 18px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-family: 'Shippori Mincho', serif;
  font-weight: 700; font-size: 14px;
  color: var(--ink);
  caption-side: top;
}
.secure-redesign table.table thead th,
.secure-redesign table.data thead th {
  background: var(--paper);
  text-align: left;
  padding: 12px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.08em; font-weight: 500;
  border-bottom: 1px solid var(--line);
  border-top: none;
}
.secure-redesign table.table tbody td,
.secure-redesign table.data tbody td {
  padding: 14px 18px;
  font-size: 13px;
  border-top: none;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  vertical-align: middle;
}
.secure-redesign table.table tbody tr:last-child td,
.secure-redesign table.data tbody tr:last-child td { border-bottom: none; }
.secure-redesign table.table tbody tr:hover,
.secure-redesign table.data tbody tr:hover { background: var(--paper-2); }
.secure-redesign table.table tfoot th,
.secure-redesign table.data tfoot th {
  padding: 14px 18px; font-size: 13px;
  border-top: 1px solid var(--ink);
  font-weight: 700;
  background: var(--paper-2);
}
.secure-redesign table .text-center { text-align: center; }
.secure-redesign table .text-right { text-align: right; }

/* "Form table" — used for confirm screens (label/value pairs) */
.secure-redesign table.form-table {
  width: 100%; border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.secure-redesign table.form-table tr { border-bottom: 1px solid var(--line-soft); }
.secure-redesign table.form-table tr:last-child { border-bottom: none; }
.secure-redesign table.form-table th,
.secure-redesign table.form-table td {
  padding: 14px 18px; font-size: 13px;
  text-align: left; vertical-align: top;
}
.secure-redesign table.form-table th {
  width: 30%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.04em; font-weight: 500;
  background: var(--paper-2);
  border-right: 1px solid var(--line);
}
.secure-redesign table.form-table th label {
  margin: 0; font-weight: 500;
}
.secure-redesign table.form-table td { color: var(--ink); }
.secure-redesign table.form-table td small,
.secure-redesign table.form-table td small.text-plain {
  display: block; font-size: 11px; color: var(--muted); margin-top: 6px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em;
}

/* Tier chips (DV/OV/EV) */
.tier-chip {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  padding: 3px 7px; border-radius: 2px;
  letter-spacing: 0.08em;
  background: var(--paper-2); color: var(--muted);
  border: 1px solid var(--line);
  margin-left: 6px; vertical-align: 1px;
}
.tier-chip.dv { background: rgba(45, 106, 79, 0.06); color: var(--green); border-color: rgba(45, 106, 79, 0.3); }
.tier-chip.ov { background: rgba(200, 16, 46, 0.06); color: var(--red); border-color: rgba(200, 16, 46, 0.3); }
.tier-chip.ev { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Status badges (auto-translate based on text) */
.badge-secure {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 8px; border-radius: 2px;
  letter-spacing: 0.06em; font-weight: 500;
  border: 1px solid;
  background: transparent;
}
.badge-secure::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.badge-enable, .badge-active {
  color: var(--green);
  border-color: rgba(45, 106, 79, 0.3);
  background: rgba(45, 106, 79, 0.06);
}
.badge-disable, .badge-expired {
  color: var(--red);
  border-color: rgba(200, 16, 46, 0.3);
  background: rgba(200, 16, 46, 0.06);
}
.badge-expiring, .badge-pending-warn {
  color: var(--amber);
  border-color: rgba(180, 83, 9, 0.3);
  background: rgba(180, 83, 9, 0.06);
}
.badge-pending, .badge-default {
  color: var(--muted);
  border-color: var(--line);
  background: var(--paper-2);
}

/* Pager */
.secure-redesign .pagination {
  display: inline-flex; gap: 4px;
  padding: 0; margin: 16px 0 0;
}
.secure-redesign .pagination > li > a,
.secure-redesign .pagination > li > span {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  border-radius: 2px;
}
.secure-redesign .pagination > li > a:hover { border-color: var(--ink); color: var(--ink); }
.secure-redesign .pagination > .active > a,
.secure-redesign .pagination > .active > span {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

/* ============================================================
   FORMS
   ============================================================ */
.secure-redesign .form-group { margin-bottom: 16px; }
.secure-redesign label,
.secure-redesign .control-label {
  display: block;
  font-family: 'Shippori Mincho', serif;
  font-size: 13px; font-weight: 700;
  margin-bottom: 6px; color: var(--ink);
}
.secure-redesign small,
.secure-redesign .small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.secure-redesign small strong { color: var(--ink); }

.secure-redesign input[type="text"],
.secure-redesign input[type="email"],
.secure-redesign input[type="tel"],
.secure-redesign input[type="number"],
.secure-redesign input[type="password"],
.secure-redesign input[type="date"],
.secure-redesign select,
.secure-redesign textarea,
.secure-redesign .form-control {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: border-color 0.15s ease, background 0.15s ease;
  box-shadow: none;
  outline: none;
}
.secure-redesign input[type="text"]:focus,
.secure-redesign input[type="email"]:focus,
.secure-redesign input[type="tel"]:focus,
.secure-redesign input[type="number"]:focus,
.secure-redesign input[type="password"]:focus,
.secure-redesign input[type="date"]:focus,
.secure-redesign select:focus,
.secure-redesign textarea:focus,
.secure-redesign .form-control:focus {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.06);
}
.secure-redesign textarea {
  resize: vertical; min-height: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; line-height: 1.65;
}
.secure-redesign .form-control.is-invalid,
.secure-redesign .has-error .form-control,
.secure-redesign .has-error input,
.secure-redesign .has-error select,
.secure-redesign .has-error textarea {
  border-color: var(--red);
  background: #fdf3f4;
}

.secure-redesign .form-control-static {
  padding: 11px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: none;
  margin: 0;
}

/* Input-group (姓/名) */
.secure-redesign .input-group {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; background: var(--paper);
  width: 100%;
}
.secure-redesign .input-group:focus-within { border-color: var(--ink); background: #fff; }
.secure-redesign .input-group-addon {
  padding: 11px 14px;
  background: var(--paper-2); border-right: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  display: flex; align-items: center; flex-shrink: 0;
}
.secure-redesign .input-group .form-control,
.secure-redesign .input-group input {
  border: none; border-radius: 0; background: transparent; flex: 1;
}

/* Inline radio / checkbox lists */
.secure-redesign input[type="radio"]:not(.no-restyle),
.secure-redesign input[type="checkbox"]:not(.no-restyle) {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  cursor: pointer; margin: 0 6px 0 0; vertical-align: middle;
  position: relative; flex-shrink: 0;
  transition: all 0.15s ease;
}
.secure-redesign input[type="radio"]:not(.no-restyle) { border-radius: 50%; }
.secure-redesign input[type="checkbox"]:not(.no-restyle) { border-radius: 2px; }
.secure-redesign input[type="radio"]:not(.no-restyle):checked {
  border-color: var(--red); border-width: 5px;
}
.secure-redesign input[type="checkbox"]:not(.no-restyle):checked {
  background: var(--ink); border-color: var(--ink);
}
.secure-redesign input[type="checkbox"]:not(.no-restyle):checked::after {
  content: "✓"; position: absolute; inset: 0;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}

/* Form panels (.well used as form container) */
.secure-redesign .well {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  box-shadow: none;
}
.secure-redesign .well-sm {
  padding: 14px 18px; font-size: 13px;
}

/* form-horizontal (label + input row) — translate Bootstrap to flex */
.secure-redesign .form-horizontal .form-group { margin: 0 0 16px; }
.secure-redesign .form-horizontal .control-label {
  padding-top: 11px;
  font-family: 'Shippori Mincho', serif;
  font-size: 13px; font-weight: 700;
  text-align: left;
}
.secure-redesign .form-horizontal hr { border: 0; border-top: 1px dashed var(--line); margin: 14px 0; }

/* ============================================================
   PANELS — translate legacy bootstrap panels
   ============================================================ */
.secure-redesign .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 24px;
  box-shadow: none;
}
.secure-redesign .panel-heading {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 4px 4px 0 0;
}
.secure-redesign .panel-heading h3,
.secure-redesign .panel-heading h4,
.secure-redesign .panel-title {
  margin: 0;
  font-family: 'Shippori Mincho', serif;
  font-size: 14px; font-weight: 700;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.secure-redesign .panel-body {
  padding: 18px 22px;
  font-size: 13px; color: var(--ink-2); line-height: 1.7;
}
.secure-redesign .panel-default { border-color: var(--line); }
.secure-redesign .panel-info .panel-heading { background: #f0f5fa; color: var(--info); border-color: #c5d6e8; }
.secure-redesign .panel-info { border-color: #c5d6e8; }
.secure-redesign .panel-success .panel-heading { background: #eef7f2; color: var(--green); border-color: rgba(45,106,79,0.25); }
.secure-redesign .panel-success { border-color: rgba(45,106,79,0.25); }
.secure-redesign .panel-warning .panel-heading { background: #fef9e7; color: var(--amber); border-color: rgba(180,83,9,0.25); }
.secure-redesign .panel-warning { border-color: rgba(180,83,9,0.25); }
.secure-redesign .panel-danger .panel-heading { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.secure-redesign .panel-danger .panel-heading h3,
.secure-redesign .panel-danger .panel-heading h4,
.secure-redesign .panel-danger .panel-title { color: var(--paper); }
.secure-redesign .panel-danger { border-color: var(--ink); }
.secure-redesign .panel-group .panel + .panel { margin-top: 8px; }

/* list-group (used for warning/notice groups) */
.secure-redesign .list-group {
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper); margin-bottom: 24px; padding: 0;
}
.secure-redesign .list-group-item {
  padding: 16px 20px;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px; line-height: 1.7;
  background: transparent;
}
.secure-redesign .list-group-item:last-child { border-bottom: none; }
.secure-redesign .list-group-item-warning { background: #fef9e7; color: var(--amber); }
.secure-redesign .list-group-item-danger { background: #fdf3f4; color: var(--red-dark); }
.secure-redesign .list-group-item-success { background: #eef7f2; color: var(--green); }
.secure-redesign .list-group-item-info { background: #f0f5fa; color: var(--info); }
.secure-redesign .list-group-item h4,
.secure-redesign .list-group-item .page-header {
  font-family: 'Shippori Mincho', serif;
  font-size: 14px; font-weight: 700;
  margin: 0 0 8px;
  border: none; padding: 0;
}

/* ============================================================
   JUMBOTRON — translate legacy big card
   ============================================================ */
.secure-redesign .jumbotron {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--paper);
  padding: 36px 40px;
  border-radius: 4px;
  text-align: center;
  position: relative; overflow: hidden;
  margin-bottom: 32px;
}
.secure-redesign .jumbotron::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.secure-redesign .jumbotron::after {
  content: ""; position: absolute;
  bottom: -100px; right: -100px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.secure-redesign .jumbotron h1,
.secure-redesign .jumbotron h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 28px; font-weight: 700;
  margin-bottom: 14px; line-height: 1.3;
  position: relative;
  color: #fff;
}
.secure-redesign .jumbotron p {
  color: rgba(255,255,255,0.75);
  font-size: 14px; line-height: 1.7;
  position: relative;
  margin: 0 0 14px;
  max-width: 540px;
  margin-left: auto; margin-right: auto;
}
.secure-redesign .jumbotron p:last-of-type { margin-bottom: 0; }
.secure-redesign .jumbotron small,
.secure-redesign .jumbotron .small {
  color: rgba(255,255,255,0.5);
  position: relative;
}
.secure-redesign .jumbotron .btn,
.secure-redesign .jumbotron .btn-success,
.secure-redesign .jumbotron .btn-default,
.secure-redesign .jumbotron .btn-primary {
  background: var(--red); color: #fff;
  border: none;
  padding: 12px 28px; font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  display: inline-block;
  position: relative;
  text-decoration: none;
  transition: all 0.18s ease;
  margin-top: 8px;
}
.secure-redesign .jumbotron .btn:hover { background: var(--red-dark); color: #fff; }

/* Legacy Bootstrap button compatibility for non-jumbotron buttons */
.secure-redesign .btn:not(.btn-secure):not(.no-restyle) {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; font-size: 13px; font-weight: 700;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  line-height: 1.2;
  text-decoration: none;
  background: var(--paper); color: var(--ink);
  border-color: var(--line);
}
.secure-redesign .btn:not(.btn-secure):not(.no-restyle):hover { border-color: var(--ink); }
.secure-redesign .btn-primary:not(.no-restyle) {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.secure-redesign .btn-primary:not(.no-restyle):hover { background: var(--red); color: #fff; border-color: var(--red); }
.secure-redesign .btn-success:not(.no-restyle) {
  background: var(--green); color: #fff; border-color: var(--green);
}
.secure-redesign .btn-success:not(.no-restyle):hover { filter: brightness(0.92); color: #fff; }
.secure-redesign .btn-warning:not(.no-restyle) {
  background: var(--amber); color: #fff; border-color: var(--amber);
}
.secure-redesign .btn-danger:not(.no-restyle) {
  background: var(--red); color: #fff; border-color: var(--red);
}
.secure-redesign .btn-default:not(.no-restyle) {
  background: var(--paper); color: var(--ink); border-color: var(--line);
}
.secure-redesign .btn-sm,
.secure-redesign .btn-xs { padding: 6px 12px; font-size: 11px; }
.secure-redesign .btn-xs { padding: 4px 8px; font-size: 10px; }
.secure-redesign .btn-lg { padding: 12px 24px; font-size: 14px; }
.secure-redesign .btn-block { display: flex; width: 100%; justify-content: center; }
.secure-redesign .btn-group { display: inline-flex; gap: 4px; }

/* ============================================================
   NAV TABS
   ============================================================ */
.secure-redesign .nav-tabs {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  padding: 0; list-style: none;
  display: flex; gap: 4px;
}
.secure-redesign .nav-tabs > li { display: block; }
.secure-redesign .nav-tabs > li > a {
  display: block;
  padding: 11px 18px;
  font-family: 'Shippori Mincho', serif;
  font-size: 13px; font-weight: 700;
  color: var(--muted);
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  margin-bottom: -1px;
  background: transparent;
}
.secure-redesign .nav-tabs > li > a:hover { color: var(--ink); background: var(--paper-2); }
.secure-redesign .nav-tabs > li.active > a {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
  border-bottom-color: var(--paper);
  position: relative;
}
.secure-redesign .nav-tabs > li.active > a::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px;
  height: 2px; background: var(--red);
}
.secure-redesign .nav-justified { width: 100%; }
.secure-redesign .nav-justified > li { flex: 1; }
.secure-redesign .nav-justified > li > a { text-align: center; }

/* ============================================================
   STOREFRONT CTA (used in auth/apply)
   ============================================================ */
.storefront-cta {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--paper);
  border-radius: 4px;
  padding: 40px;
  position: relative; overflow: hidden;
  margin-bottom: 32px;
}
.storefront-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.storefront-cta::after {
  content: ""; position: absolute;
  bottom: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.storefront-cta .cta-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--red-soft);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; font-weight: 700; position: relative;
}
.storefront-cta .cta-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--red-soft); }
.storefront-cta h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 28px; font-weight: 700;
  margin: 0 0 14px; line-height: 1.3;
  position: relative; color: #fff;
}
.storefront-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 14px; max-width: 540px;
  margin: 0 0 28px; line-height: 1.7;
  position: relative;
}
.storefront-cta .cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: #fff;
  padding: 14px 28px; border-radius: 2px;
  font-weight: 700; font-size: 14px;
  transition: all 0.18s ease;
  position: relative;
  border: none; cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.secure-redesign .storefront-cta .cta-btn:hover { background: var(--red-dark); color: #fff; }
.storefront-cta .cta-btn::after { content: "↗"; font-size: 14px; }
.storefront-cta .cta-note {
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em; position: relative;
}

/* Login indicator banner (inside cta or warn notice) */
.login-indicator {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  padding: 6px 12px; border-radius: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.04em; margin: 8px 0;
}
.login-indicator::before { content: "✓"; font-weight: 700; }

/* ============================================================
   CERT TYPE CARDS (DV/OV/EV selectors)
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.cert-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all 0.18s ease;
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
}
.cert-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.cert-card.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.cert-card .cert-banner {
  height: 120px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cert-card .cert-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
}
.cert-card .cert-banner .grade {
  font-family: 'Shippori Mincho', serif;
  font-size: 56px; font-weight: 800;
  color: var(--ink); line-height: 1; position: relative;
}
.cert-card .cert-banner .grade-sub {
  position: absolute;
  bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--muted);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.cert-card .cert-banner .grade-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  background: var(--ink); color: #fff;
  padding: 3px 7px; border-radius: 2px;
  letter-spacing: 0.06em;
}
.cert-card.cert-ov .cert-banner .grade-tag { background: var(--red); }
.cert-card.cert-ev .cert-banner .grade-tag { background: var(--red-dark); }
.cert-card.cert-sectigo .cert-banner .grade-tag { background: var(--ink-3); }

.cert-card .cert-body {
  padding: 20px;
  flex: 1; display: flex; flex-direction: column;
}
.cert-card .cert-body h4 {
  font-family: 'Shippori Mincho', serif;
  font-size: 16px; font-weight: 700;
  margin: 0 0 12px;
}
.cert-card .cert-body .stars {
  display: flex; gap: 4px; margin-bottom: 16px;
}
.cert-card .cert-body .stars span { color: var(--line); font-size: 14px; }
.cert-card .cert-body .stars span.filled { color: var(--red); }
.cert-card .cert-body ul {
  list-style: none; padding: 0; margin: 0 0 20px; flex: 1;
}
.cert-card .cert-body ul li {
  font-size: 12px; color: var(--ink-2);
  padding: 5px 0 5px 18px; position: relative;
}
.cert-card .cert-body ul li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--green); font-weight: 700;
}
.cert-card .cert-body .select-btn {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink);
  padding: 10px 14px; font-size: 12px; font-weight: 700;
  border-radius: 2px; cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit; width: 100%;
  text-align: center; text-decoration: none;
  display: block;
}
.cert-card .cert-body .select-btn:hover { background: var(--ink); color: #fff; }
.cert-card.selected .cert-body .select-btn {
  background: var(--red); color: #fff; border-color: var(--red);
}

/* Override the legacy .product/.thumbnail wrappers when nested */
.secure-redesign .product .thumbnail {
  border: none !important;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.secure-redesign .product .thumbnail img { display: none; }

/* ============================================================
   CN input + Command generator panels
   ============================================================ */
.cn-input-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}
.cn-input-block > label {
  font-family: 'Shippori Mincho', serif;
  font-size: 14px; font-weight: 700;
  margin-bottom: 6px;
}
.cn-input-block .hint {
  font-size: 11px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
}
.cn-input-block textarea {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  min-height: 130px;
}
.cn-input-block .notes {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--paper-2);
  border-left: 2px solid var(--red);
  font-size: 11px; color: var(--ink-2); line-height: 1.7;
}
.cn-input-block .notes p { margin: 0 0 6px; }
.cn-input-block .notes p:last-child { margin: 0; }

/* Command output (textarea in caas) */
.cmd-output textarea {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; line-height: 1.6;
  background: var(--ink) !important;
  color: var(--green-soft) !important;
  border: 1px solid var(--ink) !important;
  padding: 14px !important;
}
.cmd-output textarea:focus {
  border-color: var(--red) !important;
  background: var(--ink-2) !important;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15) !important;
}

/* ============================================================
   AUTH (login/create/forgot) — uses single layout
   ============================================================ */
body.secure-redesign-auth {
  display: flex; flex-direction: column;
  background: var(--paper);
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}
.brand-panel {
  background: var(--ink); color: var(--paper);
  padding: 56px 64px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  position: relative; overflow: hidden;
}
.brand-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}
.brand-panel::after {
  content: ""; position: absolute;
  bottom: -120px; right: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.brand-top {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-top .logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 900; font-size: 20px; color: #fff;
}
.brand-top .logo .logo-mark {
  width: 32px; height: 32px; background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.brand-top .logo .logo-mark::before {
  content: ""; width: 0; height: 0;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-bottom: 12px solid #fff; margin-top: 3px;
}
.brand-top .logo small {
  display: block; font-size: 9px; font-weight: 500;
  color: rgba(255,255,255,0.6); letter-spacing: 0.18em; margin-top: 2px;
}
.brand-top .logo .brand-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: rgba(255,255,255,0.5);
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 14px; margin-left: 8px; letter-spacing: 0.06em;
}
.brand-top .status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--green-soft);
  border: 1px solid rgba(110, 231, 183, 0.3);
  padding: 6px 12px; border-radius: 100px; letter-spacing: 0.06em;
}
.brand-top .status-pill::before {
  content: ""; width: 6px; height: 6px;
  background: var(--green-soft); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.brand-center { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.brand-center .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red-soft); margin-bottom: 24px;
}
.brand-center .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--red-soft); }
.brand-center h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700; line-height: 1.3; margin-bottom: 24px; color: #fff;
}
.brand-center h1 em { font-style: italic; color: var(--red-soft); }
.brand-center p.intro {
  font-size: 15px; color: rgba(255,255,255,0.78);
  line-height: 1.85; max-width: 480px; margin-bottom: 40px;
}
.brand-bottom {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px dashed rgba(255,255,255,0.18);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.06em;
}
.brand-bottom .marks { display: flex; gap: 16px; }

.auth-panel {
  background: var(--paper); padding: 56px 64px;
  display: flex; flex-direction: column;
  position: relative;
}
.auth-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.4;
  mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 60%);
  pointer-events: none;
}
.auth-top {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 14px; font-size: 13px; color: var(--muted);
  position: relative;
}
.auth-top a.signup {
  font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 1px;
}
.auth-top a.signup:hover { color: var(--red); border-color: var(--red); }
.auth-form-wrap {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 440px; margin: 0 auto;
  width: 100%; position: relative; padding: 48px 0;
}
.auth-form-wrap h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 36px; font-weight: 700; line-height: 1.3;
  margin-bottom: 12px;
}
.auth-form-wrap .sub { font-size: 14px; color: var(--muted); margin-bottom: 36px; }
.auth-form-wrap form { display: flex; flex-direction: column; gap: 18px; }
.auth-form-wrap .field { display: flex; flex-direction: column; gap: 8px; }
.auth-form-wrap .field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500;
}
.auth-form-wrap .field input { padding: 14px 16px; font-size: 15px; }
.auth-form-wrap .submit-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-top: 12px;
}
.auth-form-wrap .submit {
  background: var(--ink); color: var(--paper); border: none;
  padding: 16px 32px; font-size: 14px; font-weight: 700;
  border-radius: 2px; transition: all 0.2s ease;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; font-family: inherit;
}
.auth-form-wrap .submit:hover { background: var(--red); }
.auth-form-wrap .submit::after { content: "→"; transition: transform 0.2s ease; }
.auth-form-wrap .submit:hover::after { transform: translateX(4px); }
.auth-form-wrap a.forgot { font-size: 13px; color: var(--muted); }
.auth-form-wrap a.forgot:hover { color: var(--red); }
.auth-form-wrap .divider {
  display: flex; align-items: center; gap: 14px;
  margin: 28px 0;
  color: var(--muted); font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em;
}
.auth-form-wrap .divider::before, .auth-form-wrap .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.auth-form-wrap .storefront-link {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.2s ease;
  color: inherit;
}
.auth-form-wrap .storefront-link:hover { border-color: var(--ink); transform: translateY(-2px); }
.auth-form-wrap .storefront-link .icon {
  width: 38px; height: 38px;
  background: var(--ink); color: var(--paper);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.auth-form-wrap .storefront-link .info { flex: 1; font-size: 12px; line-height: 1.5; }
.auth-form-wrap .storefront-link .info strong {
  display: block; font-family: 'Shippori Mincho', serif;
  font-size: 14px; margin-bottom: 2px; color: var(--ink);
}
.auth-form-wrap .storefront-link .info span { color: var(--muted); }
.auth-form-wrap .form-error { color: var(--red); font-size: 12px; }

/* Rules viewer (terms of service) */
.rules-viewer {
  border: 1px solid var(--line);
  border-radius: 4px;
  height: 200px; overflow-y: auto;
  padding: 16px;
  background: var(--paper);
  font-size: 12px; line-height: 1.85;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: var(--ink-2);
  margin-bottom: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.secure-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
  padding: 16px 36px;
  font-size: 11px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: 0.04em;
}

/* Pull right helpers used in legacy */
.secure-redesign .pull,
.secure-redesign .pull-right { float: none; }
.secure-redesign .pull.pull-right {
  display: inline-flex; gap: 8px; align-items: center;
  margin-left: auto;
}

/* Page heading legacy */
.secure-redesign h2.page-heading {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 16px;
}
.secure-redesign h2.page-heading small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--muted);
  font-weight: 400; letter-spacing: 0.04em;
}
.secure-redesign h1.page-header,
.secure-redesign h4.page-header,
.secure-redesign h3.page-header,
.secure-redesign h5.page-header {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.secure-redesign h1.page-header { font-size: 24px; }
.secure-redesign h3.page-header { font-size: 18px; }
.secure-redesign h4.page-header { font-size: 16px; }
.secure-redesign h5.page-header { font-size: 14px; }

/* "&nbsp;" spacer kills - more strict reset */
.secure-redesign .container-fluid > .row > .col-sm-9.col-sm-offset-3.col-md-10.col-md-offset-2.main {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}

/* Bootstrap col system: keep behavior inside content area */
.secure-redesign .content-inner [class^="col-sm-"],
.secure-redesign .content-inner [class^="col-md-"],
.secure-redesign .content-inner [class*=" col-sm-"],
.secure-redesign .content-inner [class*=" col-md-"] {
  /* Keep Bootstrap responsive behavior for content area */
}

/* Sub-header / sub-section title */
.secure-redesign h4 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 16px;
  margin: 24px 0 12px;
  color: var(--ink);
}
.secure-redesign h4:first-child { margin-top: 0; }
.secure-redesign h5 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700; font-size: 14px;
  margin: 20px 0 10px;
}
.secure-redesign h6 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700; font-size: 13px;
  margin: 14px 0 6px;
}

/* DL inside info panels */
.secure-redesign dl { margin-bottom: 12px; }
.secure-redesign dl dt {
  font-weight: 700;
  font-family: 'Shippori Mincho', serif;
  font-size: 13px; margin-top: 10px;
}
.secure-redesign dl dt:first-child { margin-top: 0; }
.secure-redesign dl dd { margin: 4px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.7; }

/* labels (legacy bootstrap small labels) */
.secure-redesign .label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  padding: 3px 7px; border-radius: 2px;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.secure-redesign .label-danger { background: var(--red); color: #fff; }
.secure-redesign .label-warning { background: var(--amber); color: #fff; }
.secure-redesign .label-success { background: var(--green); color: #fff; }
.secure-redesign .label-info { background: var(--info); color: #fff; }
.secure-redesign .label-default { background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); }
.secure-redesign .badge:not(.badge-secure) {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 2px;
  background: var(--red); color: #fff;
  letter-spacing: 0.06em;
}

/* Glyphicon shim — keep but smaller */
.secure-redesign .glyphicon {
  font-size: 11px;
  margin-right: 4px;
  vertical-align: middle;
  opacity: 0.7;
}

/* Empty state for tables */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--muted);
}
.empty-state .empty-icon {
  width: 56px; height: 56px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; color: var(--muted);
}
.empty-state strong {
  display: block;
  font-family: 'Shippori Mincho', serif;
  font-size: 16px; color: var(--ink);
  margin-bottom: 6px; font-weight: 700;
}

/* Maintenance / mente */
.mente-box {
  background: var(--ink); color: var(--paper);
  padding: 56px 40px; border-radius: 4px;
  text-align: center; position: relative; overflow: hidden;
}
.mente-box::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.mente-box h1 {
  font-family: 'Shippori Mincho', serif; font-size: 36px;
  margin: 0 0 16px; position: relative;
}
.mente-box p { position: relative; color: rgba(255,255,255,0.85); }
.mente-box a { color: var(--red-soft); border-bottom: 1px solid var(--red-soft); padding-bottom: 1px; }

/* Calendar shell (fullcalendar) */
.secure-redesign #calendar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
  max-width: none !important;
}
.secure-redesign .fc .fc-button {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; padding: 6px 12px;
  border-radius: 2px;
  box-shadow: none;
  letter-spacing: 0.04em;
}
.secure-redesign .fc .fc-button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.secure-redesign .fc .fc-button-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Responsive */
@media (max-width: 920px) {
  .secure-shell { grid-template-columns: 1fr; }
  .secure-sidebar { display: none; }
  .auth-layout { grid-template-columns: 1fr; }
  .brand-panel { padding: 28px 24px; }
  .auth-panel { padding: 28px 24px; }
  .split, .split.thirds { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .secure-content { padding: 32px 20px; }
  .secure-header { padding: 12px 20px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .secure-redesign table.form-table th { width: 40%; padding: 10px 12px; font-size: 10px; }
  .secure-redesign table.form-table td { padding: 10px 12px; font-size: 12px; }
}

/* ============================================================
   LOGO (CMC certified) — overrides the placeholder triangle
   added: 20260519 osaka
   ============================================================ */
body.secure-redesign img.logo-mark,
body.secure-redesign-auth img.logo-mark {
  background: transparent !important;
  border-radius: 0 !important;
  object-fit: contain;
  display: block;
}
/* sidebar size */
body.secure-redesign .side-brand img.logo-mark { width: 32px; height: 32px; }
/* auth brand size */
body.secure-redesign-auth .brand-top .logo img.logo-mark { width: 38px; height: 38px; }

/* ============================================================
   BUTTON TEXT COLOR FIX — override legacy style.css 'a' rules
   added: 20260519 osaka
   ============================================================ */

/* Anchors used as buttons need text-decoration off */
body.secure-redesign a.btn-secure,
body.secure-redesign a.cta-btn,
body.secure-redesign a.submit,
body.secure-redesign-auth a.submit {
  text-decoration: none !important;
}

/* Primary (dark on cream sidebar layout) */
body.secure-redesign a.btn-secure-primary,
body.secure-redesign button.btn-secure-primary,
body.secure-redesign input.btn-secure-primary,
body.secure-redesign .btn-secure-primary {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: none !important;
}
body.secure-redesign a.btn-secure-primary:hover,
body.secure-redesign button.btn-secure-primary:hover,
body.secure-redesign input.btn-secure-primary:hover,
body.secure-redesign .btn-secure-primary:hover {
  background: var(--red) !important;
  color: #fff !important;
}

/* Secondary (cream on dark text) */
body.secure-redesign a.btn-secure-secondary,
body.secure-redesign button.btn-secure-secondary,
body.secure-redesign input.btn-secure-secondary,
body.secure-redesign .btn-secure-secondary {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}
body.secure-redesign a.btn-secure-secondary:hover,
body.secure-redesign .btn-secure-secondary:hover {
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}

/* Success */
body.secure-redesign a.btn-secure-success,
body.secure-redesign button.btn-secure-success,
body.secure-redesign input.btn-secure-success,
body.secure-redesign .btn-secure-success {
  background: var(--green) !important;
  color: #fff !important;
  border: none !important;
}
body.secure-redesign a.btn-secure-success:hover,
body.secure-redesign .btn-secure-success:hover {
  color: #fff !important;
}

/* Danger (filled) */
body.secure-redesign a.btn-secure-danger,
body.secure-redesign button.btn-secure-danger,
body.secure-redesign input.btn-secure-danger,
body.secure-redesign .btn-secure-danger {
  background: var(--red) !important;
  color: #fff !important;
  border: none !important;
}
body.secure-redesign a.btn-secure-danger:hover,
body.secure-redesign .btn-secure-danger:hover {
  background: var(--red-dark) !important;
  color: #fff !important;
}

/* Danger outline */
body.secure-redesign a.btn-secure-danger-outline,
body.secure-redesign .btn-secure-danger-outline {
  background: transparent !important;
  color: var(--red) !important;
  border: 1px solid rgba(200, 16, 46, 0.3) !important;
}
body.secure-redesign a.btn-secure-danger-outline:hover,
body.secure-redesign .btn-secure-danger-outline:hover {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--red) !important;
}

/* Ghost */
body.secure-redesign a.btn-secure-ghost,
body.secure-redesign .btn-secure-ghost {
  color: var(--muted) !important;
}
body.secure-redesign a.btn-secure-ghost:hover,
body.secure-redesign .btn-secure-ghost:hover {
  color: var(--ink) !important;
}

/* Icon buttons */
body.secure-redesign a.btn-secure-icon,
body.secure-redesign a.btn-secure-icon-sm,
body.secure-redesign .btn-secure-icon,
body.secure-redesign .btn-secure-icon-sm {
  color: var(--ink-2) !important;
}
body.secure-redesign a.btn-secure-icon:hover,
body.secure-redesign a.btn-secure-icon-sm:hover,
body.secure-redesign .btn-secure-icon:hover,
body.secure-redesign .btn-secure-icon-sm:hover {
  color: var(--ink) !important;
}

/* CTA buttons (storefront cards in auth/apply etc.) */
body.secure-redesign a.cta-btn,
body.secure-redesign .cta-btn {
  color: #fff !important;
}
body.secure-redesign a.cta-btn:hover,
body.secure-redesign .cta-btn:hover {
  color: #fff !important;
}

/* Auth submit button (login / forgot etc.) */
body.secure-redesign-auth a.submit,
body.secure-redesign-auth button.submit,
body.secure-redesign-auth .submit {
  color: var(--paper) !important;
  text-decoration: none !important;
}
body.secure-redesign-auth a.submit:hover,
body.secure-redesign-auth .submit:hover {
  color: var(--paper) !important;
}

/* Jumbotron buttons */
body.secure-redesign .jumbotron a.btn,
body.secure-redesign .jumbotron .btn {
  color: #fff !important;
}

/* ============================================================
   SELECT / OPTION FIX — kill any inherited text-decoration
   and add a clean custom chevron arrow
   added: 20260519 osaka
   ============================================================ */

/* Kill any line-through / underline coming from legacy style.css */
body.secure-redesign select,
body.secure-redesign select option,
body.secure-redesign input,
body.secure-redesign textarea {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-style: none !important;
  text-decoration-color: transparent !important;
}

/* Custom chevron + clean rendering */
body.secure-redesign select,
body.secure-redesign .form-control[type="select"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: var(--paper) !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230a1628' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1,1 6,6 11,1'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
  line-height: 1.4 !important;
  min-height: 42px;
  color: var(--ink) !important;
  cursor: pointer;
}

/* When inside an input-group, no extra padding */
body.secure-redesign .input-group select {
  background-position: right 10px center !important;
  padding-right: 30px !important;
}

/* Disabled */
body.secure-redesign select:disabled {
  background-color: var(--paper-2) !important;
  color: var(--muted) !important;
  cursor: not-allowed;
}

/* Multiple-select should keep default rendering */
body.secure-redesign select[multiple],
body.secure-redesign select[size]:not([size="1"]) {
  background-image: none !important;
  padding-right: 14px !important;
  min-height: auto;
}

/* Options inside dropdown (browser controls limit styling but ensure no decoration) */
body.secure-redesign option {
  background: var(--paper) !important;
  color: var(--ink) !important;
  padding: 8px 14px;
}

/* ============================================================
   NOWRAP FIX — keep buttons / badges / dates on one line
   added: 20260519 osaka
   ============================================================ */

/* Buttons should never break */
body.secure-redesign .btn-secure,
body.secure-redesign .btn-secure-primary,
body.secure-redesign .btn-secure-secondary,
body.secure-redesign .btn-secure-success,
body.secure-redesign .btn-secure-danger,
body.secure-redesign .btn-secure-danger-outline,
body.secure-redesign .btn-secure-ghost,
body.secure-redesign .btn-secure-icon,
body.secure-redesign .btn-secure-icon-sm,
body.secure-redesign .cta-btn,
body.secure-redesign .submit,
body.secure-redesign-auth .submit,
body.secure-redesign .btn:not(.btn-secure):not(.no-restyle) {
  white-space: nowrap !important;
  word-break: keep-all !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Badges (status pills) — keep on one line */
body.secure-redesign .badge-secure,
body.secure-redesign .tier-chip,
body.secure-redesign .label,
body.secure-redesign .badge {
  white-space: nowrap !important;
  word-break: keep-all !important;
}

/* Table cells should not aggressively break Japanese */
body.secure-redesign table.data td,
body.secure-redesign table.data th,
body.secure-redesign table.table td,
body.secure-redesign table.table th,
body.secure-redesign table.form-table td,
body.secure-redesign table.form-table th {
  word-break: normal !important;
  overflow-wrap: normal !important;
  -ms-word-break: normal !important;
}

/* The action column (first column) holding small buttons — give it just enough room */
body.secure-redesign table.data td:first-child {
  white-space: nowrap !important;
  width: 1%;     /* shrink to content width */
}

/* Date-like columns: don't wrap the date */
body.secure-redesign table.data td[style*="JetBrains Mono"] {
  white-space: nowrap;
}

/* Inner flex groups with buttons (action cell) */
body.secure-redesign table.data td > div[style*="display:inline-flex"] {
  white-space: nowrap !important;
}
