/* ==========================================================================
   REGAZE Biz portal mock - shared styles
   Taste: www.regaze.co.jp (blurred-sky atmosphere, YuMincho display,
   magenta #a40b5e accent). Items are frosted glass with large radii.
   ========================================================================== */

:root {
  --magenta: #a40b5e;
  --magenta-dark: #86094d;
  --ink: #1d1d23;
  --coal: #2c2f3a;
  --muted: #5e6571;
  --line: rgba(29, 29, 35, 0.1);

  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 24px 60px rgba(44, 47, 58, 0.14);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-mincho: YuMincho, "游明朝体", "YuMincho", "游明朝", "Yu Mincho",
    "Hiragino Mincho ProN", "ヒラギノ明朝 Pro W3", serif;
  --font-gothic: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic",
    "Hiragino Kaku Gothic ProN", sans-serif;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-color: rgba(164, 11, 94, 0.45) transparent;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: var(--font-gothic);
  color: var(--ink);
  background: #f4f5f8;
  -webkit-font-smoothing: antialiased;
  animation: page-enter 0.5s var(--ease-out);
}

body.leaving {
  opacity: 0;
  transition: opacity 0.22s ease;
}

@keyframes page-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Atmosphere: blurred dawn sky in brand tones (stand-in for the homepage's
   blurred background videos). Fixed, very slow drift, grain overlay.
   -------------------------------------------------------------------------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(120vmax 80vmax at 85% -10%, rgba(186, 214, 240, 0.9), transparent 60%),
    radial-gradient(100vmax 70vmax at -15% 25%, rgba(244, 226, 238, 0.95), transparent 55%),
    radial-gradient(90vmax 90vmax at 70% 110%, rgba(208, 224, 238, 0.8), transparent 60%),
    linear-gradient(175deg, #fbfcfe 0%, #f1f2f7 55%, #eef0f6 100%);
  background-size: 145% 145%;
  animation: sky-pan 24s ease-in-out infinite alternate;
}

/* The whole gradient field slowly pans, so the ambient color around
   each element keeps changing */
@keyframes sky-pan {
  0% { background-position: 0% 0%; }
  50% { background-position: 60% 35%; }
  100% { background-position: 100% 100%; }
}

.sky::before,
.sky::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform, filter;
}

/* Aurora blobs drift AND slowly change hue (kept inside brand range) */
.sky::before {
  width: 56vmax;
  height: 42vmax;
  left: -12vmax;
  top: 6vmax;
  background: radial-gradient(closest-side, rgba(164, 11, 94, 0.16), transparent 70%);
  animation:
    drift-a 18s ease-in-out infinite alternate,
    hue-a 13s ease-in-out infinite alternate;
}

.sky::after {
  width: 64vmax;
  height: 48vmax;
  right: -18vmax;
  bottom: -10vmax;
  background: radial-gradient(closest-side, rgba(37, 91, 155, 0.15), transparent 70%);
  animation:
    drift-b 22s ease-in-out infinite alternate,
    hue-b 16s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to { transform: translate3d(-5vmax, -3vmax, 0) scale(1); }
}

/* Magenta blob: wine -> violet -> warm rose */
@keyframes hue-a {
  0% { filter: blur(70px) hue-rotate(-12deg); opacity: 0.85; }
  50% { filter: blur(70px) hue-rotate(24deg); opacity: 1; }
  100% { filter: blur(70px) hue-rotate(-12deg); opacity: 0.8; }
}

/* Blue blob: indigo -> teal-cyan */
@keyframes hue-b {
  0% { filter: blur(70px) hue-rotate(-18deg); opacity: 0.9; }
  50% { filter: blur(70px) hue-rotate(28deg); opacity: 1; }
  100% { filter: blur(70px) hue-rotate(-18deg); opacity: 0.85; }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Entrance reveal (non-exaggerated): rise + fade with per-element delay.
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-in 0.7s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header slides in from above */
.slide-down {
  animation: slide-down 0.6s var(--ease-out) both;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Eyebrow: letters breathe in from wide tracking */
.tracking-in {
  animation: tracking-in 0.9s var(--ease-out) 0.15s both;
}

@keyframes tracking-in {
  from {
    opacity: 0;
    letter-spacing: 0.6em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.22em;
  }
}

/* Hero title: soft wipe from the left */
.wipe-in {
  animation: wipe-in 0.8s var(--ease-out) 0.25s both;
}

@keyframes wipe-in {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 -2% 0 0);
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 0 clamp(20px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 30px rgba(44, 47, 58, 0.06);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 140px;
  height: auto;
  display: block;
}

.header-action,
.header-state {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header-action {
  color: #fff;
  background: var(--magenta);
  box-shadow: 0 10px 24px rgba(164, 11, 94, 0.28);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background-color 0.25s ease;
}

.header-action:hover {
  background: var(--magenta-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(164, 11, 94, 0.34);
}

.header-action:active {
  transform: translateY(0) scale(0.98);
}

.header-state {
  color: #075f57;
  background: rgba(233, 246, 243, 0.85);
  border: 1px solid rgba(7, 95, 87, 0.16);
}

/* --------------------------------------------------------------------------
   LP hero: logo, corporate message, login action
   -------------------------------------------------------------------------- */

.lp-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(48px, 8vh, 96px) 24px;
}

.lp-card {
  width: min(880px, 100%);
  padding: clamp(44px, 7vw, 88px) clamp(28px, 6vw, 84px);
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
}

.lp-logo {
  width: min(340px, 70vw);
  height: auto;
}

.lp-divider {
  width: 56px;
  height: 2px;
  margin: clamp(26px, 4vw, 40px) auto;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--magenta), transparent);
  animation: divider-grow 0.8s var(--ease-out) 0.34s both;
}

@keyframes divider-grow {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.lp-message {
  margin: 0 auto;
  max-width: 40em;
  font-family: var(--font-mincho);
  font-size: clamp(17px, 2.4vw, 23px);
  font-weight: 500;
  line-height: 2.15;
  letter-spacing: 0.06em;
  color: var(--coal);
  text-align: center;
  text-wrap: balance;
}

.lp-message em {
  font-style: normal;
  color: var(--magenta);
}

.lp-actions {
  margin-top: clamp(34px, 5vw, 52px);
}

.button-primary {
  min-height: 54px;
  min-width: 240px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 36px;
  border: 0;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-family: var(--font-gothic);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(164, 11, 94, 0.3);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background-color 0.25s ease;
}

.button-primary:hover {
  background: var(--magenta-dark);
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(164, 11, 94, 0.36);
}

.button-primary:active {
  transform: translateY(0) scale(0.98);
}

.button-primary .arrow {
  transition: transform 0.25s var(--ease-out);
}

.button-primary:hover .arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Footer: same structure as www.regaze.co.jp (site-index + copyright bar)
   -------------------------------------------------------------------------- */

.site-index {
  padding: 34px 0 28px;
  background: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.site-index-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-index-layout {
  display: flex;
  justify-content: center;
}

.site-index-column {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  max-width: 1000px;
}

.site-index-logo {
  flex-shrink: 0;
  width: 200px;
  text-align: center;
}

.site-index-logo img {
  width: 140px;
  height: auto;
}

.logo-address {
  margin-top: 6px;
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
}

.site-index-map {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-index-section {
  width: 160px;
}

.site-index-section h3 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--magenta);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(164, 11, 94, 0.2);
}

.site-index-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.site-index-links a {
  display: inline-block;
  font-size: 12px;
  color: var(--coal);
  transition: color 0.25s ease, transform 0.25s var(--ease-out);
}

.site-index-links a:hover {
  color: var(--magenta);
  transform: translateX(2px);
}

.page-footer {
  position: relative;
  z-index: 0;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
}

.footer-copyright {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   MENU: hero, toolbar, glass service tiles (DOM hooks preserved for app.js)
   -------------------------------------------------------------------------- */

.menu-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 56px) clamp(20px, 4vw, 44px) 72px;
}

.menu-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(30px, 4.5vw, 48px) clamp(24px, 4vw, 48px);
  margin-bottom: 26px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
}

.menu-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-mincho);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.menu-hero .lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
}

/* Wrap only at sentence boundaries, never mid-phrase */
.lead .phrase {
  display: inline-block;
}

/* Dynamic state counts (hooks: #available-count / #disabled-count / #hidden-count) */
.state-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.state-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 104px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 26px rgba(44, 47, 58, 0.08);
}

.state-chip dt {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.state-chip dd {
  margin: 0;
  font-family: var(--font-mincho);
  font-size: 22px;
  font-weight: 600;
  color: var(--magenta);
}

.state-chip.is-quiet dd {
  font-size: 13px;
  color: var(--muted);
  line-height: 22px;
}

/* Account panel */
.account-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 22px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgba(44, 47, 58, 0.09);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
}

.account-summary {
  min-width: 0;
}

.account-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magenta);
}

.account-summary h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--coal);
}

.account-summary p:last-child {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.7;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.account-action {
  min-height: 38px;
  min-width: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(164, 11, 94, 0.18);
  color: var(--magenta);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(44, 47, 58, 0.08);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background-color 0.25s ease, color 0.25s ease;
}

.account-action:hover {
  transform: translateY(-1px);
  color: #fff;
  background: var(--magenta);
  box-shadow: 0 12px 24px rgba(164, 11, 94, 0.24);
}

.account-action.disabled,
.account-action[aria-disabled="true"] {
  color: #8b919d;
  background: rgba(44, 47, 58, 0.06);
  border-color: rgba(44, 47, 58, 0.08);
  box-shadow: none;
  pointer-events: none;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(44, 47, 58, 0.08);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
}

.dev-only-controls {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.segmented {
  display: flex;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(44, 47, 58, 0.07);
}

.segment {
  min-width: 92px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--coal);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease, transform 0.2s var(--ease-out);
}

.segment:hover {
  background: rgba(255, 255, 255, 0.7);
}

.segment:active {
  transform: scale(0.97);
}

.segment.active {
  background: #fff;
  color: var(--magenta);
  box-shadow: 0 6px 16px rgba(44, 47, 58, 0.14);
}

.search-label,
.role-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.search-label {
  flex: 1 1 260px;
  min-width: min(260px, 100%);
}

.role-label {
  flex: 0 1 230px;
  min-width: 210px;
}

.search-label input,
.role-label select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(44, 47, 58, 0.14);
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-label input:focus,
.role-label select:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(164, 11, 94, 0.14);
}

.role-label select:disabled {
  color: var(--coal);
  background: rgba(238, 241, 245, 0.9);
  opacity: 1;
}

/* Service grid + tiles */
.service-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(44, 47, 58, 0.1);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  opacity: 0;
  animation: tile-in 0.75s cubic-bezier(0.34, 1.4, 0.64, 1) both;
  animation-delay: var(--t, 0.3s);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
    background-color 0.3s ease;
}

/* Tiles land with a gentle spring: rise + slight scale overshoot */
@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* A single soft light sweep crosses each tile right after it lands */
.service-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 65%
  );
  transform: translateX(-160%);
  animation: sheen 1.1s ease-out both;
  animation-delay: calc(var(--t, 0.3s) + 0.45s);
}

@keyframes sheen {
  to {
    transform: translateX(160%);
  }
}

.service-tile:hover {
  transform: translateY(-3px);
  background: var(--glass-strong);
  box-shadow: 0 24px 52px rgba(44, 47, 58, 0.16);
}

/* Entrance stagger */
.service-tile:nth-child(1) { --t: 0.3s; }
.service-tile:nth-child(2) { --t: 0.42s; }
.service-tile:nth-child(3) { --t: 0.54s; }
.service-tile:nth-child(4) { --t: 0.66s; }
.service-tile:nth-child(5) { --t: 0.78s; }
.service-tile:nth-child(6) { --t: 0.9s; }
.service-tile:nth-child(n + 7) { --t: 1s; }

/* Status pill pops in just after its tile */
.service-tile .status-pill {
  opacity: 0;
  animation: pill-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--t, 0.3s) + 0.3s);
}

@keyframes pill-pop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tile-head,
.tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-group {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #255b9b;
}

.service-tile h2 {
  margin: 16px 0 10px;
  font-family: var(--font-mincho);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.service-tile > p:not(.service-reason) {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.status-pill.available {
  color: #075f57;
  background: rgba(233, 246, 243, 0.9);
  border: 1px solid rgba(7, 95, 87, 0.18);
}

.status-pill.visible-disabled {
  color: #67420d;
  background: rgba(251, 242, 223, 0.9);
  border: 1px solid rgba(103, 66, 13, 0.18);
}

.status-pill.hidden-disabled {
  color: #244f88;
  background: rgba(232, 240, 251, 0.9);
  border: 1px solid rgba(36, 79, 136, 0.18);
}

.service-reason {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-left: 3px solid #c98a1b;
  border-radius: 6px;
  background: rgba(251, 242, 223, 0.8);
  font-size: 12px;
  font-weight: 700;
  color: #67420d;
}

.tile-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  font-size: 12px;
  color: var(--muted);
}

.tile-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 20px rgba(164, 11, 94, 0.26);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background-color 0.25s ease;
}

.tile-link:hover {
  background: var(--magenta-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(164, 11, 94, 0.32);
}

.tile-link:active {
  transform: scale(0.97);
}

.tile-link.disabled,
.tile-link[aria-disabled="true"] {
  background: rgba(44, 47, 58, 0.08);
  color: #878d99;
  box-shadow: none;
  pointer-events: none;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass);
  color: var(--muted);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
}

/* --------------------------------------------------------------------------
   LOGIN: same atmosphere, simple logo + message (Keycloak-theme friendly)
   -------------------------------------------------------------------------- */

.login-main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 20px;
}

.login-card {
  width: min(420px, 100%);
  padding: clamp(36px, 6vw, 52px) clamp(28px, 5vw, 44px);
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
}

.login-logo {
  width: 176px;
  height: auto;
}

.login-message {
  margin: 22px 0 4px;
  font-family: var(--font-mincho);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--coal);
}

.login-note {
  margin: 0 0 26px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.login-form input {
  min-height: 46px;
  border: 1px solid rgba(44, 47, 58, 0.14);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.login-form input:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(164, 11, 94, 0.14);
}

.login-form .button-primary {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
}

.login-aside {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

.login-back {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--magenta);
}

.login-back:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 920px) {
  .service-menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .account-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand-logo {
    width: 116px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .account-panel {
    padding: 16px;
  }

  .account-action {
    flex: 1 1 calc(50% - 8px);
    min-width: 132px;
  }

  .segmented {
    align-self: stretch;
    justify-content: stretch;
  }

  .segment {
    flex: 1;
    min-width: 0;
  }

  .role-label {
    min-width: 0;
  }

  .site-index-column {
    flex-direction: column;
    align-items: center;
  }

  .site-index-map {
    justify-content: center;
  }

  .site-index-section {
    width: 140px;
  }

  .state-chips {
    width: 100%;
  }

  .state-chip {
    flex: 1;
    min-width: 0;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion: keep everything readable, drop the choreography.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  body,
  .reveal,
  .slide-down,
  .tracking-in,
  .wipe-in,
  .service-tile,
  .service-tile .status-pill,
  .lp-divider {
    animation: none;
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .sky,
  .sky::before,
  .sky::after,
  .service-tile::after {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* header logout (added 2026-07-05) */
.header-right { display: inline-flex; align-items: center; gap: 12px; }
.header-logout {
  min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--magenta); background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(164, 11, 94, 0.35); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}
.header-logout:hover { background: var(--magenta); color: #fff; transform: translateY(-1px); }
.header-logout:active { transform: translateY(0) scale(0.98); }
