:root {
  --ink: #142033;
  --muted: #64748b;
  --subtle: #94a3b8;
  --line: #dfe7ee;
  --canvas: #f2f6f8;
  --surface: #ffffff;
  --nav: #111827;
  --nav-soft: #1d2939;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --teal-soft: #ccfbf1;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  font-family: "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(20, 184, 166, 0.18), transparent 31%),
    radial-gradient(circle at 86% 78%, rgba(37, 99, 235, 0.15), transparent 29%),
    #0d1523;
}

.login-atmosphere { position: absolute; inset: 0; pointer-events: none; opacity: .62; }
.city-line { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(94, 234, 212, .55), transparent); transform: rotate(-10deg); }
.city-line-a { width: 70vw; left: -8vw; top: 26%; }
.city-line-b { width: 86vw; right: -20vw; bottom: 26%; transform: rotate(17deg); }
.city-line-c { width: 40vw; right: 4vw; top: 18%; transform: rotate(48deg); opacity: .4; }

.login-card {
  width: min(100%, 430px);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 26px;
  padding: 40px;
  color: #f8fafc;
  background: rgba(17, 24, 39, .88);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #0f172a;
  background: linear-gradient(140deg, #99f6e4, #2dd4bf);
  box-shadow: 0 8px 20px rgba(20, 184, 166, .25);
}
.brand-mark.large { width: 56px; height: 56px; border-radius: 17px; font-size: 1.45rem; margin-bottom: 26px; }
.eyebrow { color: #5eead4; font-weight: 800; letter-spacing: .14em; font-size: .76rem; margin: 0 0 8px; }
.login-card h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.35rem); letter-spacing: -.035em; }
.login-intro { margin: 10px 0 28px; color: #aebbd0; line-height: 1.7; }
.login-card label { display: block; color: #dce5f2; font-size: .9rem; font-weight: 700; margin: 18px 0 8px; }
.login-card input {
  width: 100%;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px 15px;
  color: #f8fafc;
  background: rgba(15, 23, 42, .78);
  outline: none;
  transition: .18s ease;
}
.login-card input:focus { border-color: #2dd4bf; box-shadow: 0 0 0 3px rgba(45, 212, 191, .16); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 64px; }
.text-button { position: absolute; right: 8px; top: 7px; border: 0; border-radius: 8px; padding: 8px; color: #5eead4; background: transparent; font-weight: 800; }
.primary-button { border: 0; border-radius: 12px; padding: 13px 18px; color: #07231f; background: #5eead4; font-weight: 900; box-shadow: 0 8px 22px rgba(45, 212, 191, .17); }
.primary-button:hover { background: #99f6e4; transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.login-button { width: 100%; margin-top: 22px; }
.form-error { min-height: 20px; margin: 10px 0 -4px; color: #fca5a5; font-size: .86rem; }
.security-note { margin: 24px 0 0; color: #8291a8; font-size: .78rem; text-align: center; }
.security-note span { color: #2dd4bf; margin-right: 5px; }
.notice { padding: 12px 14px; border-radius: 11px; font-size: .86rem; line-height: 1.5; }
.notice.warning { background: rgba(217, 119, 6, .14); border: 1px solid rgba(251, 191, 36, .3); color: #fde68a; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  color: #e5edf8;
  background:
    linear-gradient(180deg, rgba(20, 184, 166, .07), transparent 22%),
    var(--nav);
  overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 2px 10px 23px; border-bottom: 1px solid rgba(148, 163, 184, .13); }
.sidebar-brand strong { display: block; font-size: 1rem; letter-spacing: -.01em; }
.sidebar-brand span { display: block; margin-top: 3px; color: #7f8ca2; font-size: .73rem; }
.main-nav { flex: 1; padding: 12px 0 18px; }
.nav-group { margin: 18px 12px 7px; color: #64748b; font-size: .68rem; letter-spacing: .12em; font-weight: 800; }
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 10px;
  padding: 10px 11px;
  color: #aebbd0;
  background: transparent;
  text-align: left;
  font-size: .88rem;
  font-weight: 700;
  transition: .14s ease;
}
.nav-item:hover { color: #f8fafc; background: rgba(255, 255, 255, .055); }
.nav-item.active { color: #ffffff; background: linear-gradient(90deg, rgba(20, 184, 166, .2), rgba(20, 184, 166, .08)); box-shadow: inset 3px 0 #2dd4bf; }
.nav-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #cbd5e1; background: rgba(148, 163, 184, .11); font-size: .75rem; }
.nav-item.active .nav-icon { color: #07231f; background: #5eead4; }
.nav-count { margin-left: auto; min-width: 22px; height: 20px; display: grid; place-items: center; border-radius: 8px; color: #9fb0c6; background: rgba(148, 163, 184, .12); font-size: .7rem; }
.operator-card { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(148, 163, 184, .13); border-radius: 14px; padding: 11px; background: rgba(255, 255, 255, .035); }
.operator-avatar { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #99f6e4; background: #243243; font-size: .7rem; font-weight: 900; }
.operator-copy { min-width: 0; flex: 1; }
.operator-copy strong, .operator-copy span, .operator-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.operator-copy strong { color: #f8fafc; font-size: .83rem; }
.operator-copy span { color: #94a3b8; font-size: .7rem; margin: 2px 0; }
.operator-copy small { color: #64748b; font-size: .66rem; }
.icon-button { border: 0; border-radius: 8px; padding: 7px; color: #94a3b8; background: transparent; font-size: .72rem; }
.icon-button:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.workspace { min-width: 0; }
.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.topbar-title { display: flex; align-items: center; gap: 12px; }
.breadcrumb { margin: 0 0 4px; color: var(--subtle); font-size: .76rem; font-weight: 700; }
.topbar h1 { margin: 0; font-size: 1.33rem; letter-spacing: -.025em; }
.topbar-status { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.txadmin-link { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #a7f3d0; border-radius: 10px; padding: 7px 10px; color: #0f766e; background: #ecfdf5; text-decoration: none; font-size: .76rem; font-weight: 900; white-space: nowrap; transition: .14s ease; }
.txadmin-link:hover { border-color: #5eead4; color: #115e59; background: #ccfbf1; transform: translateY(-1px); }
.txadmin-link:focus-visible { outline: 3px solid rgba(20, 184, 166, .22); outline-offset: 2px; }
.txadmin-link-mark { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: #ecfdf5; background: #0f766e; font-size: .69rem; letter-spacing: -.04em; }
.txadmin-link b { font-size: .78rem; }
.server-pill { display: flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 10px; color: var(--muted); background: #edf2f6; font-size: .75rem; }
.server-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--subtle); }
.server-pill.online { color: #0f766e; background: var(--teal-soft); }
.server-pill.online span { background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(20, 184, 166, .12); }
.server-pill.offline { color: #b91c1c; background: var(--red-soft); }
.server-pill.offline span { background: var(--red); }
.menu-button { display: none; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); padding: 7px 9px; }

.page-content { padding: 28px 30px 46px; max-width: 1600px; margin: 0 auto; }
.page-lead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-lead h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.025em; }
.page-lead p { margin: 6px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.secondary-button { border: 1px solid #cdd8e2; border-radius: 10px; padding: 10px 13px; color: #334155; background: #fff; font-weight: 800; font-size: .82rem; }
.secondary-button:hover { border-color: #94a3b8; background: #f8fafc; }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.metric-card, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 4px 18px rgba(15, 23, 42, .035); }
.metric-card { min-height: 132px; padding: 18px; position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%; right: -20px; top: -24px; background: var(--accent-soft, #edf2f6); }
.metric-card .metric-label { color: var(--muted); font-size: .78rem; font-weight: 800; }
.metric-value { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; }
.metric-value strong { font-size: 2rem; letter-spacing: -.05em; }
.metric-value span { color: var(--muted); font-size: .76rem; }
.metric-note { margin-top: 10px; color: var(--subtle); font-size: .72rem; }
.metric-card.teal { --accent-soft: var(--teal-soft); }
.metric-card.blue { --accent-soft: var(--blue-soft); }
.metric-card.amber { --accent-soft: var(--amber-soft); }
.metric-card.red { --accent-soft: var(--red-soft); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); gap: 18px; }
.panel { padding: 20px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-title { margin: 0; font-size: .98rem; }
.panel-subtitle { margin: 4px 0 0; color: var(--subtle); font-size: .73rem; }
.status-chip { border-radius: 999px; padding: 5px 9px; font-size: .7rem; font-weight: 900; }
.status-chip.success { color: #0f766e; background: var(--teal-soft); }
.status-chip.warning { color: #b45309; background: var(--amber-soft); }
.status-chip.danger { color: #b91c1c; background: var(--red-soft); }
.status-chip.neutral { color: #475569; background: #e8eef3; }

.server-visual { display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: center; padding: 8px 2px 4px; }
.server-gauge { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal-bright) var(--gauge), #e6edf2 0); position: relative; }
.server-gauge::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.server-gauge-content { position: relative; text-align: center; }
.server-gauge-content strong { display: block; font-size: 1.65rem; letter-spacing: -.04em; }
.server-gauge-content span { color: var(--muted); font-size: .7rem; }
.server-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.server-fact { padding: 12px; border-radius: 12px; background: #f6f9fb; }
.server-fact span { display: block; color: var(--muted); font-size: .7rem; }
.server-fact strong { display: block; margin-top: 5px; font-size: .9rem; }

.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-item { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid #edf2f6; }
.activity-item:first-child { border-top: 0; padding-top: 0; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--teal-bright); }
.activity-dot.denied { background: var(--red); }
.activity-copy strong { display: block; font-size: .78rem; }
.activity-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.activity-time { color: var(--subtle); font-size: .66rem; white-space: nowrap; }

.table-panel { overflow: hidden; padding: 0; }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.search-input { min-width: min(320px, 50vw); border: 1px solid #ccd7e0; border-radius: 10px; padding: 10px 12px; outline: none; background: #f8fafc; }
.search-input:focus { border-color: var(--teal-bright); box-shadow: 0 0 0 3px rgba(20, 184, 166, .12); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 13px 20px; border-bottom: 1px solid #edf2f6; text-align: left; font-size: .8rem; }
.data-table th { color: var(--muted); background: #fafcfd; font-size: .7rem; letter-spacing: .04em; }
.data-table tr:last-child td { border-bottom: 0; }
.mono { font-family: "Cascadia Mono", "Consolas", monospace; font-size: .76rem; }

.empty-state { min-height: 310px; display: grid; place-items: center; text-align: center; padding: 38px; }
.empty-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 20px; color: var(--teal); background: var(--teal-soft); font-size: 1.15rem; font-weight: 900; }
.empty-state h3 { margin: 0; font-size: 1.05rem; }
.empty-state p { max-width: 520px; margin: 9px auto 0; color: var(--muted); line-height: 1.7; font-size: .84rem; }
.integration-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; text-align: left; }
.integration-step { border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: #fff; }
.integration-step b { display: block; color: var(--teal); font-size: .7rem; }
.integration-step span { display: block; margin-top: 5px; color: var(--ink); font-size: .78rem; font-weight: 700; }

.role-card { display: flex; align-items: center; gap: 10px; }
.role-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #0f766e; background: var(--teal-soft); font-weight: 900; font-size: .72rem; }
.role-card strong { display: block; font-size: .79rem; }
.role-card span { display: block; color: var(--muted); font-size: .7rem; margin-top: 2px; }

.system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.system-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.system-item strong { display: block; font-size: .85rem; }
.system-item span { display: block; margin-top: 4px; color: var(--muted); font-size: .73rem; }
.system-state { flex: 0 0 auto; border-radius: 999px; padding: 6px 9px; font-size: .68rem; font-weight: 900; color: #0f766e; background: var(--teal-soft); }
.system-state.pending { color: #b45309; background: var(--amber-soft); }
.system-state.offline { color: #b91c1c; background: var(--red-soft); }

.backup-target-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.backup-target { position: relative; overflow: hidden; }
.backup-target::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #f59e0b; }
.backup-target.is-ready::before { background: var(--teal-bright); }
.backup-target-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.backup-symbol { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #b45309; background: var(--amber-soft); font-size: .8rem; font-weight: 900; }
.backup-target.is-ready .backup-symbol { color: var(--teal); background: var(--teal-soft); }
.backup-target h3 { margin: 18px 0 7px; font-size: 1rem; }
.backup-target > p { min-height: 44px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.backup-meta { margin: 18px 0; padding: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.backup-meta div { min-width: 0; }
.backup-meta dt { color: var(--subtle); font-size: .68rem; }
.backup-meta dd { margin: 5px 0 0; font-size: .78rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.backup-create { width: 100%; }
.backup-create:disabled { cursor: not-allowed; opacity: .58; }
.backup-history { margin-top: 0; }
.table-caption { margin: 4px 0 0; color: var(--subtle); font-size: .7rem; }
.empty-state.compact { min-height: 230px; }
.table-action { border: 0; border-radius: 8px; padding: 7px 9px; color: #b45309; background: var(--amber-soft); font-size: .7rem; font-weight: 900; white-space: nowrap; }
.table-action:hover { background: #fde68a; }
.restore-pending { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 16px 18px; border: 1px solid #f5cf83; border-radius: 14px; background: #fff8e8; }
.restore-pending b, .restore-pending span, .restore-pending small { display: block; }
.restore-pending b { color: #92400e; font-size: .86rem; }
.restore-pending span { margin-top: 5px; color: #a16207; font-size: .72rem; }
.restore-pending small { margin-top: 5px; color: var(--muted); font-size: .72rem; }
.restore-dialog { width: min(92vw, 540px); border: 0; border-radius: 20px; padding: 0; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(15, 23, 42, .34); }
.restore-dialog::backdrop { background: rgba(15, 23, 42, .64); backdrop-filter: blur(3px); }
.restore-dialog form { padding: 26px; }
.dialog-kicker { color: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.restore-dialog h2 { margin: 7px 0 0; font-size: 1.35rem; }
.dialog-copy { margin: 10px 0 18px; color: var(--muted); font-size: .8rem; line-height: 1.7; }
.restore-selection { padding: 13px; border-radius: 12px; background: #f3f6f8; }
.restore-selection span, .restore-selection strong { display: block; }
.restore-selection span { color: var(--muted); font-size: .68rem; }
.restore-selection strong { margin-top: 5px; overflow-wrap: anywhere; font-family: "Cascadia Mono", "Consolas", monospace; font-size: .75rem; }
.restore-dialog label { display: block; margin: 16px 0 7px; font-size: .78rem; font-weight: 800; }
.restore-dialog input, .restore-dialog textarea { width: 100%; border: 1px solid #cdd8e2; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: #fff; outline: none; resize: vertical; }
.restore-dialog input:focus, .restore-dialog textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220, 38, 38, .1); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.danger-button { border: 0; border-radius: 10px; padding: 11px 14px; color: #fff; background: var(--red); font-weight: 900; font-size: .8rem; }
.danger-button:hover { background: #b91c1c; }
.danger-button:disabled { cursor: wait; opacity: .6; }

.loading-state { min-height: 50vh; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.loading-state span { width: 34px; height: 34px; border: 3px solid #dce6ec; border-top-color: var(--teal-bright); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-state p { margin: 0; font-size: .82rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state { padding: 28px; border: 1px solid #fecaca; border-radius: 16px; color: #991b1b; background: #fff7f7; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: 340px; transform: translateY(20px); opacity: 0; pointer-events: none; border-radius: 12px; padding: 12px 15px; color: #fff; background: #172033; box-shadow: var(--shadow); transition: .2s ease; font-size: .8rem; }
.toast.show { transform: translateY(0); opacity: 1; }
.mobile-scrim { display: none; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 30; width: min(82vw, 290px); transform: translateX(-102%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-scrim { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(15, 23, 42, .52); opacity: 0; pointer-events: none; transition: .2s ease; }
  .mobile-scrim.open { opacity: 1; pointer-events: auto; }
  .menu-button { display: block; }
  .topbar { height: 78px; padding: 0 18px; }
  .page-content { padding: 20px 16px 36px; }
  .topbar-status { gap: 9px; }
  .txadmin-link > span:not(.txadmin-link-mark), .txadmin-link > b { display: none; }
  .txadmin-link { padding: 6px; }
  .topbar-status time { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 116px; padding: 15px; }
  .metric-value strong { font-size: 1.65rem; }
  .server-visual { grid-template-columns: 110px 1fr; gap: 15px; }
  .integration-list, .system-grid { grid-template-columns: 1fr; }
  .backup-target-grid { grid-template-columns: 1fr; }
  .restore-pending { align-items: flex-start; flex-direction: column; }
  .table-panel { overflow-x: auto; }
  .data-table { min-width: 680px; }
}

@media (max-width: 480px) {
  .login-view { padding: 14px; }
  .login-card { padding: 28px 22px; border-radius: 20px; }
  .metric-grid { grid-template-columns: 1fr; }
  .page-lead { align-items: flex-start; flex-direction: column; }
  .server-visual { grid-template-columns: 1fr; }
  .server-gauge { width: 120px; margin: 0 auto; }
  #auto-refresh { display: none; }
}

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

/* Operations workspace: shared navigation, distinct information densities. */
.main-nav { overflow-y: auto; min-height: 0; }
.ops-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.overview-shortcuts { margin: 0 0 22px; }
.muted { color: var(--muted); }
.block { display: block; margin-top: 6px; }
.overdue { color: var(--red); font-weight: 800; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.launch-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 26px 28px; border-radius: 18px; background: linear-gradient(115deg, #132c3a, #0b4947); color: #fff; margin: 0 0 20px; }
.launch-strip h3 { margin: 8px 0; font-size: 2rem; }
.launch-strip h3 small { font-size: .85rem; font-weight: 500; color: #b5d2d5; }
.launch-strip p { color: #b5d2d5; font-size: .8rem; margin: 0; }
.launch-progress { min-width: 230px; width: 35%; }
.launch-progress strong { display: block; font-size: 2rem; margin-bottom: 8px; }
.launch-progress span { display: block; color: #b5d2d5; font-size: .68rem; line-height: 1.6; margin-top: 8px; }
progress { appearance: none; height: 7px; width: 100%; border: 0; border-radius: 8px; overflow: hidden; background: #cbd5e1; }
progress::-webkit-progress-bar { background: #cbd5e1; border-radius: 8px; }
progress::-webkit-progress-value { background: var(--teal-bright); border-radius: 8px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.category-card { text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); }
.category-card:hover { border-color: var(--teal); }
.category-card span { font-size: .78rem; font-weight: 700; display: block; }
.category-card strong { font-size: 1.5rem; display: block; margin: 7px 0; }
.category-card small { font-size: .75rem; color: var(--muted); font-weight: 500; }
.ops-toolbar { flex-wrap: wrap; gap: 10px; }
.ops-toolbar select { padding: 9px; max-width: 200px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.check-label { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .8rem; }
.tasks-table { table-layout: auto; }
.tasks-table td:first-child { width: 48%; min-width: 250px; white-space: normal; }
.cell-title { display: block; margin-top: 6px; }
.cell-title .status-chip { margin-left: 6px; vertical-align: middle; }
.cell-copy { margin: 6px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.65; max-width: 620px; }
.dependency { display: block; max-width: 170px; white-space: normal; font-size: .72rem; color: #b45309; line-height: 1.65; }
.ops-footer { padding: 16px; margin: 0; }
.ops-dialog { width: min(94vw, 800px); max-height: 90vh; }
.ops-dialog p { line-height: 1.8; overflow-wrap: anywhere; }
.ops-dialog select { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.ops-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ops-dialog .notice { margin-top: 16px; }
.record-list { display: grid; gap: 14px; }
.record-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; }
.record-heading { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.record-heading h3 { margin: 6px 0 0; font-size: 1rem; }
.record-excerpt { color: var(--muted); font-size: .82rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.record-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .7rem; margin: 16px 0; }
.decision-line { background: #fff8e8; border-radius: 8px; padding: 10px; font-size: .75rem; margin-bottom: 12px; }
.approval-preparation { margin-bottom: 20px; }
.sync-details { margin-top: 20px; margin-bottom: 20px; }
.sync-details p { color: var(--muted); font-size: .82rem; line-height: 1.8; }
.domain-task-list { margin: 15px 0 22px; }
.domain-task-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.permission-list { columns: 2; font-size: .72rem; line-height: 1.9; padding-left: 18px; overflow-wrap: anywhere; }
.notice { margin-bottom: 16px; line-height: 1.8; }
.metric-value strong { overflow-wrap: anywhere; }
.rule-tabs { margin-bottom: 18px; flex-wrap: wrap; }
.rule-copy { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; font-size: .86rem; }
.record-card details { margin: 16px 0; padding: 12px; background: #f4f7f8; border-radius: 9px; font-size: .83rem; }
.record-card summary, #rule-fields summary { cursor: pointer; line-height: 1.8; }
.record-card h4 { font-size: .8rem; margin-bottom: 4px; }
.rule-ref-list { border: 1px solid var(--line); border-radius: 10px; max-height: 230px; overflow: auto; padding: 12px; margin: 16px 0; }
.rule-ref-list label { display: flex; margin: 8px 0; align-items: flex-start; white-space: normal; }
#rule-fields .check-label { white-space: normal; }
#rule-fields input[type="checkbox"] { width: auto; }
#rule-fields details { border-bottom: 1px solid var(--line); padding: 14px 0; }
@media (max-width: 1100px) { .category-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .launch-strip { flex-direction: column; align-items: stretch; gap: 18px; padding: 20px; }
  .launch-progress { width: 100%; min-width: 0; }
  .category-grid, .role-grid, .ops-form-grid { grid-template-columns: 1fr; }
  .ops-toolbar { align-items: stretch; }
  .ops-toolbar input, .ops-toolbar select { max-width: 100%; width: 100%; }
  .record-heading { flex-direction: column; }
  .permission-list { columns: 1; }
}

/* ---- ロード画面の設定（Issue #32） ---- */
.ls-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 0 16px; font-size: .8rem; }
.ls-layout { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.25fr); gap: 18px; align-items: start; }
.ls-editor { min-width: 0; }
.ls-preview { position: sticky; top: 16px; min-width: 0; }
.ls-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ls-tabs button, .ls-seg button { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: var(--surface); color: var(--ink); font-size: .78rem; font-weight: 800; cursor: pointer; }
.ls-tabs button.active, .ls-seg button.active { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.ls-h { margin: 18px 0 10px; font-size: .9rem; }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
.ls-grid label, .ls-fieldset label { display: grid; gap: 6px; font-size: .8rem; font-weight: 800; color: var(--ink); }
.ls-grid input[type="text"], .ls-grid select, .ls-row input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font: inherit; font-weight: 500; background: var(--surface); color: var(--ink); }
.ls-grid input[type="color"] { width: 64px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ls-range { display: flex; align-items: center; gap: 10px; }
.ls-range input { flex: 1; accent-color: var(--teal); }
.ls-range output { min-width: 4.5em; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.ls-fieldset { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.ls-fieldset legend { padding: 0 6px; font-size: .84rem; font-weight: 900; }
.ls-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.ls-row { display: flex; gap: 8px; align-items: center; }
.ls-row input:first-child { flex: 0 0 34%; }
.ls-fieldset .ls-rows .ls-row input:only-of-type { flex: 1; }
.ls-move { display: inline-flex; gap: 4px; flex: none; }
.ls-ordered { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ls-ordered li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ls-drop { margin: 14px 0 10px; padding: 14px; border: 2px dashed var(--line); border-radius: 12px; background: var(--canvas); text-align: center; }
.ls-drop.over { border-color: var(--teal); background: var(--teal-soft); }
.ls-drop p { margin: 0 0 4px; }
.ls-progress { position: relative; margin-top: 10px; height: 22px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ls-progress div { height: 100%; width: 0; background: var(--teal-bright); transition: width .2s; }
.ls-progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .72rem; font-weight: 800; }
.ls-library { display: grid; gap: 8px; }
.ls-media { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.ls-media strong { display: block; font-size: .82rem; word-break: break-all; }
.ls-media small { display: block; margin-top: 2px; font-size: .72rem; }
.ls-media audio { width: 100%; margin-top: 6px; height: 30px; }
.ls-thumb { width: 112px; height: 63px; object-fit: cover; border-radius: 8px; background: #111827; }
.ls-thumb-audio, .ls-thumb-video { display: grid; place-items: center; color: #fff; font-weight: 900; font-size: .78rem; }
.ls-preview-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 12px; }
.ls-seg { display: inline-flex; gap: 4px; }
.ls-sound { font-size: .78rem; }
.ls-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b0a12; box-shadow: var(--shadow); }
.ls-frame iframe { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; }
.ls-note { margin: 10px 0 0; font-size: .72rem; }
@media (max-width: 1180px) { .ls-layout { grid-template-columns: 1fr; } .ls-preview { position: static; } }
/* Announcement owner management */
.ao-page{max-width:1280px;margin:0 auto}.ao-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.ao-eyebrow{font-size:11px;font-weight:700;letter-spacing:.08em;color:var(--teal);margin:0 0 8px}.ao-header h2{margin:0;font-size:25px}.ao-header>div>p:last-child{color:var(--muted);line-height:1.8;font-size:13px;margin:10px 0 0}.ao-sync{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;padding:8px 12px;border-radius:30px;background:#eef2f6;color:#526174;font-size:12px;font-weight:700}.ao-sync i{width:7px;height:7px;border-radius:50%;background:#94a3b8}.ao-sync.is-ok{background:#e3f8ef;color:#157348}.ao-sync.is-ok i{background:#20a36b}.ao-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.9fr);gap:20px;align-items:start}.ao-directory,.ao-editor{min-width:0;padding:24px}.ao-directory-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:20px}.ao-directory-head h3,.ao-editor h3{margin:0;font-size:17px}.ao-directory-head p{color:var(--muted);font-size:12px;margin:7px 0 0}.ao-directory-head button{white-space:nowrap}.ao-card-grid{display:grid;gap:12px}.ao-card{display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:17px 14px;border:1px solid var(--line);border-radius:13px;background:white;color:var(--ink);cursor:pointer;transition:border-color .15s,background .15s}.ao-card:hover,.ao-card.is-selected{background:#f0fdfa;border-color:#3bc9b4}.ao-card:focus-visible{outline:3px solid #5eead4;outline-offset:3px}.ao-card:disabled{cursor:default;opacity:1}.ao-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#eff5f8;font-size:21px;flex-shrink:0}.ao-card-body{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.ao-card-body strong{font-size:14px;overflow-wrap:anywhere}.ao-card-body small,.ao-person{color:var(--muted);font-size:11px;overflow-wrap:anywhere}.ao-badge{padding:4px 8px;border-radius:6px;background:#f1f5f9;color:#64748b;font-size:11px;white-space:nowrap}.ao-badge.is-assigned{background:#e3f8ef;color:#157348}.ao-chevron{color:#94a3b8;font-size:23px}.ao-directory-note{font-size:12px;color:var(--muted);margin:18px 0 0;line-height:1.7}.ao-empty{text-align:center;padding:65px 10px;color:var(--muted)}.ao-empty>span{display:block;font-size:36px;color:#a0b2bf;margin-bottom:18px}.ao-empty h3{font-size:15px;color:var(--ink)}.ao-empty p{font-size:12px;line-height:1.9}.ao-editor-head{display:flex;justify-content:space-between;align-items:start;gap:15px;margin-bottom:24px}.ao-close{background:#f1f5f9;border:0;border-radius:8px;width:32px;height:32px;color:#64748b;font-size:23px;cursor:pointer}.ao-form{display:flex;flex-direction:column;gap:0}.ao-field{display:flex;flex-direction:column;gap:9px;font-size:13px;font-weight:700;margin:0 0 8px}.ao-field>span{font-size:10px;color:var(--muted);font-weight:400}.ao-field input,.ao-field select,.ao-field textarea{display:block;width:100%;max-width:100%;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:var(--ink);padding:12px;font:inherit;font-weight:400;min-height:46px;box-sizing:border-box}.ao-field textarea{resize:vertical;min-height:100px;line-height:1.7}.ao-field input:focus,.ao-field select:focus,.ao-field textarea:focus{outline:2px solid #5eead4;outline-offset:1px;border-color:#14b8a6}.ao-help{font-size:11px;line-height:1.9;color:var(--muted);margin:0 0 22px}.ao-save-note{border-radius:10px;padding:13px 15px;background:#f1f7fa;font-size:12px;line-height:1.9;color:#526174}.ao-error{font-size:12px;color:var(--red);line-height:1.7}.ao-error:empty{display:none}.ao-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}.ao-actions button{min-height:44px}.ao-field+.ao-field{margin-top:12px}@media(max-width:1050px){.ao-layout{grid-template-columns:1fr}.ao-empty{padding:25px 10px}.ao-editor{scroll-margin-top:90px}}@media(max-width:520px){.ao-header{flex-direction:column;gap:12px}.ao-header h2{font-size:22px}.ao-directory,.ao-editor{padding:18px}.ao-directory-head{align-items:flex-start;flex-wrap:wrap}.ao-card{padding:14px 11px;gap:10px}.ao-icon{width:34px;height:34px;font-size:18px}.ao-card-body strong{font-size:13px}.ao-actions{display:grid;grid-template-columns:1fr 1.3fr}.ao-actions button{padding:12px 10px}.ao-header>div>p:last-child{font-size:12px}}
