:root {
  --ink: #2f2a27;
  --muted: #6f625d;
  --paper: #fffdf7;
  --soft: #fff4d4;
  --pink: #f85f91;
  --pink-dark: #d93f74;
  --teal: #14b8b0;
  --blue: #1682d4;
  --yellow: #ffc83d;
  --green: #8bcf4b;
  --line: rgba(47, 42, 39, 0.12);
  --shadow: 0 18px 50px rgba(68, 45, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.site-nav a {
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
  background: #fff4f8;
}

.site-nav .nav-login {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 2px solid #d3f1ee;
  color: #147b76;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 0 rgba(20, 184, 176, 0.14);
}

.site-nav .nav-login:hover {
  color: #0e615d;
  background: #effdfb;
}

.nav-login span:last-child {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.nav-login strong {
  font-size: 0.86rem;
}

.nav-login small {
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 900;
}

.login-mark {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.login-mark::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -10px;
  width: 8px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.auth-body {
  min-height: 100vh;
  margin: 0;
  color: #47352c;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 236, 153, 0.38), transparent 28%),
    linear-gradient(135deg, #fffaf0 0%, #f0fbff 58%, #fff8fb 100%);
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card {
  display: grid;
  gap: 18px;
  width: min(520px, 100%);
  padding: 26px;
  border: 1px solid rgba(24, 171, 164, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(77, 55, 30, 0.13);
}

.auth-brand img {
  width: 48px;
  height: 48px;
}

.auth-copy {
  display: grid;
  gap: 5px;
}

.auth-copy p {
  margin: 0;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
}

.auth-copy h1 {
  margin: 0;
  color: #3f2e25;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.2;
}

.auth-copy span,
.auth-demo span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form label span {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(24, 171, 164, 0.24);
  border-radius: 8px;
  color: #47352c;
  background: #fffdf7;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-form button,
.auth-demo button,
.portal-logout-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.auth-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(239, 86, 141, 0.32);
  border-radius: 8px;
  color: #9f2554;
  background: #fff8fb;
  font-size: 0.76rem;
  font-weight: 900;
}

.auth-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid rgba(91, 70, 58, 0.1);
}

.auth-demo button {
  min-height: 32px;
  padding: 0 12px;
  color: var(--teal);
  background: #e9fbff;
  font-size: 0.68rem;
}

.portal-logout-button {
  min-height: 36px;
  color: var(--teal);
  background: #fff;
}

.site-nav .nav-cta {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 8px 0 var(--pink-dark);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 6px 0 var(--pink-dark);
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 3px;
  margin: 4px auto;
  border-radius: 3px;
  background: #fff;
}

.hero {
  position: relative;
  height: clamp(650px, calc(100svh - 136px), 820px);
  overflow: hidden;
  background: #eef8ff;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.66) 32%, rgba(255, 255, 255, 0.06) 58%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(600px, calc(100% - 48px));
  padding: 86px 0 120px;
  margin-left: max(32px, calc((100% - 1180px) / 2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 1.18;
  font-weight: 900;
  text-shadow: 0 4px 0 #fff, 0 8px 18px rgba(0, 0, 0, 0.08);
}

.hero h1 span {
  color: var(--pink);
}

.lead,
.section-heading p,
.final-cta p,
.movie-inner p {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.9;
}

.lead {
  max-width: 520px;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border: 3px solid #fff;
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 8px 0 rgba(47, 42, 39, 0.18);
}

.button.primary {
  color: #fff;
  background: var(--pink);
}

.button.secondary {
  color: var(--ink);
  background: var(--yellow);
}

.video-card {
  position: absolute;
  z-index: 3;
  left: max(32px, calc((100% - 1180px) / 2));
  bottom: 28px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  width: 360px;
  min-height: 110px;
  padding: 10px 18px 10px 10px;
  border: 3px solid #fff;
  border-radius: 8px;
  background: #ffe66f;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.video-card img {
  width: 140px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
}

.section {
  scroll-margin-top: 92px;
  padding: 96px 24px;
}

.hero,
.final-cta {
  scroll-margin-top: 92px;
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.movie-inner h2,
.final-cta h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.35;
  font-weight: 900;
}

.intro {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fffdf7 0%, #fff8ec 100%);
}

.intro::before,
.intro::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 110px;
  background-image: radial-gradient(rgba(255, 200, 61, 0.46) 2px, transparent 2.5px);
  background-size: 16px 16px;
  pointer-events: none;
}

.intro::before {
  top: 44px;
  right: 42px;
}

.intro::after {
  left: 38px;
  bottom: 46px;
  background-image: radial-gradient(rgba(20, 184, 176, 0.28) 2px, transparent 2.5px);
}

.intro > * {
  position: relative;
  z-index: 1;
}

.value-grid,
.service-grid,
.flow-list,
.faq-list {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card,
.service-card,
.flow-list li,
.faq-list details,
.plan-cards article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(77, 55, 30, 0.08);
}

.value-card {
  --value-color: var(--teal);
  --value-soft: rgba(20, 184, 176, 0.12);
  --value-line: rgba(20, 184, 176, 0.28);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  padding: 24px 26px 26px;
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--value-color);
}

.value-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 62px;
  height: 62px;
  background-image: radial-gradient(var(--value-line) 2px, transparent 2.5px);
  background-size: 12px 12px;
  opacity: 0.5;
  pointer-events: none;
}

.value-card:nth-child(2) {
  --value-color: var(--blue);
  --value-soft: rgba(22, 130, 212, 0.12);
  --value-line: rgba(22, 130, 212, 0.28);
}

.value-card:nth-child(3) {
  --value-color: var(--pink);
  --value-soft: rgba(248, 95, 145, 0.12);
  --value-line: rgba(248, 95, 145, 0.28);
}

.value-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}

.value-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: var(--value-color);
  box-shadow: 0 8px 18px rgba(47, 42, 39, 0.12);
  font-size: 0.92rem;
  font-weight: 900;
}

.value-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--value-line);
  border-radius: 999px;
  color: var(--value-color);
  background: var(--value-soft);
  font-size: 0.8rem;
  font-weight: 900;
}

.value-card h3,
.service-card h3,
.mascot-stage h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 900;
}

.value-card h3 {
  margin-bottom: 0;
}

.value-card p,
.service-card p,
.mascot-stage p,
.flow-list p,
.faq-list p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.75;
}

.value-card .value-before {
  padding-left: 12px;
  border-left: 3px solid var(--value-color);
  color: #554740;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.65;
}

.value-before span {
  display: block;
  margin-bottom: 2px;
  color: var(--value-color);
  font-size: 0.76rem;
  font-weight: 900;
}

.value-note {
  width: min(860px, 100%);
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.8;
  text-align: center;
}

.character {
  position: relative;
  overflow: hidden;
  background: #e9f9ff;
}

.character-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.character > *:not(.character-bg) {
  position: relative;
  z-index: 1;
}

.mascot-stage {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 20px;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.mascot-stage article {
  padding: 24px;
  border: 3px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  text-align: center;
  box-shadow: var(--shadow);
}

.mascot-stage img {
  height: 230px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.mascot-stage .featured img {
  height: 310px;
}

.service {
  background:
    linear-gradient(#fffdf7, #fffdf7) padding-box,
    repeating-linear-gradient(90deg, rgba(20, 184, 176, 0.1) 0 10px, rgba(255, 200, 61, 0.1) 10px 20px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 220px;
  padding: 22px;
  object-fit: contain;
  background: #fff8e8;
}

.service-card div {
  padding: 24px;
}

.scene-panel {
  width: min(920px, 100%);
  margin: 28px auto 0;
  text-align: center;
}

.scene-panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.scene-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
}

.scene-list span {
  padding: 12px 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #daf7f3;
  color: #16756e;
  font-weight: 900;
}

.movie {
  padding-top: 72px;
  padding-bottom: 72px;
  background: #fff4d7;
}

.movie-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 36px;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.movie-button {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.movie-button img {
  border-radius: 8px;
}

.movie-button span {
  position: absolute;
  inset: 0;
  width: 78px;
  height: 78px;
  margin: auto;
  border-radius: 50%;
  background: rgba(248, 95, 145, 0.95);
}

.movie-button span::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 23px;
  border-left: 24px solid #fff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}

.plans {
  background: #f5fbff;
}

.plan-wrap {
  position: relative;
  width: min(1100px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.96) 0%, rgba(245, 251, 255, 0.98) 100%);
  box-shadow: var(--shadow);
}

.plan-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  opacity: 0.12;
  pointer-events: none;
}

.plan-wrap > *:not(.plan-bg) {
  position: relative;
  z-index: 1;
}

.plan-advisor {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: min(640px, 100%);
  margin: 0 auto 24px;
  padding: 14px 22px 14px 14px;
  border: 1px solid rgba(20, 184, 176, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(77, 55, 30, 0.08);
}

.plan-advisor img {
  width: 118px;
  height: 142px;
  margin: -30px 0 -20px;
  object-fit: contain;
}

.plan-advisor p {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 900;
}

.plan-advisor span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.7;
}

.plan-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.plan-cards article {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-height: 370px;
  padding: 26px;
  border: 2px solid #78c9ff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 32px rgba(77, 55, 30, 0.1);
}

.plan-cards article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: #78c9ff;
}

.plan-cards .recommended {
  border-color: #9dcc54;
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-8px);
  box-shadow: 0 22px 42px rgba(77, 55, 30, 0.13);
}

.plan-cards .recommended::before {
  background: #9dcc54;
}

.plan-cards article:nth-child(3) {
  border-color: #ff9a2e;
}

.plan-cards article:nth-child(3)::before {
  background: #ff9a2e;
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.plan-head p {
  display: inline-flex;
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf6ff;
  font-weight: 900;
}

.plan-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.plan-cards .recommended .plan-head p {
  color: #4f9d30;
  background: #f0f8e7;
}

.plan-cards .recommended .plan-head span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
}

.plan-cards article:nth-child(3) .plan-head p {
  color: #e07011;
  background: #fff0df;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 14px;
  line-height: 1;
}

.plan-price span {
  font-size: 1.08rem;
  font-weight: 900;
}

.plan-price strong {
  font-size: clamp(3rem, 5vw, 4.15rem);
  font-weight: 900;
}

.plan-copy {
  min-height: 56px;
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.65;
}

.plan-cards ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.9;
}

.plan-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(20, 184, 176, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(77, 55, 30, 0.08);
}

.plan-cta p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.plan-cta strong {
  font-size: 1.04rem;
  font-weight: 900;
}

.plan-cta span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.65;
}

.plan-cta .button {
  flex: 0 0 auto;
}

.flow {
  padding-bottom: 72px;
  background: linear-gradient(180deg, #fffdf7 0%, #fff8ee 54%, #f0fbf8 100%);
}

.flow-map {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-top: 16px;
}

.flow-map::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 126px;
  height: 10px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(20, 184, 176, 0.45) 0 18px, transparent 18px 32px);
}

.flow-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  list-style: none;
}

.flow-list li {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 154px auto auto 1fr;
  padding: 18px 20px 22px;
}

.flow-list li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 126px;
  width: 16px;
  height: 16px;
  border: 4px solid var(--pink);
  border-radius: 50%;
  background: #fff;
}

.flow-list img {
  align-self: end;
  width: 100%;
  height: 150px;
  margin: -8px auto 10px;
  object-fit: contain;
}

.flow-list span {
  display: block;
  color: var(--pink);
  font-size: 1.6rem;
  font-weight: 900;
}

.flow-list strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 1.14rem;
}

.faq {
  padding-top: 68px;
  background: #f0fbf8;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 20px 24px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin-top: 12px;
}

.final-cta {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 64px 24px;
}

.final-cta > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.12));
}

.final-cta > div {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  margin-left: max(0px, calc((100% - 1120px) / 2));
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  color: #fff;
  background: #109d97;
  font-weight: 800;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 4px;
  font-size: 0.9rem;
  opacity: 0.88;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 10px 16px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff;
}

.footer-links a:first-child {
  color: #0f7772;
  background: #fff;
}

.login-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(232, 249, 255, 0.9), rgba(255, 253, 247, 1) 56%),
    var(--paper);
}

.login-header {
  position: relative;
}

.login-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.login-nav-link {
  padding: 12px 18px;
  border: 2px solid #d3f1ee;
  border-radius: 999px;
  color: #147b76;
  background: rgba(255, 255, 255, 0.9);
}

.login-nav .nav-cta {
  padding: 13px 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  box-shadow: 0 8px 0 var(--pink-dark);
}

.login-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 28px;
  min-height: calc(100svh - 72px);
  padding: 28px 32px;
  align-items: start;
}

.login-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 26px;
  padding: clamp(28px, 3.2vw, 46px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 200, 61, 0.2), transparent 25%),
    linear-gradient(180deg, #e8f9ff 0%, #fffdf7 100%);
  box-shadow: var(--shadow);
}

.login-bg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(300px, 30vw, 430px);
  object-fit: cover;
  object-position: center;
  border: 3px solid #fff;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(68, 45, 25, 0.12);
}

.login-visual-copy {
  position: relative;
  z-index: 1;
}

.login-visual-copy {
  width: min(760px, 100%);
}

.login-visual-copy h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.1rem, 3.4vw, 3.35rem);
  line-height: 1.18;
  font-weight: 900;
  text-shadow: 0 4px 0 #fff;
}

.login-visual-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.9;
}

.login-panel {
  align-self: start;
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.login-panel-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 12px;
  object-fit: contain;
}

.login-panel h2 {
  margin: 6px 0 10px;
  font-size: 2.15rem;
  font-weight: 900;
}

.login-note {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.75;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 2px solid rgba(47, 42, 39, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
  font-weight: 800;
}

.login-form input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(20, 184, 176, 0.16);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.login-options a,
.login-support a {
  color: #0f7772;
  font-weight: 900;
}

.remember-option {
  display: inline-flex !important;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px !important;
}

.remember-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.login-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.login-apply-link {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 900;
}

.login-apply-link a {
  color: #6f5a4e;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.login-support {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 20px;
  border: 2px solid #d3f1ee;
  border-radius: 999px;
  color: #147b76;
  background: #fff;
  font-weight: 900;
  box-shadow: 0 6px 0 rgba(20, 184, 176, 0.14);
}

.floating-guide-link {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  max-width: 270px;
  padding: 10px 14px 10px 8px;
  border: 3px solid #fff;
  border-radius: 8px;
  color: #0f7772;
  background: #daf7f3;
  box-shadow: 0 12px 30px rgba(47, 42, 39, 0.18);
  font-weight: 900;
}

.floating-guide-link img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.floating-guide-link span {
  line-height: 1.35;
}

.detail-body {
  background:
    linear-gradient(180deg, #fffdf7 0%, #e9f9ff 42%, #fff8ec 100%);
}

.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 58px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(232, 249, 255, 0.94)),
    repeating-linear-gradient(90deg, rgba(248, 95, 145, 0.12) 0 16px, rgba(255, 200, 61, 0.12) 16px 32px, rgba(20, 184, 176, 0.12) 32px 48px);
}

.guide-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 145px;
  background-image: radial-gradient(rgba(22, 130, 212, 0.22) 2px, transparent 2.5px);
  background-size: 18px 18px;
  pointer-events: none;
}

.guide-hero-inner,
.guide-menu,
.recipe-grid,
.story-card,
.story-steps,
.industry-grid,
.after-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.guide-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: center;
  gap: 36px;
}

.guide-copy h1 {
  max-width: 740px;
  margin: 0;
  font-size: 3.15rem;
  line-height: 1.22;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 0 #fff, 0 10px 22px rgba(77, 55, 30, 0.08);
}

.guide-copy .lead {
  max-width: 640px;
  overflow-wrap: anywhere;
}

.guide-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
}

.guide-visual::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 28px;
  height: 52px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(255, 200, 61, 0.72);
  box-shadow: 0 14px 26px rgba(77, 55, 30, 0.11);
}

.guide-visual img {
  position: relative;
  z-index: 1;
  height: 360px;
  object-fit: contain;
}

.guide-balloon {
  position: absolute;
  top: 32px;
  right: 0;
  z-index: 2;
  max-width: 230px;
  padding: 14px 16px;
  border: 3px solid #fff;
  border-radius: 8px;
  background: #fff4d4;
  box-shadow: var(--shadow);
}

.guide-balloon span,
.guide-menu-card .menu-number,
.recipe-grid span,
.story-steps span,
.industry-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.guide-balloon strong {
  display: block;
  margin-top: 3px;
  font-size: 1.02rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.guide-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.guide-menu-card {
  --menu-color: var(--pink);
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 172px;
  padding: 22px;
  border: 2px solid rgba(248, 95, 145, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(77, 55, 30, 0.1);
}

.guide-menu-card:nth-child(2) {
  --menu-color: var(--blue);
  border-color: rgba(22, 130, 212, 0.28);
}

.guide-menu-card:nth-child(3) {
  --menu-color: var(--teal);
  border-color: rgba(20, 184, 176, 0.28);
}

.guide-menu-card:nth-child(4) {
  --menu-color: #e07011;
  border-color: rgba(224, 112, 17, 0.28);
}

.guide-menu-card:nth-child(5) {
  --menu-color: #4f9d30;
  border-color: rgba(79, 157, 48, 0.28);
}

.guide-menu-card:nth-child(6) {
  --menu-color: #8d62d9;
  border-color: rgba(141, 98, 217, 0.28);
}

.guide-menu-card .menu-number {
  color: var(--menu-color);
}

.guide-menu-card strong {
  margin: 6px 0 8px;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.35;
}

.guide-menu-card p,
.detail-text p,
.detail-panel p,
.recipe-grid p,
.story-card p,
.story-steps p,
.industry-grid p,
.after-inner p,
.delivery-list span {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.75;
}

.detail-section {
  padding: 88px 24px;
}

.detail-section.detail-split {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-right: 0;
  padding-left: 0;
}

.detail-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 34px;
}

.detail-split.reverse {
  grid-template-columns: 360px minmax(0, 1fr);
}

.detail-split.reverse .detail-text {
  order: 2;
}

.detail-split.reverse .detail-panel {
  order: 1;
}

.detail-text h2,
.story-card h2,
.after-inner h2 {
  margin: 0 0 18px;
  font-size: 2.35rem;
  line-height: 1.34;
  font-weight: 900;
}

.detail-text > p,
.story-card p,
.after-inner p {
  font-size: 1.02rem;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  min-height: 44px;
  padding: 10px 14px 10px 42px;
  border: 1px solid rgba(20, 184, 176, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #554740;
  font-weight: 900;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

.detail-panel {
  overflow: hidden;
  padding: 24px;
  border: 2px solid rgba(20, 184, 176, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.detail-panel img {
  width: 100%;
  height: 250px;
  object-fit: contain;
}

.detail-panel h3 {
  margin: 14px 0 8px;
  font-size: 1.2rem;
  font-weight: 900;
}

.blue-panel {
  border-color: rgba(22, 130, 212, 0.2);
  background: #f0f8ff;
}

.make-section {
  background: #fff8ec;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.recipe-grid article,
.story-steps article,
.industry-grid article,
.delivery-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(77, 55, 30, 0.08);
}

.recipe-grid article {
  min-height: 230px;
  padding: 22px;
  border-top: 6px solid var(--yellow);
}

.recipe-grid article:nth-child(2) {
  border-top-color: var(--pink);
}

.recipe-grid article:nth-child(3) {
  border-top-color: var(--teal);
}

.recipe-grid article:nth-child(4) {
  border-top-color: var(--blue);
}

.recipe-grid h3,
.industry-grid h3 {
  margin: 7px 0 10px;
  font-size: 1.16rem;
  line-height: 1.45;
  font-weight: 900;
}

.use-case-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.use-case-row span {
  padding: 11px 15px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #147b76;
  background: #daf7f3;
  font-weight: 900;
}

.story-section {
  background: #fff4d7;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 28px;
  padding: 30px;
  border: 3px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.story-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
}

.story-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.story-steps article {
  min-height: 170px;
  padding: 22px;
}

.story-steps strong {
  display: block;
  margin: 4px 0 8px;
  font-size: 1.12rem;
  font-weight: 900;
}

.industry-section {
  background: #f5fbff;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.industry-grid article {
  min-height: 230px;
  padding: 22px;
  border-top: 6px solid var(--blue);
}

.industry-grid article:nth-child(2) {
  border-top-color: var(--teal);
}

.industry-grid article:nth-child(3) {
  border-top-color: var(--pink);
}

.industry-grid article:nth-child(4) {
  border-top-color: var(--yellow);
}

.industry-grid article:nth-child(5) {
  border-top-color: #8d62d9;
}

.industry-grid article:nth-child(6) {
  border-top-color: var(--green);
}

.after-section {
  background:
    linear-gradient(180deg, rgba(232, 249, 255, 0.94), rgba(255, 253, 247, 0.98)),
    repeating-linear-gradient(0deg, rgba(20, 184, 176, 0.1) 0 12px, rgba(255, 200, 61, 0.1) 12px 24px);
}

.after-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: start;
  gap: 28px;
}

.delivery-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.delivery-list li {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 18px 20px;
}

.delivery-list strong {
  font-size: 1.06rem;
  font-weight: 900;
}

.guide-copy,
.detail-text,
.story-card > div,
.after-inner > div,
.guide-menu-card,
.recipe-grid article,
.industry-grid article {
  min-width: 0;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(47, 42, 39, 0.72);
}

.modal-panel {
  position: relative;
  width: min(860px, 100%);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 46px;
  height: 46px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--pink);
  font-size: 1.4rem;
  font-weight: 900;
}

.video-placeholder {
  display: grid;
  gap: 18px;
  padding: 28px;
  text-align: center;
  font-weight: 900;
}

.video-placeholder img {
  border-radius: 8px;
}

@media (max-width: 980px) {
  .value-grid,
  .service-grid,
  .flow-list,
  .movie-inner {
    grid-template-columns: 1fr;
  }

  .guide-hero-inner,
  .detail-split,
  .detail-split.reverse,
  .story-card,
  .after-inner {
    grid-template-columns: 1fr;
  }

  .detail-split.reverse .detail-text,
  .detail-split.reverse .detail-panel {
    order: 0;
  }

  .guide-menu,
  .recipe-grid,
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-visual {
    min-height: 310px;
  }

  .guide-visual img {
    height: 300px;
  }

  .plan-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .plan-wrap {
    padding: 18px;
  }

  .plan-advisor {
    grid-template-columns: 96px minmax(0, 1fr);
    margin-bottom: 18px;
    padding: 12px 16px 12px 10px;
  }

  .plan-advisor img {
    width: 96px;
    height: 118px;
    margin: -22px 0 -16px;
  }

  .plan-cards .recommended {
    transform: none;
  }

  .flow-map {
    padding-top: 0;
  }

  .flow-map::before {
    display: none;
  }

  .flow-list li {
    grid-template-columns: 136px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 18px;
    min-height: auto;
  }

  .flow-list li::before {
    display: none;
  }

  .flow-list img {
    grid-row: 1 / 4;
    width: 132px;
    height: 132px;
    margin: 0;
    align-self: center;
  }

  .login-main {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 520px;
  }

  .login-panel {
    align-self: stretch;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
    padding: 8px 14px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    text-align: center;
  }

  .login-header {
    align-items: flex-start;
  }

  .login-nav {
    gap: 8px;
  }

  .login-nav-link {
    display: none;
  }

  .login-nav .nav-cta {
    padding: 11px 16px;
  }

  .hero {
    height: calc(100svh - 112px);
    min-height: 720px;
    max-height: 780px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.2) 42%, rgba(255, 255, 255, 0) 72%);
  }

  .hero-copy {
    width: calc(100% - 32px);
    padding: 42px 0 250px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .lead,
  .section-heading p,
  .final-cta p,
  .movie-inner p {
    font-size: 0.94rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .button {
    width: 100%;
    min-height: 54px;
  }

  .hero .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero .button {
    min-width: 0;
    width: auto;
    min-height: 48px;
    padding: 0 12px;
    font-size: 0.9rem;
    line-height: 1.25;
    white-space: normal;
  }

  .video-card {
    left: 14px;
    right: 14px;
    bottom: 18px;
    width: auto;
    grid-template-columns: 116px 1fr;
  }

  .video-card img {
    width: 108px;
    height: 70px;
  }

  .section {
    padding: 70px 18px;
  }

  .guide-hero {
    padding: 48px 18px 44px;
  }

  .guide-copy h1 {
    max-width: 100%;
    font-size: 1.82rem;
    line-height: 1.3;
  }

  .guide-visual {
    min-height: 280px;
  }

  .guide-visual img {
    height: 270px;
  }

  .guide-balloon {
    top: 10px;
    right: 8px;
    max-width: 168px;
  }

  .guide-menu,
  .recipe-grid,
  .story-steps,
  .industry-grid {
    grid-template-columns: 1fr;
  }

  .guide-menu-card,
  .recipe-grid article,
  .industry-grid article {
    min-height: auto;
  }

  .detail-section {
    padding: 68px 18px;
  }

  .detail-section.detail-split {
    width: calc(100% - 36px);
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .detail-text h2,
  .story-card h2,
  .after-inner h2 {
    font-size: 1.75rem;
  }

  .detail-text > p,
  .story-card p,
  .after-inner p {
    font-size: 0.94rem;
  }

  .detail-panel img {
    height: 210px;
  }

  .story-card {
    padding: 22px;
  }

  .story-card img {
    height: 220px;
  }

  .floating-guide-link {
    display: none;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .intro::before,
  .intro::after {
    width: 120px;
    height: 78px;
    opacity: 0.72;
  }

  .intro::before {
    top: 24px;
    right: 10px;
  }

  .intro::after {
    left: 8px;
    bottom: 22px;
  }

  .section-heading h2,
  .movie-inner h2,
  .final-cta h2 {
    font-size: 1.75rem;
  }

  .value-card {
    padding: 22px 20px 24px;
  }

  .value-card::after {
    top: 14px;
    right: 12px;
  }

  .value-note {
    text-align: left;
  }

  .mascot-stage {
    grid-template-columns: 1fr;
  }

  .mascot-stage img,
  .mascot-stage .featured img {
    height: 220px;
  }

  .service-card {
    grid-template-rows: 190px 1fr;
  }

  .service-card img {
    height: 190px;
  }

  .movie-inner {
    gap: 24px;
  }

  .plan-cards {
    padding: 0;
  }

  .plan-cards article {
    min-height: auto;
  }

  .plan-advisor {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .plan-advisor img {
    width: 80px;
    height: 98px;
    margin: -10px 0 -10px;
  }

  .plan-advisor p {
    font-size: 0.96rem;
  }

  .plan-advisor span {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .plan-head {
    margin-bottom: 12px;
  }

  .plan-price {
    margin-bottom: 10px;
  }

  .plan-copy {
    min-height: 0;
  }

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

  .flow-list li {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 12px;
    padding: 14px;
  }

  .flow-list img {
    width: 92px;
    height: 104px;
  }

  .final-cta {
    min-height: 620px;
    align-items: start;
  }

  .final-cta::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.1));
  }

  .final-cta > div {
    margin: 0 auto;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .login-main {
    min-height: auto;
    padding: 18px;
  }

  .login-visual {
    min-height: auto;
    padding: 32px 22px;
  }

  .login-visual-copy h1 {
    font-size: 2rem;
  }

  .login-panel {
    padding: 28px 20px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .floating-guide-link {
    grid-template-columns: 46px;
    padding: 6px;
  }

  .floating-guide-link span {
    display: none;
  }
}

.service-menu-body {
  min-height: 100vh;
  background: #fffdf7;
}

.service-menu-main {
  min-height: calc(100svh - 72px);
}

.service-menu-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: 34px 24px 36px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96) 0%, rgba(233, 249, 255, 0.96) 62%, rgba(255, 244, 212, 0.96) 100%),
    repeating-linear-gradient(90deg, rgba(248, 95, 145, 0.12) 0 18px, rgba(255, 200, 61, 0.12) 18px 36px, rgba(20, 184, 176, 0.12) 36px 54px);
}

.service-menu-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  background-image:
    linear-gradient(rgba(22, 130, 212, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 130, 212, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 72%, transparent 100%);
  pointer-events: none;
}

.service-menu-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.service-menu-head {
  width: min(820px, 100%);
  margin-bottom: 24px;
}

.service-menu-head h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.45rem);
  line-height: 1.08;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 0 #fff, 0 10px 22px rgba(47, 42, 39, 0.1);
}

.service-menu-head p:last-child {
  width: min(620px, 100%);
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.75;
}

.service-menu-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 24px;
}

.service-menu-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-menu-tile {
  --tile-color: var(--pink);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 4px;
  min-height: 106px;
  padding: 18px 20px;
  border: 3px solid #fff;
  border-left: 9px solid var(--tile-color);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(77, 55, 30, 0.11);
  font: inherit;
  text-align: left;
}

.service-menu-tile:nth-child(2) {
  --tile-color: var(--blue);
}

.service-menu-tile:nth-child(3) {
  --tile-color: var(--teal);
}

.service-menu-tile:nth-child(4) {
  --tile-color: #e07011;
}

.service-menu-tile:nth-child(5) {
  --tile-color: var(--green);
}

.service-menu-tile:nth-child(6) {
  --tile-color: #8d62d9;
}

.service-menu-tile span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: #fff;
  background: var(--tile-color);
  font-size: 1.06rem;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(47, 42, 39, 0.12);
}

.service-menu-tile strong {
  align-self: end;
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 900;
}

.service-menu-tile small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 800;
}

.service-menu-mascot {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
}

.service-menu-mascot::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 70px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(255, 200, 61, 0.78);
  box-shadow: 0 12px 22px rgba(77, 55, 30, 0.12);
}

.service-menu-mascot img {
  position: relative;
  z-index: 1;
  height: 288px;
  object-fit: contain;
}

.service-menu-speech {
  position: relative;
  z-index: 2;
  width: min(260px, 100%);
  padding: 14px 16px;
  border: 3px solid #fff;
  border-radius: 8px;
  background: #fff4d4;
  box-shadow: var(--shadow);
}

.service-menu-speech span {
  display: block;
  margin-bottom: 3px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-menu-speech strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 900;
}

.service-menu-mascot .button {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 52px;
}

.service-choice-stage {
  display: grid;
  gap: 18px;
}

.service-choice-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.service-choice-card {
  --choice-color: var(--teal);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 18px;
  min-height: 330px;
  padding: 26px;
  border: 4px solid #fff;
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 78% 25%, rgba(20, 184, 176, 0.18), transparent 35%);
  box-shadow: 0 20px 42px rgba(77, 55, 30, 0.14);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.service-choice-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: var(--choice-color);
}

.service-choice-card::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 70px;
  width: 210px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(255, 200, 61, 0.72);
}

.service-choice-card.usecase {
  --choice-color: var(--blue);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 78% 25%, rgba(22, 130, 212, 0.16), transparent 35%);
}

.choice-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--choice-color);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-choice-card img {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / 5;
  align-self: end;
  justify-self: center;
  width: 190px;
  height: 220px;
  object-fit: contain;
}

.service-choice-card strong {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.15;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.service-choice-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 900;
}

.service-choice-card:hover {
  transform: translateY(-2px);
}

.choice-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(280px, 100%);
  min-height: 56px;
  margin-top: 22px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--choice-color);
  box-shadow: 0 8px 0 rgba(47, 42, 39, 0.18);
  font-weight: 900;
  text-align: center;
}

.service-choice-guide {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: min(560px, 100%);
  padding: 12px 16px 12px 10px;
  border: 3px solid #fff;
  border-radius: 8px;
  background: #fff4d4;
  box-shadow: 0 12px 26px rgba(77, 55, 30, 0.1);
}

.service-choice-guide img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.service-choice-guide p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.service-choice-guide strong {
  font-size: 1rem;
  font-weight: 900;
}

.service-choice-guide span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .service-menu-hero {
    align-items: start;
    min-height: auto;
    padding-top: 44px;
  }

  .service-menu-stage {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .service-menu-board {
    order: 1;
  }

  .service-menu-mascot {
    order: 2;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    width: min(560px, 100%);
    margin: 8px auto 0;
  }

  .service-menu-mascot::after {
    left: 12px;
    right: auto;
    bottom: 18px;
    width: 150px;
  }

  .service-menu-mascot img {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 190px;
  }

  .service-menu-speech {
    grid-column: 2;
    grid-row: 1;
  }

  .service-menu-mascot .button {
    grid-column: 2;
    grid-row: 2;
  }

  .service-choice-board {
    grid-template-columns: 1fr;
  }

  .service-choice-card {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .service-menu-hero {
    padding: 32px 16px 28px;
  }

  .service-menu-head {
    margin-bottom: 18px;
  }

  .service-menu-head h1 {
    font-size: 2.05rem;
    line-height: 1.2;
  }

  .service-menu-head p:last-child {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .service-menu-board {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-menu-tile {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 84px;
    padding: 14px;
  }

  .service-menu-tile span {
    width: 48px;
    height: 48px;
    font-size: 0.94rem;
  }

  .service-menu-tile strong {
    font-size: 1rem;
  }

  .service-menu-tile small {
    font-size: 0.78rem;
  }

  .service-menu-mascot {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
  }

  .service-menu-mascot img {
    height: 142px;
  }

  .service-menu-mascot::after {
    width: 112px;
    bottom: 14px;
  }

  .service-menu-speech {
    padding: 12px;
  }

  .service-menu-speech strong {
    font-size: 0.92rem;
  }

  .service-choice-board {
    gap: 14px;
  }

  .service-choice-card {
    grid-template-columns: 1fr;
    min-height: 220px;
    padding: 20px 18px;
  }

  .service-choice-card::after {
    display: none;
  }

  .service-choice-card img {
    display: none;
  }

  .service-choice-card strong {
    margin-top: 16px;
    font-size: 1.6rem;
    line-height: 1.18;
  }

  .service-choice-card small {
    max-width: none;
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .choice-button {
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    font-size: 0.92rem;
  }

  .service-choice-guide {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 10px;
  }

  .service-choice-guide img {
    width: 50px;
    height: 50px;
  }

  .service-choice-guide span {
    font-size: 0.8rem;
  }
}

.service-menu-hero {
  align-items: start;
  padding: 42px 24px 34px;
}

.service-menu-hero::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -58px;
  height: 190px;
  border-radius: 50% 50% 0 0;
  background: rgba(202, 235, 255, 0.72);
  pointer-events: none;
}

.service-menu-head {
  width: min(920px, 100%);
  margin: 0 auto 18px;
  text-align: center;
}

.service-menu-head h1 {
  font-size: clamp(3rem, 5vw, 4.55rem);
  line-height: 1.05;
}

.service-menu-head h1 span {
  color: var(--pink);
}

.service-menu-head p:last-child {
  width: min(760px, 100%);
  margin: 14px auto 0;
  font-size: 1.08rem;
}

.service-choice-stage {
  position: relative;
  z-index: 1;
  gap: 16px;
}

.service-choice-board {
  width: min(1040px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
}

.service-choice-group {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.service-choice-card {
  --choice-color: var(--teal);
  --choice-dark: #0f9f99;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: min(400px, 100%);
  aspect-ratio: 1;
  min-height: 0;
  padding: 26px 38px 34px;
  border: 8px solid #fff;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 45% 24%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #28cfc2 0%, var(--choice-color) 56%, var(--choice-dark) 100%);
  box-shadow:
    0 6px 0 rgba(255, 255, 255, 0.9),
    0 18px 38px rgba(77, 55, 30, 0.2);
  text-align: center;
}

.service-choice-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: rgba(0, 0, 0, 0.08);
}

.service-choice-card::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 33%;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 200, 61, 0.72);
}

.service-choice-card.usecase {
  --choice-color: #208ee1;
  --choice-dark: #0b70c0;
  background:
    radial-gradient(circle at 45% 24%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #40adff 0%, var(--choice-color) 56%, var(--choice-dark) 100%);
}

.choice-kicker {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: var(--choice-color);
  background: #fff;
  box-shadow: 0 4px 0 rgba(47, 42, 39, 0.12);
}

.service-choice-card img {
  position: absolute;
  left: 50%;
  top: 54px;
  z-index: 2;
  grid-column: auto;
  grid-row: auto;
  width: 296px;
  height: 214px;
  transform: translateX(-50%);
  object-fit: contain;
}

.service-choice-card strong {
  position: relative;
  z-index: 3;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.65rem, 2.35vw, 2.08rem);
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 3px 0 rgba(47, 42, 39, 0.18);
}

.service-choice-card small {
  display: none;
}

.choice-button {
  position: relative;
  z-index: 3;
  width: min(236px, 100%);
  min-height: 48px;
  margin: 0;
  color: var(--choice-color);
  background: #fff;
  box-shadow: 0 6px 0 rgba(47, 42, 39, 0.18);
}

.choice-tags {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.choice-tags span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 42px;
  padding: 0 18px;
  border: 2px solid var(--choice-color);
  border-radius: 999px;
  color: var(--choice-color);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(77, 55, 30, 0.1);
  font-size: 0.98rem;
  font-weight: 900;
}

.service-choice-group.industry .choice-tags span:nth-child(1),
.service-choice-group.usecase .choice-tags span:nth-child(1) {
  left: -2px;
  top: 92px;
}

.service-choice-group.industry .choice-tags span:nth-child(2),
.service-choice-group.usecase .choice-tags span:nth-child(2) {
  left: -26px;
  top: 168px;
}

.service-choice-group.industry .choice-tags span:nth-child(3),
.service-choice-group.usecase .choice-tags span:nth-child(3) {
  left: 2px;
  top: 248px;
}

.service-choice-group.industry .choice-tags span:nth-child(4),
.service-choice-group.usecase .choice-tags span:nth-child(4) {
  right: -8px;
  top: 94px;
}

.service-choice-group.industry .choice-tags span:nth-child(5),
.service-choice-group.usecase .choice-tags span:nth-child(5) {
  right: -28px;
  top: 184px;
}

.service-choice-group.industry .choice-tags span:nth-child(6),
.service-choice-group.usecase .choice-tags span:nth-child(6) {
  right: 2px;
  top: 270px;
}

.service-choice-guide {
  width: min(780px, calc(100% - 32px));
  margin: -8px auto 0;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 84px;
  padding: 12px 24px 12px 18px;
  border-color: #fff;
  background: rgba(255, 244, 212, 0.96);
}

.service-choice-guide img {
  width: 86px;
  height: 86px;
  align-self: end;
  margin-top: -20px;
  margin-bottom: -14px;
}

.service-choice-guide strong {
  color: #5b463a;
  font-size: 1.12rem;
}

@media (max-width: 1100px) {
  .service-choice-board {
    gap: 22px;
  }

  .service-choice-group.industry .choice-tags span,
  .service-choice-group.usecase .choice-tags span {
    min-width: 78px;
    min-height: 36px;
    padding: 0 13px;
    font-size: 0.86rem;
  }
}

@media (max-width: 980px) {
  .service-choice-board {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-choice-group {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .service-menu-hero {
    padding: 32px 16px 34px;
  }

  .service-menu-head {
    text-align: left;
  }

  .service-menu-head h1 {
    font-size: 2.1rem;
  }

  .service-menu-head p:last-child {
    margin-right: 0;
    margin-left: 0;
    font-size: 0.92rem;
  }

  .service-choice-board {
    gap: 18px;
  }

  .service-choice-group {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .service-choice-card {
    width: min(330px, 100%);
    padding: 22px 30px 30px;
  }

  .choice-kicker {
    top: 18px;
    min-height: 28px;
    font-size: 0.72rem;
  }

  .service-choice-card img {
    display: block;
    top: 46px;
    width: 238px;
    height: 166px;
  }

  .service-choice-card strong {
    margin-bottom: 6px;
    font-size: 1.45rem;
  }

  .service-choice-card small {
    position: relative;
    z-index: 3;
    display: block;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1.35;
  }

  .choice-button {
    min-height: 44px;
    font-size: 0.88rem;
  }

  .choice-tags {
    display: none;
  }

  .service-choice-guide {
    width: 100%;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 10px 12px;
  }

  .service-choice-guide img {
    width: 58px;
    height: 58px;
    margin-top: -12px;
    margin-bottom: -10px;
  }

  .service-choice-guide strong {
    font-size: 0.92rem;
    line-height: 1.55;
  }
}

.service-choice-card {
  text-decoration: none;
}

.industry-body {
  min-height: 100vh;
  background: #fffdf7;
}

.industry-main {
  min-height: calc(100svh - 72px);
}

.industry-select-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 72px);
  padding: 42px 24px 48px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(255, 249, 230, 0.94)),
    repeating-linear-gradient(0deg, rgba(24, 171, 164, 0.13) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(90deg, rgba(24, 171, 164, 0.13) 0 1px, transparent 1px 74px);
}

.industry-select-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 192, 215, 0.18), transparent 32%, transparent 68%, rgba(255, 214, 83, 0.2)),
    linear-gradient(180deg, transparent 0 64%, rgba(93, 205, 191, 0.16) 64% 100%);
}

.industry-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.industry-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid rgba(24, 171, 164, 0.22);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 6px 0 rgba(24, 171, 164, 0.1);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.industry-back-link::before {
  content: "<";
  margin-right: 8px;
  font-size: 0.9rem;
}

.industry-heading {
  width: min(820px, 100%);
  margin-top: 20px;
}

.industry-heading h1 {
  margin: 0;
  color: #47352c;
  font-size: 3.35rem;
  line-height: 1.08;
}

.industry-title-word {
  white-space: nowrap;
}

.industry-heading p:last-child {
  width: min(680px, 100%);
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.8;
}

.industry-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 386px;
  gap: 20px;
  align-items: start;
  margin-top: 28px;
}

.industry-roster,
.industry-detail {
  border: 4px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 42px rgba(77, 55, 30, 0.14);
}

.industry-roster {
  padding: 14px;
}

.industry-roster-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(90deg, #16b8ae, #36aee8);
  box-shadow: inset 0 -4px 0 rgba(47, 42, 39, 0.12);
}

.industry-roster-head span {
  font-size: 0.78rem;
  font-weight: 900;
}

.industry-roster-head strong {
  font-size: 1.08rem;
  font-weight: 900;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.industry-card {
  --industry-color: #16b8ae;
  --industry-soft: rgba(22, 184, 174, 0.16);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 252px;
  padding: 12px 10px 14px;
  border: 3px solid #fff;
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 239, 0.98)),
    radial-gradient(circle at 50% 28%, var(--industry-soft), transparent 36%);
  box-shadow: 0 8px 0 rgba(47, 42, 39, 0.09);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.industry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--industry-color);
}

.industry-card.care {
  --industry-color: #ee8fa8;
  --industry-soft: rgba(238, 143, 168, 0.2);
}

.industry-card.food {
  --industry-color: #f0ad25;
  --industry-soft: rgba(240, 173, 37, 0.2);
}

.industry-card.manufacturing {
  --industry-color: #45a1d8;
  --industry-soft: rgba(69, 161, 216, 0.19);
}

.industry-card.professional {
  --industry-color: #9277d8;
  --industry-soft: rgba(146, 119, 216, 0.19);
}

.industry-card.retail {
  --industry-color: #53b981;
  --industry-soft: rgba(83, 185, 129, 0.2);
}

.industry-card:hover,
.industry-card.is-selected {
  transform: translateY(-2px);
  border-color: var(--industry-color);
  box-shadow: 0 12px 0 rgba(47, 42, 39, 0.12), 0 18px 28px rgba(77, 55, 30, 0.12);
}

.industry-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.industry-card-number {
  position: absolute;
  top: 14px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid var(--industry-color);
  border-radius: 999px;
  color: var(--industry-color);
  background: #fff;
  box-shadow: 0 4px 0 rgba(47, 42, 39, 0.12);
  box-sizing: border-box;
  font-size: 0.78rem;
  font-weight: 900;
}

.industry-card-visual {
  position: relative;
  display: grid;
  place-items: end center;
  width: 100%;
  height: 154px;
  margin: 18px 0 10px;
}

.industry-card-visual::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 4px;
  height: 24px;
  border-radius: 50%;
  background: var(--industry-soft);
}

.industry-card-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 148px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(77, 55, 30, 0.12));
}

.industry-card strong {
  min-height: 2.5em;
  color: #47352c;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.25;
}

.industry-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.45;
}

.industry-detail {
  position: sticky;
  top: 92px;
  padding: 16px;
}

.industry-detail-media {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 252px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 245, 220, 0.88)),
    repeating-linear-gradient(0deg, rgba(24, 171, 164, 0.11) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(90deg, rgba(24, 171, 164, 0.11) 0 1px, transparent 1px 52px);
}

.industry-detail-media::after {
  content: "";
  position: absolute;
  left: 17%;
  right: 17%;
  bottom: 22px;
  height: 30px;
  border-radius: 50%;
  background: rgba(24, 171, 164, 0.18);
}

.industry-detail-media span {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 4px 0 rgba(47, 42, 39, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
}

.industry-detail-media img {
  position: relative;
  z-index: 1;
  width: min(260px, 92%);
  height: 246px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(77, 55, 30, 0.16));
}

.industry-detail-copy {
  margin-top: 16px;
}

.industry-detail-label {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 900;
}

.industry-detail-copy h2 {
  margin: 0;
  color: #47352c;
  font-size: 1.7rem;
  line-height: 1.25;
}

.industry-detail-copy p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.75;
}

.industry-detail-lists {
  margin-top: 16px;
}

.industry-mini-panel {
  padding: 13px 0;
  border-top: 1px dashed rgba(91, 70, 58, 0.2);
}

.industry-mini-panel h3 {
  margin: 0 0 8px;
  color: #47352c;
  font-size: 0.94rem;
  line-height: 1.35;
}

.industry-mini-panel ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.industry-mini-panel li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.5;
}

.industry-mini-panel li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translateY(-50%);
}

.industry-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.industry-actions .button {
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.industry-secondary-link {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1060px) {
  .industry-heading h1 {
    font-size: 2.8rem;
  }

  .industry-console {
    grid-template-columns: 1fr;
  }

  .industry-detail {
    position: static;
  }

  .industry-detail {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
  }

  .industry-detail-lists,
  .industry-actions {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .industry-select-hero {
    min-height: auto;
    padding: 30px 16px 34px;
  }

  .industry-back-link {
    min-height: 36px;
    padding: 0 13px;
    font-size: 0.78rem;
  }

  .industry-heading {
    margin-top: 18px;
  }

  .industry-heading h1 {
    font-size: 2.12rem;
    line-height: 1.18;
  }

  .industry-heading p:last-child {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .industry-console {
    gap: 14px;
    margin-top: 20px;
  }

  .industry-roster,
  .industry-detail {
    border-width: 3px;
  }

  .industry-roster {
    padding: 10px;
  }

  .industry-roster-head {
    min-height: 42px;
    padding: 8px 10px;
  }

  .industry-roster-head strong {
    font-size: 0.95rem;
  }

  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .industry-card {
    min-height: 206px;
    padding: 10px 8px 12px;
  }

  .industry-card-number {
    top: 12px;
    left: 8px;
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }

  .industry-card-visual {
    height: 114px;
    margin: 16px 0 8px;
  }

  .industry-card-visual img {
    max-width: 112px;
    height: 112px;
  }

  .industry-card strong {
    min-height: 2.7em;
    font-size: 0.94rem;
  }

  .industry-card small {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .industry-detail {
    display: block;
    padding: 12px;
  }

  .industry-detail-media {
    min-height: 198px;
  }

  .industry-detail-media img {
    width: min(220px, 88%);
    height: 200px;
  }

  .industry-detail-copy h2 {
    font-size: 1.42rem;
  }

  .industry-detail-copy p:last-child {
    font-size: 0.88rem;
  }

  .industry-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .industry-secondary-link {
    text-align: center;
  }
}

@media (max-width: 380px) {
  .industry-grid {
    gap: 8px;
  }

  .industry-card {
    min-height: 198px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .industry-card-visual img {
    max-width: 102px;
  }

  .industry-card strong {
    font-size: 0.88rem;
  }
}

.industry-section .industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.industry-menu-body,
.sector-detail-body {
  min-height: 100vh;
  background: #fffdf7;
}

.industry-menu-main,
.sector-detail-main {
  min-height: calc(100svh - 72px);
}

.industry-menu-hero,
.sector-detail-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 72px);
  padding: 36px 24px 48px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(255, 248, 226, 0.9)),
    repeating-linear-gradient(0deg, rgba(24, 171, 164, 0.12) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(24, 171, 164, 0.12) 0 1px, transparent 1px 72px);
}

.industry-menu-hero::before,
.sector-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 192, 215, 0.18), transparent 34%, transparent 68%, rgba(255, 214, 83, 0.22)),
    linear-gradient(180deg, transparent 0 68%, rgba(93, 205, 191, 0.16) 68% 100%);
}

.industry-menu-shell,
.sector-detail-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.industry-menu-back,
.sector-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid rgba(24, 171, 164, 0.22);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 0 rgba(24, 171, 164, 0.1);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.industry-menu-back::before,
.sector-back-link::before {
  content: "<";
  margin-right: 8px;
}

.industry-menu-intro {
  width: min(760px, 100%);
  margin: 18px auto 0;
  text-align: center;
}

.industry-menu-intro h1 {
  margin: 0;
  color: #47352c;
  font-size: 3.05rem;
  line-height: 1.12;
}

.industry-menu-intro p:last-child {
  width: min(620px, 100%);
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.75;
}

.industry-menu-console {
  margin-top: 24px;
  padding: 16px;
  border: 4px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 42px rgba(77, 55, 30, 0.14);
}

.industry-menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(90deg, #16b8ae, #36aee8);
  box-shadow: inset 0 -4px 0 rgba(47, 42, 39, 0.12);
}

.industry-menu-bar span,
.industry-menu-bar strong {
  font-weight: 900;
}

.industry-menu-bar span {
  font-size: 0.8rem;
}

.industry-menu-bar strong {
  font-size: 1.08rem;
}

.industry-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.industry-menu-card {
  --industry-menu-color: #16b8ae;
  --industry-menu-soft: rgba(22, 184, 174, 0.16);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 264px;
  padding: 13px 12px 15px;
  border: 3px solid #fff;
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 239, 0.98)),
    radial-gradient(circle at 50% 28%, var(--industry-menu-soft), transparent 36%);
  box-shadow: 0 8px 0 rgba(47, 42, 39, 0.09);
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.industry-menu-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--industry-menu-color);
}

.industry-menu-card.care {
  --industry-menu-color: #ee8fa8;
  --industry-menu-soft: rgba(238, 143, 168, 0.2);
}

.industry-menu-card.food {
  --industry-menu-color: #f0ad25;
  --industry-menu-soft: rgba(240, 173, 37, 0.2);
}

.industry-menu-card.manufacturing {
  --industry-menu-color: #45a1d8;
  --industry-menu-soft: rgba(69, 161, 216, 0.19);
}

.industry-menu-card.professional {
  --industry-menu-color: #9277d8;
  --industry-menu-soft: rgba(146, 119, 216, 0.19);
}

.industry-menu-card.retail {
  --industry-menu-color: #53b981;
  --industry-menu-soft: rgba(83, 185, 129, 0.2);
}

.industry-menu-card:hover {
  transform: translateY(-2px);
  border-color: var(--industry-menu-color);
  box-shadow: 0 12px 0 rgba(47, 42, 39, 0.12), 0 18px 28px rgba(77, 55, 30, 0.12);
}

.industry-menu-card:focus-visible,
.sector-text-link:focus-visible,
.industry-menu-back:focus-visible,
.sector-back-link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.industry-menu-number {
  position: absolute;
  top: 14px;
  left: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid var(--industry-menu-color);
  border-radius: 999px;
  color: var(--industry-menu-color);
  background: #fff;
  box-shadow: 0 4px 0 rgba(47, 42, 39, 0.12);
  box-sizing: border-box;
  font-size: 0.78rem;
  font-weight: 900;
}

.industry-menu-visual {
  position: relative;
  display: grid;
  place-items: end center;
  width: 100%;
  height: 142px;
  margin: 18px 0 10px;
}

.industry-menu-visual::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 4px;
  height: 24px;
  border-radius: 50%;
  background: var(--industry-menu-soft);
}

.industry-menu-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 136px;
  height: 138px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(77, 55, 30, 0.12));
}

.industry-menu-card strong {
  min-height: 2.45em;
  color: #47352c;
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.25;
}

.industry-menu-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.42;
}

.industry-menu-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--industry-menu-color);
  box-shadow: 0 4px 0 rgba(47, 42, 39, 0.14);
  font-size: 0.78rem;
  font-weight: 900;
}

.industry-menu-guide {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: min(660px, 100%);
  margin: 14px auto 0;
  padding: 10px 14px;
  border: 3px solid #fff;
  border-radius: 8px;
  background: rgba(255, 244, 212, 0.9);
  box-shadow: 0 12px 26px rgba(77, 55, 30, 0.1);
}

.industry-menu-guide img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.industry-menu-guide p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.industry-menu-guide strong {
  color: #47352c;
  font-size: 0.95rem;
  line-height: 1.45;
}

.industry-menu-guide span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.sector-detail-body {
  --sector-color: #16b8ae;
  --sector-soft: rgba(22, 184, 174, 0.16);
}

.sector-detail-body[data-sector-theme="care"] {
  --sector-color: #ee8fa8;
  --sector-soft: rgba(238, 143, 168, 0.2);
}

.sector-detail-body[data-sector-theme="food"] {
  --sector-color: #f0ad25;
  --sector-soft: rgba(240, 173, 37, 0.2);
}

.sector-detail-body[data-sector-theme="manufacturing"] {
  --sector-color: #45a1d8;
  --sector-soft: rgba(69, 161, 216, 0.19);
}

.sector-detail-body[data-sector-theme="professional"] {
  --sector-color: #9277d8;
  --sector-soft: rgba(146, 119, 216, 0.19);
}

.sector-detail-body[data-sector-theme="retail"] {
  --sector-color: #53b981;
  --sector-soft: rgba(83, 185, 129, 0.2);
}

.usecase-menu-card.sns {
  --industry-menu-color: #208ee1;
  --industry-menu-soft: rgba(32, 142, 225, 0.18);
}

.usecase-menu-card.company {
  --industry-menu-color: #16b8ae;
  --industry-menu-soft: rgba(22, 184, 174, 0.16);
}

.usecase-menu-card.manga {
  --industry-menu-color: #ee8fa8;
  --industry-menu-soft: rgba(238, 143, 168, 0.2);
}

.usecase-menu-card.video {
  --industry-menu-color: #9277d8;
  --industry-menu-soft: rgba(146, 119, 216, 0.2);
}

.usecase-menu-card.event {
  --industry-menu-color: #f0ad25;
  --industry-menu-soft: rgba(240, 173, 37, 0.2);
}

.usecase-menu-card.recruit {
  --industry-menu-color: #53b981;
  --industry-menu-soft: rgba(83, 185, 129, 0.2);
}

.usecase-menu-card .industry-menu-visual img {
  max-width: 154px;
}

.usecase-menu-card.event .industry-menu-visual img {
  max-width: 184px;
}

.usecase-detail-body {
  --sector-color: #208ee1;
  --sector-soft: rgba(32, 142, 225, 0.18);
}

.usecase-detail-body[data-usecase-theme="company"] {
  --sector-color: #16b8ae;
  --sector-soft: rgba(22, 184, 174, 0.16);
}

.usecase-detail-body[data-usecase-theme="manga"] {
  --sector-color: #ee8fa8;
  --sector-soft: rgba(238, 143, 168, 0.2);
}

.usecase-detail-body[data-usecase-theme="video"] {
  --sector-color: #9277d8;
  --sector-soft: rgba(146, 119, 216, 0.2);
}

.usecase-detail-body[data-usecase-theme="event"] {
  --sector-color: #f0ad25;
  --sector-soft: rgba(240, 173, 37, 0.2);
}

.usecase-detail-body[data-usecase-theme="recruit"] {
  --sector-color: #53b981;
  --sector-soft: rgba(83, 185, 129, 0.2);
}

.sector-hero-panel {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-top: 24px;
  padding: 18px;
  border: 4px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 42px rgba(77, 55, 30, 0.14);
}

.sector-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 340px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 245, 220, 0.9)),
    repeating-linear-gradient(0deg, rgba(24, 171, 164, 0.1) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(90deg, rgba(24, 171, 164, 0.1) 0 1px, transparent 1px 54px);
}

.sector-visual::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 28px;
  height: 32px;
  border-radius: 50%;
  background: var(--sector-soft);
}

.sector-status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  color: #fff;
  background: var(--sector-color);
  box-shadow: 0 4px 0 rgba(47, 42, 39, 0.12);
  font-size: 0.8rem;
  font-weight: 900;
}

.sector-visual img {
  position: relative;
  z-index: 1;
  width: min(290px, 90%);
  height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(77, 55, 30, 0.16));
}

.sector-copy {
  padding: 8px 8px 8px 0;
}

.sector-label {
  margin: 8px 0 6px;
  color: var(--sector-color);
  font-size: 0.9rem;
  font-weight: 900;
}

.sector-copy h1 {
  margin: 0;
  color: #47352c;
  font-size: 3rem;
  line-height: 1.14;
}

.sector-lead {
  width: min(640px, 100%);
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.85;
}

.sector-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.sector-text-link {
  color: var(--sector-color);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.sector-value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.sector-value-strip article,
.sector-use-grid article,
.sector-bottom-cta {
  border: 4px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 30px rgba(77, 55, 30, 0.12);
}

.sector-value-strip article {
  padding: 18px;
}

.sector-value-strip span,
.sector-use-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--sector-color);
  font-size: 0.76rem;
  font-weight: 900;
}

.sector-value-strip h2,
.sector-use-section h2,
.sector-bottom-cta h2 {
  margin: 10px 0 10px;
  color: #47352c;
  font-size: 1.2rem;
  line-height: 1.35;
}

.sector-value-strip ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sector-value-strip li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.55;
}

.sector-value-strip li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translateY(-50%);
}

.sector-use-section {
  margin-top: 34px;
}

.sector-section-head {
  text-align: center;
}

.sector-section-head h2 {
  margin: 0;
  font-size: 2rem;
}

.sector-use-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.sector-use-grid article {
  padding: 20px;
}

.sector-use-grid h3 {
  margin: 12px 0 8px;
  color: #47352c;
  font-size: 1.18rem;
  line-height: 1.45;
}

.sector-use-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.75;
}

.sector-bottom-cta {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 16px 18px;
  background: rgba(255, 244, 212, 0.92);
}

.sector-bottom-cta img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.sector-bottom-cta h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.sector-bottom-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .industry-section .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-menu-intro h1,
  .sector-copy h1 {
    font-size: 2.5rem;
  }

  .industry-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sector-hero-panel {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .sector-visual {
    min-height: 282px;
  }

  .sector-visual img {
    height: 250px;
  }

  .sector-value-strip {
    grid-template-columns: 1fr;
  }

  .sector-bottom-cta {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .sector-bottom-cta .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .industry-section .industry-grid {
    grid-template-columns: 1fr;
  }

  .industry-menu-hero,
  .sector-detail-hero {
    min-height: auto;
    padding: 30px 16px 34px;
  }

  .industry-menu-back,
  .sector-back-link {
    min-height: 36px;
    padding: 0 13px;
    font-size: 0.78rem;
  }

  .industry-menu-intro {
    margin-top: 18px;
    text-align: left;
  }

  .industry-menu-intro h1,
  .sector-copy h1 {
    font-size: 2.08rem;
    line-height: 1.18;
  }

  .industry-menu-intro p:last-child,
  .sector-lead {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .industry-menu-console {
    margin-top: 18px;
    padding: 10px;
    border-width: 3px;
  }

  .industry-menu-bar {
    min-height: 42px;
    padding: 8px 10px;
  }

  .industry-menu-bar strong {
    font-size: 0.95rem;
  }

  .industry-menu-grid {
    gap: 10px;
  }

  .industry-menu-card {
    min-height: 212px;
    padding: 10px 8px 12px;
  }

  .industry-menu-number {
    top: 12px;
    left: 8px;
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }

  .industry-menu-visual {
    height: 108px;
    margin: 16px 0 8px;
  }

  .industry-menu-visual img {
    max-width: 106px;
    height: 106px;
  }

  .industry-menu-card strong {
    min-height: 2.7em;
    font-size: 0.94rem;
  }

  .industry-menu-card small {
    font-size: 0.72rem;
  }

  .industry-menu-more {
    min-height: 30px;
    margin-top: 10px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .industry-menu-guide {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 10px 12px;
  }

  .industry-menu-guide img {
    width: 50px;
    height: 50px;
  }

  .industry-menu-guide strong {
    font-size: 0.86rem;
  }

  .industry-menu-guide span {
    font-size: 0.76rem;
  }

  .sector-hero-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
    padding: 12px;
    border-width: 3px;
  }

  .sector-visual {
    min-height: 222px;
  }

  .sector-visual img {
    width: min(220px, 88%);
    height: 206px;
  }

  .sector-copy {
    padding: 0;
  }

  .sector-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
  }

  .sector-text-link {
    text-align: center;
  }

  .sector-value-strip {
    gap: 10px;
    margin-top: 12px;
  }

  .sector-value-strip article,
  .sector-use-grid article {
    padding: 16px;
    border-width: 3px;
  }

  .sector-use-section {
    margin-top: 26px;
  }

  .sector-section-head {
    text-align: left;
  }

  .sector-section-head h2 {
    font-size: 1.52rem;
  }

  .sector-use-grid {
    grid-template-columns: 1fr;
  }

  .sector-bottom-cta {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-width: 3px;
  }

  .sector-bottom-cta img {
    width: 58px;
    height: 58px;
  }

  .sector-bottom-cta .button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

@media (max-width: 380px) {
  .industry-menu-grid {
    gap: 8px;
  }

  .industry-menu-card {
    min-height: 202px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .industry-menu-visual img {
    max-width: 98px;
  }

  .industry-menu-card strong {
    font-size: 0.88rem;
  }
}

.member-body {
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(232, 249, 255, 0.92)),
    repeating-linear-gradient(0deg, rgba(24, 171, 164, 0.08) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(24, 171, 164, 0.08) 0 1px, transparent 1px 64px);
}

.member-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 10px 28px;
  border-bottom: 1px solid rgba(91, 70, 58, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.member-brand {
  min-width: 210px;
}

.member-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.member-site-link,
.member-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.member-site-link {
  color: var(--teal);
  background: rgba(24, 171, 164, 0.1);
}

.member-alert {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 4px 0 rgba(47, 42, 39, 0.14);
}

.member-user {
  display: grid;
  gap: 1px;
  min-width: 142px;
  padding: 8px 12px;
  border: 2px solid rgba(24, 171, 164, 0.18);
  border-radius: 8px;
  background: #fff;
}

.member-user span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.member-user strong {
  color: #47352c;
  font-size: 0.9rem;
  line-height: 1.25;
}

.member-app {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.member-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 12px;
  border: 4px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(77, 55, 30, 0.11);
}

.member-sidebar nav {
  display: grid;
  gap: 6px;
}

.member-sidebar a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #5b463a;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.member-sidebar a:hover,
.member-sidebar a.is-active {
  color: var(--teal);
  background: rgba(24, 171, 164, 0.1);
}

.member-sidebar span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 3px 0 rgba(47, 42, 39, 0.12);
  font-size: 0.78rem;
}

.member-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.member-hero,
.member-progress-card,
.member-panel,
.member-action-card {
  border: 4px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 38px rgba(77, 55, 30, 0.12);
}

.member-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.member-hero h1 {
  width: min(760px, 100%);
  margin: 0;
  color: #47352c;
  font-size: 2rem;
  line-height: 1.25;
}

.member-hero p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

.member-hero-guide {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff4d4;
}

.member-hero-guide img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.member-hero-guide p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.member-hero-guide strong {
  color: #47352c;
  font-size: 1rem;
  line-height: 1.35;
}

.member-hero-guide span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.member-progress-card,
.member-panel,
.member-action-card {
  padding: 18px;
}

.member-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.member-section-head h2,
.member-action-card h2 {
  margin: 0;
  color: #47352c;
  font-size: 1.18rem;
  line-height: 1.35;
}

.member-flow-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.5;
}

.member-kicker {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
}

.member-section-head a {
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.member-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 4px 0 rgba(47, 42, 39, 0.12);
  font-size: 0.82rem;
  font-weight: 900;
}

.member-progress {
  display: grid;
  grid-template-columns: repeat(var(--milestone-count, 5), minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-progress li {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 76px;
  padding: 12px;
  border: 2px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: #fffdf7;
}

.member-progress span {
  display: block;
  width: 18px;
  height: 18px;
  border: 4px solid rgba(91, 70, 58, 0.16);
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.member-progress strong {
  color: #5b463a;
  font-size: 0.82rem;
  line-height: 1.4;
}

.member-progress .is-done span {
  border-color: var(--teal);
  background: var(--teal);
}

.member-progress .is-current {
  border-color: var(--yellow);
  background: #fff4d4;
}

.member-progress .is-current span {
  border-color: var(--yellow);
  background: #fff;
}

.member-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 16px;
}

.member-action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 244, 212, 0.94), rgba(232, 249, 255, 0.9)),
    #fff;
}

.member-action-card p:last-child,
.member-request-box p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.65;
}

.member-deliverables {
  grid-row: span 2;
}

.member-delivery-list,
.member-message-list,
.member-schedule-list {
  display: grid;
  gap: 10px;
}

.member-delivery-list article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 10px;
  border: 2px solid rgba(91, 70, 58, 0.08);
  border-radius: 8px;
  background: #fffdf7;
}

.member-delivery-list img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.member-delivery-list strong,
.member-request-box strong,
.member-schedule-list strong {
  color: #47352c;
  font-size: 0.95rem;
  line-height: 1.35;
}

.member-delivery-list small,
.member-schedule-list small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.member-delivery-list article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.member-delivery-list .is-waiting {
  background: var(--pink);
}

.member-delivery-list .is-working {
  background: var(--blue);
}

.member-delivery-list .is-approved {
  background: var(--green);
}

.member-message-list article {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(91, 70, 58, 0.18);
}

.member-message-list article:last-child {
  border-bottom: 0;
}

.member-message-list span,
.member-message-list small {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.member-message-list p {
  margin: 0;
  color: #5b463a;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.55;
}

.member-schedule-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #fffdf7;
}

.member-schedule-list span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 4px 0 rgba(47, 42, 39, 0.12);
  font-size: 0.86rem;
  font-weight: 900;
}

.member-request-box {
  padding: 14px;
  border-radius: 8px;
  background: #fffdf7;
}

.member-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 16px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.member-contract-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.member-contract-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(91, 70, 58, 0.18);
}

.member-contract-list div:last-child {
  border-bottom: 0;
}

.member-contract-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.member-contract-list dd {
  margin: 0;
  color: #47352c;
  font-size: 0.88rem;
  font-weight: 900;
  text-align: right;
}

@media (max-width: 1080px) {
  .member-app {
    grid-template-columns: 1fr;
  }

  .member-sidebar {
    position: static;
    overflow-x: auto;
    padding: 8px;
  }

  .member-sidebar nav {
    display: flex;
    min-width: max-content;
  }

  .member-sidebar a {
    grid-template-columns: 28px auto;
    min-height: 42px;
    white-space: nowrap;
  }

  .member-sidebar span {
    width: 28px;
    height: 28px;
  }

  .member-main-grid {
    grid-template-columns: 1fr;
  }

  .member-deliverables {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .member-topbar {
    align-items: flex-start;
    padding: 10px 16px;
  }

  .member-top-actions {
    align-items: flex-end;
    gap: 8px;
  }

  .member-site-link,
  .member-user {
    display: none;
  }

  .member-alert {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.76rem;
  }

  .member-app {
    padding: 14px 16px 32px;
  }

  .member-sidebar {
    overflow-x: visible;
  }

  .member-sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
    gap: 6px;
  }

  .member-sidebar a {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 5px;
    min-height: 66px;
    padding: 8px 4px;
    font-size: 0.72rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .member-sidebar span {
    width: 30px;
    height: 30px;
  }

  .member-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .member-hero h1 {
    font-size: 1.68rem;
    line-height: 1.35;
  }

  .member-hero p:last-child {
    font-size: 0.88rem;
  }

  .member-hero-guide {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .member-hero-guide img {
    width: 58px;
    height: 58px;
  }

  .member-progress-card,
  .member-panel,
  .member-action-card {
    padding: 14px;
    border-width: 3px;
  }

  .member-section-head {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .member-status-pill {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .member-progress {
    grid-template-columns: 1fr;
  }

  .member-progress li {
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    min-height: 48px;
    gap: 10px;
    padding: 10px;
  }

  .member-progress strong {
    font-size: 0.84rem;
  }

  .member-action-card {
    grid-template-columns: 1fr;
  }

  .member-action-card .button {
    justify-self: stretch;
  }

  .member-delivery-list article {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .member-delivery-list img {
    width: 54px;
    height: 54px;
  }

  .member-delivery-list article > span {
    grid-column: 2;
    justify-self: start;
  }

  .member-message-list article {
    grid-template-columns: 1fr auto;
  }

  .member-message-list p {
    grid-column: 1 / -1;
    order: 2;
  }

  .member-contract-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .member-contract-list dd {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .member-brand {
    min-width: 0;
  }

  .member-brand img {
    width: 42px;
    height: 42px;
  }

  .member-brand strong {
    font-size: 0.92rem;
  }

  .member-brand small {
    font-size: 0.68rem;
  }

  .member-alert {
    font-size: 0.7rem;
  }
}

.member-body {
  min-height: 100vh;
  padding: 8px;
  background: #f2f8ff;
}

.member-frame {
  overflow: hidden;
  min-height: calc(100vh - 16px);
  border: 2px solid #2388ff;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #fff 0, #fff 60px, #fbf8ee 60px, #f0fbff 100%);
  box-shadow: 0 18px 48px rgba(39, 100, 150, 0.16);
}

.member-topbar {
  position: static;
  min-height: 58px;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(91, 70, 58, 0.12);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: none;
}

.member-brand img {
  width: 44px;
  height: 44px;
}

.member-brand strong {
  font-size: 1.05rem;
}

.member-brand small {
  color: var(--teal);
  font-size: 0.68rem;
}

.member-top-actions {
  gap: 14px;
}

.member-admin-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(25, 184, 178, 0.45);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  box-shadow: 0 6px 16px rgba(25, 184, 178, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.member-admin-switch:hover {
  background: #e9fbfb;
  transform: translateY(-1px);
}

.member-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  box-shadow: 0 3px 0 rgba(47, 42, 39, 0.16);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}

.member-bell::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #5b463a;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  border-bottom: 0;
  background: #fff;
  transform: translate(-4px, 2px);
}

.member-company {
  display: grid;
  gap: 1px;
  color: #5b463a;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: right;
}

.member-company small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.member-user {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-width: 150px;
  padding: 0;
  border: 0;
  background: transparent;
}

.member-user::before {
  content: "山田";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #4da7e9;
  font-size: 0.7rem;
  font-weight: 900;
}

.member-user span {
  color: #47352c;
  font-size: 0.82rem;
  font-weight: 900;
}

.member-user strong {
  display: none;
}

.member-app {
  grid-template-columns: 174px minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  padding: 0;
}

.member-sidebar {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 74px);
  padding: 14px 10px;
  border: 0;
  border-right: 1px solid rgba(91, 70, 58, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.member-sidebar nav {
  gap: 5px;
}

.member-sidebar a {
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #47352c;
  font-size: 0.8rem;
}

.member-sidebar a.is-active {
  color: #fff;
  background: linear-gradient(90deg, #18b7b0, #12c8c5);
  box-shadow: 0 4px 12px rgba(18, 190, 186, 0.24);
}

.member-sidebar a:hover {
  color: var(--teal);
  background: rgba(24, 171, 164, 0.1);
}

.member-sidebar a.is-active:hover {
  color: #fff;
  background: linear-gradient(90deg, #18b7b0, #12c8c5);
}

.member-sidebar span {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--teal);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(24, 171, 164, 0.2);
  font-size: 0.68rem;
}

.member-sidebar a.is-active span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.member-support-card {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 12px 10px;
  border: 1px solid rgba(24, 171, 164, 0.24);
  border-radius: 8px;
  background: #e9fbff;
  text-align: center;
}

.member-support-card p {
  margin: 0;
  color: #47352c;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.55;
}

.member-support-card img {
  justify-self: center;
  width: 78px;
  height: 78px;
  object-fit: contain;
  margin: -4px 0;
}

.member-support-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.member-content {
  gap: 12px;
  padding: 16px 22px 22px 0;
}

.member-project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 16px;
  min-height: 86px;
}

.member-project-copy p {
  margin: 0 0 4px;
  color: #5b463a;
  font-size: 0.82rem;
  font-weight: 800;
}

.member-project-copy h1 {
  margin: 0;
  color: #47352c;
  font-size: 1.76rem;
  line-height: 1.2;
}

.member-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.member-project-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #5b463a;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(91, 70, 58, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
}

.member-project-mascot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  align-items: end;
  min-height: 88px;
}

.member-project-mascot p {
  align-self: center;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #5b463a;
  background: #fff;
  box-shadow: 0 8px 18px rgba(77, 55, 30, 0.1);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.55;
}

.member-project-mascot img {
  width: 142px;
  height: 112px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 10px 12px rgba(77, 55, 30, 0.12));
}

.member-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}

.member-progress-card,
.member-panel,
.member-action-card {
  padding: 12px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(77, 55, 30, 0.08);
}

.member-progress-card {
  grid-column: span 8;
}

.member-action-card {
  grid-column: span 4;
  align-content: start;
  display: block;
  background: linear-gradient(180deg, #fff8fb, #fff);
  border-color: rgba(248, 95, 145, 0.18);
}

.member-deliverables,
.member-messages {
  grid-column: span 6;
}

.member-schedule,
.member-contract,
.member-help {
  grid-column: span 4;
}

.member-section-head {
  margin-bottom: 8px;
}

.member-section-head h2,
.member-action-card h2 {
  font-size: 0.94rem;
}

.member-kicker {
  margin-bottom: 3px;
  font-size: 0.68rem;
}

.member-section-head a {
  font-size: 0.72rem;
}

.member-progress {
  position: relative;
  grid-template-columns: repeat(var(--milestone-count, 5), minmax(0, 1fr));
  gap: 0;
  padding: 8px 6px 2px;
}

.member-progress::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #dce9ef;
}

.member-progress li {
  z-index: 1;
  justify-items: center;
  min-height: 82px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  text-align: center;
}

.member-progress span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid #dce9ef;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(77, 55, 30, 0.08);
}

.member-progress .is-done span,
.member-progress .is-current span {
  border-color: var(--teal);
  background: var(--teal);
}

.member-progress .is-current span {
  background: #18c4bf;
}

.member-progress .is-done span::before {
  content: "";
  width: 12px;
  height: 7px;
  border-bottom: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.member-progress .is-current span::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 2px;
  transform: rotate(-35deg);
}

.member-progress strong {
  color: #47352c;
  font-size: 0.72rem;
}

.member-progress small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.member-progress .is-current strong,
.member-progress .is-current small {
  color: var(--teal);
}

.member-next-box {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(248, 95, 145, 0.14);
}

.member-next-box strong {
  display: block;
  color: #47352c;
  font-size: 0.94rem;
  line-height: 1.4;
}

.member-next-box p {
  margin: 7px 0 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.55;
}

.member-next-box .button {
  width: 100%;
  min-height: 40px;
  font-size: 0.82rem;
}

.member-next-box small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.member-deliverable-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.member-deliverable-cards article {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 168px;
  padding: 10px;
  border: 1px solid rgba(91, 70, 58, 0.12);
  border-radius: 8px;
  background: #fffdf7;
}

.member-deliverable-cards span {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
}

.member-deliverable-cards .is-waiting {
  background: var(--pink);
}

.member-deliverable-cards .is-working {
  background: var(--yellow);
  color: #7a5500;
}

.member-deliverable-cards .is-approved {
  background: var(--green);
}

.member-deliverable-cards img {
  justify-self: center;
  width: 100%;
  height: 74px;
  object-fit: contain;
}

.member-deliverable-cards h3 {
  margin: 0;
  color: #47352c;
  font-size: 0.76rem;
  line-height: 1.35;
}

.member-deliverable-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.member-deliverable-cards a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-top: 3px;
  border: 1px solid var(--pink);
  border-radius: 999px;
  color: var(--pink);
  background: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: none;
}

.member-deliverable-cards article:nth-child(2) a {
  border-color: var(--yellow);
  color: #b17800;
}

.member-deliverable-cards article:nth-child(3) a {
  border-color: var(--teal);
  color: var(--teal);
}

.member-thread-list {
  display: grid;
  gap: 8px;
}

.member-thread-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(91, 70, 58, 0.16);
}

.member-thread-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.member-thread-list article > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 0.65rem;
  font-weight: 900;
}

.member-thread-list strong {
  color: #47352c;
  font-size: 0.72rem;
  line-height: 1.35;
}

.member-thread-list p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.5;
}

.member-thread-list small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-align: right;
}

.member-thread-list b {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  margin-top: 2px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  font-size: 0.62rem;
}

.member-schedule-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.member-schedule-split article {
  padding: 10px;
  border-radius: 8px;
  background: #fffdf7;
}

.member-schedule-split span,
.member-contract dt {
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 900;
}

.member-schedule-split strong {
  display: block;
  margin-top: 8px;
  color: #47352c;
  font-size: 1.08rem;
}

.member-schedule-split small {
  font-size: 0.68rem;
}

.member-schedule-split p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.member-solid-button,
.member-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.member-solid-button {
  border: 0;
  color: #fff;
  background: var(--teal);
  cursor: pointer;
  font: inherit;
}

.member-outline-button {
  border: 1px solid var(--teal);
  color: var(--teal);
  background: #fff;
}

.member-contract dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.member-contract dl div {
  display: grid;
  gap: 2px;
}

.member-contract dd {
  margin: 0;
  color: #47352c;
  font-size: 0.76rem;
  font-weight: 900;
}

.member-contract dd:last-child {
  font-size: 1.06rem;
}

.member-contract small {
  color: var(--muted);
  font-size: 0.68rem;
}

.member-help ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-help a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(91, 70, 58, 0.1);
  color: #47352c;
  font-size: 0.74rem;
  font-weight: 900;
  text-decoration: none;
}

.member-help li:last-child a {
  border-bottom: 0;
}

.member-help a::after {
  content: ">";
  color: var(--teal);
}

@media (max-width: 1080px) {
  .member-body {
    padding: 0;
  }

  .member-frame {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .member-app {
    grid-template-columns: 1fr;
  }

  .member-sidebar {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(91, 70, 58, 0.12);
  }

  .member-content {
    padding: 14px 16px 30px;
  }

  .member-dashboard-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .member-progress-card,
  .member-action-card,
  .member-deliverables,
  .member-messages,
  .member-schedule,
  .member-contract,
  .member-help {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .member-topbar {
    min-height: 64px;
    padding: 9px 16px;
  }

  .member-company,
  .member-user {
    display: none;
  }

  .member-bell {
    width: 34px;
    height: 34px;
  }

  .member-sidebar nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .member-sidebar {
    padding: 10px 12px;
  }

  .member-sidebar a {
    min-height: 58px;
  }

  .member-support-card {
    display: none;
  }

  .member-project-hero {
    grid-template-columns: 1fr;
  }

  .member-project-copy h1 {
    font-size: 1.58rem;
    line-height: 1.28;
  }

  .member-project-mascot {
    grid-template-columns: minmax(0, 1fr) 94px;
    min-height: 78px;
  }

  .member-project-mascot img {
    width: 94px;
    height: 82px;
  }

  .member-project-mascot p {
    margin-bottom: 8px;
    font-size: 0.7rem;
  }

  .member-progress {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0;
  }

  .member-progress::before {
    display: none;
  }

  .member-progress li {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    justify-items: start;
    align-items: center;
    min-height: 44px;
    padding: 7px 8px;
    border: 1px solid rgba(91, 70, 58, 0.1);
    border-radius: 8px;
    background: #fffdf7;
    text-align: left;
  }

  .member-progress span {
    width: 28px;
    height: 28px;
  }

  .member-progress strong {
    font-size: 0.78rem;
  }

  .member-deliverable-cards,
  .member-schedule-split {
    grid-template-columns: 1fr;
  }

  .member-deliverable-cards article {
    min-height: 0;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
  }

  .member-deliverable-cards span {
    position: static;
    grid-column: 2;
    justify-self: start;
  }

  .member-deliverable-cards img {
    grid-row: span 4;
    width: 82px;
    height: 82px;
  }

  .member-deliverable-cards a {
    justify-self: start;
    padding: 0 14px;
  }
}

@media (max-width: 420px) {
  .member-sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .member-sidebar a {
    font-size: 0.68rem;
  }

  .member-content {
    padding-right: 14px;
    padding-left: 14px;
  }
}

/* Mypage dashboard: closer to the compact client portal mockup. */
.member-frame {
  max-width: 1328px;
  margin: 0 auto;
}

.member-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.member-bell {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(91, 70, 58, 0.14);
  color: transparent;
  background: #fff;
  box-shadow: none;
  font-size: 0;
}

.member-bell::before {
  top: 8px;
  left: 8px;
  width: 12px;
  height: 13px;
  border: 2px solid #5b463a;
  border-bottom: 0;
  border-radius: 8px 8px 2px 2px;
  background: transparent;
  transform: none;
}

.member-bell::after {
  content: "3";
  position: absolute;
  top: -4px;
  right: -3px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #fff;
  background: var(--pink);
  font-size: 0.62rem;
  font-weight: 900;
}

.member-app {
  gap: 0;
}

.member-content {
  padding: 16px 22px 22px 20px;
}

.member-project-hero {
  min-height: 96px;
}

.member-project-copy h1 {
  max-width: 760px;
}

.member-project-mascot {
  grid-template-columns: minmax(0, 1fr) 136px;
  min-height: 96px;
}

.member-project-mascot img {
  width: 136px;
  height: 116px;
}

.member-dashboard-grid {
  align-items: start;
}

.member-progress-card,
.member-panel,
.member-action-card {
  align-self: start;
}

.member-progress-card {
  min-height: 0;
  align-self: start;
}

.member-deliverables {
  grid-row: auto;
}

.member-progress {
  padding: 4px 4px 0;
}

.member-progress::before {
  top: 25px;
}

.member-progress li {
  min-height: 68px;
}

.member-progress span {
  width: 34px;
  height: 34px;
}

.member-progress strong {
  font-size: 0.7rem;
  line-height: 1.35;
}

.member-progress small {
  margin-top: 2px;
}

.member-action-card {
  padding: 10px;
}

.member-action-card h2 {
  margin-bottom: 8px;
}

.member-next-box {
  padding: 10px 12px;
}

.member-next-box strong {
  font-size: 0.86rem;
}

.member-next-box p {
  margin: 6px 0 8px;
  font-size: 0.72rem;
  line-height: 1.45;
}

.member-next-box .button {
  min-height: 34px;
  box-shadow: 0 5px 0 rgba(91, 70, 58, 0.18);
}

.member-next-box small {
  margin-top: 8px;
}

.member-deliverable-cards article {
  min-height: 156px;
}

.member-deliverable-cards img {
  height: 68px;
}

.member-thread-list article {
  padding-bottom: 7px;
}

.member-thread-list p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-schedule-split article {
  min-height: 98px;
}

.member-contract dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 7px;
}

.member-contract dl div:last-child {
  grid-column: 1 / -1;
}

.member-contract dd:last-child {
  font-size: 1rem;
}

.member-help a {
  min-height: 34px;
}

@media (max-width: 1080px) {
  .member-frame {
    max-width: none;
  }

  .member-content {
    padding: 14px 16px 30px;
  }

  .member-contract dl {
    grid-template-columns: 1fr;
  }

  .member-contract dl div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .member-sidebar {
    overflow-x: auto;
  }

  .member-sidebar nav {
    display: flex;
    grid-template-columns: none;
    min-width: max-content;
  }

  .member-sidebar a {
    grid-template-columns: 26px auto;
    min-height: 44px;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .member-project-hero {
    min-height: 0;
  }

  .member-project-mascot {
    grid-template-columns: minmax(0, 1fr) 94px;
    min-height: 78px;
  }

  .member-project-mascot img {
    width: 94px;
    height: 82px;
  }

  .member-progress li {
    min-height: 44px;
  }

  .member-deliverable-cards article {
    min-height: 0;
  }

  .member-thread-list p {
    display: block;
    overflow: visible;
  }
}

/* Client portal MVP: deliverables, uploads, and unified messages. */
.member-submissions {
  grid-column: span 6;
}

.member-messages {
  grid-column: span 8;
}

.member-schedule {
  grid-column: span 4;
}

.member-contract,
.member-help {
  grid-column: span 6;
}

.member-action-list {
  display: grid;
  gap: 8px;
}

.member-action-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: #fff;
}

.member-action-list article.is-primary {
  border-color: rgba(248, 95, 145, 0.22);
  background: #fff8fb;
}

.member-action-list article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-size: 0.68rem;
  font-weight: 900;
}

.member-action-list article.is-primary > span {
  background: var(--pink);
}

.member-action-list strong {
  display: block;
  color: #47352c;
  font-size: 0.82rem;
  line-height: 1.35;
}

.member-action-list p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.45;
}

.member-action-list article > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.member-action-list article:not(.is-primary) > a {
  background: var(--teal);
}

.member-action-list > small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}

.member-submission-list {
  display: grid;
  gap: 8px;
}

.member-submission-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 68px;
  padding: 9px 10px;
  border: 1px solid rgba(91, 70, 58, 0.11);
  border-radius: 8px;
  background: #fffdf7;
}

.member-submission-list article > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: var(--pink);
  font-size: 0.7rem;
  font-weight: 900;
}

.member-submission-list article.is-submitted > span {
  background: var(--green);
}

.member-submission-list article.is-retry > span {
  color: #7a5500;
  background: var(--yellow);
}

.member-submission-list strong {
  display: block;
  color: #47352c;
  font-size: 0.8rem;
  line-height: 1.35;
}

.member-submission-list p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.45;
}

.member-submission-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.member-thread-list strong {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.member-thread-list em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
}

.member-thread-list article:nth-child(2) em {
  color: #7a5500;
  background: var(--yellow);
}

.member-thread-list article:nth-child(3) em {
  background: var(--green);
}

.member-thread-list mark {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 20px;
  align-items: center;
  margin-top: 3px;
  padding: 0 8px;
  border-radius: 999px;
  color: #5b463a;
  background: #fff4d4;
  font-size: 0.64rem;
  font-weight: 900;
}

.member-message-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f0fbff;
  box-shadow: inset 0 0 0 1px rgba(24, 171, 164, 0.14);
}

.member-message-compose div {
  display: grid;
  gap: 2px;
}

.member-message-compose span {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 900;
}

.member-message-compose strong {
  color: #47352c;
  font-size: 0.76rem;
  line-height: 1.35;
}

.member-message-compose p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.45;
}

.member-message-compose .member-solid-button {
  margin-top: 0;
  white-space: nowrap;
}

.member-content {
  grid-column: 2;
}

.member-page {
  align-content: start;
  display: none;
  grid-auto-rows: max-content;
}

.member-body[data-member-view="project"] .member-dashboard,
.member-body[data-member-view="todos"] .member-dashboard,
.member-body[data-member-view="deliverables"] .member-dashboard,
.member-body[data-member-view="submissions"] .member-dashboard,
.member-body[data-member-view="messages"] .member-dashboard,
.member-body[data-member-view="billing"] .member-dashboard {
  display: none;
}

.member-body[data-member-view="project"] #project,
.member-body[data-member-view="todos"] #todos,
.member-body[data-member-view="deliverables"] #deliverables,
.member-body[data-member-view="submissions"] #submissions,
.member-body[data-member-view="messages"] #messages,
.member-body[data-member-view="billing"] #billing {
  display: grid;
}

.member-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(77, 55, 30, 0.08);
}

.member-page-head h1 {
  margin: 0;
  color: #47352c;
  font-size: 1.24rem;
  line-height: 1.3;
}

.member-page-head p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.member-page-description {
  display: block;
  margin-top: 5px;
  color: #18aba4;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.5;
}

.member-page-head a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(24, 171, 164, 0.34);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.member-submit-card,
.member-message-send-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(77, 55, 30, 0.08);
}

.member-form-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.member-form-head h2 {
  margin: 0;
  color: #47352c;
  font-size: 0.94rem;
  line-height: 1.3;
}

.member-form-head > span {
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.member-form-grid,
.member-message-fields {
  display: grid;
  gap: 8px;
}

.member-form-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.member-message-fields {
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr) auto;
  align-items: end;
}

.member-form-grid label,
.member-message-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.member-form-grid label span,
.member-message-fields label span {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.member-form-grid input,
.member-message-fields input,
.member-message-fields textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(24, 171, 164, 0.2);
  border-radius: 8px;
  color: #47352c;
  background: #fffdf7;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.member-form-grid input,
.member-message-fields input {
  min-height: 36px;
  padding: 0 10px;
}

.member-message-fields textarea {
  min-height: 36px;
  padding: 8px 10px;
  line-height: 1.45;
  resize: vertical;
}

.member-form-grid input::file-selector-button {
  min-height: 28px;
  margin-right: 8px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
}

.member-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-form-actions output {
  min-width: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.member-form-actions .member-solid-button,
.member-message-fields .member-solid-button {
  margin-top: 0;
  white-space: nowrap;
}

.member-list-page,
.member-message-page-list {
  display: grid;
  gap: 9px;
}

.member-file-search {
  display: grid;
  gap: 5px;
  margin: 0 0 10px;
}

.member-file-search span {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 900;
}

.member-file-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(24, 171, 164, 0.24);
  border-radius: 999px;
  color: #47352c;
  background: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.member-file-search input::placeholder {
  color: rgba(91, 70, 58, 0.52);
}

.portal-todo-search {
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(24, 171, 164, 0.18);
  border-radius: 8px;
  background: #e9fbff;
}

.portal-todo-search small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.45;
}

.portal-todo-search input {
  background: #fff;
}

.portal-todo-filter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(150px, 0.62fr)) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(24, 171, 164, 0.18);
  border-radius: 8px;
  background: #fffdf7;
}

.portal-todo-filter-panel label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.portal-todo-filter-panel span {
  color: var(--teal);
  font-size: 0.64rem;
  font-weight: 900;
}

.portal-todo-filter-panel input,
.portal-todo-filter-panel select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(24, 171, 164, 0.24);
  border-radius: 8px;
  color: #47352c;
  background: #fff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
}

.portal-todo-filter-keyword input {
  border-radius: 999px;
}

.portal-todo-filter-panel input::placeholder {
  color: rgba(91, 70, 58, 0.52);
}

.portal-todo-filter-panel button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.member-list-page article,
.member-message-page-list article {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(77, 55, 30, 0.08);
}

.member-deliverable-page-list article {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
}

.member-deliverable-page-list img {
  width: 92px;
  height: 76px;
  object-fit: contain;
}

.member-list-page h2,
.member-message-page-list h2 {
  margin: 0;
  color: #47352c;
  font-size: 0.92rem;
  line-height: 1.35;
}

.member-list-page dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 9px 0 0;
}

.member-list-page dl div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(24, 171, 164, 0.12);
  border-radius: 8px;
  background: #fffdf7;
}

.member-list-page dt {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.member-list-page dd {
  margin: 3px 0 0;
  color: #47352c;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.member-message-page-list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-message-page-list span,
.member-message-page-list small {
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 900;
}

.member-message-page-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.55;
}

.portal-todo-list {
  display: grid;
  gap: 9px;
}

.portal-todo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(77, 55, 30, 0.08);
}

.portal-todo-card.is-done {
  background: #fbfbf7;
}

.portal-todo-card-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.portal-todo-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.portal-todo-topline span {
  display: inline-flex;
  width: max-content;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--teal);
  background: #e9fbff;
  font-size: 0.62rem;
  font-weight: 900;
}

.portal-todo-topline small,
.portal-todo-card-main strong {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 900;
}

.portal-todo-card h2 {
  margin: 0;
  color: #47352c;
  font-size: 0.92rem;
  line-height: 1.35;
}

.portal-todo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.55;
}

.portal-todo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.portal-todo-actions button,
.portal-todo-actions span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.portal-todo-actions button {
  border: 0;
  color: #fff;
  background: var(--teal);
  font: inherit;
  cursor: pointer;
}

.portal-todo-actions span {
  color: var(--teal);
  background: #e9fbff;
}

.portal-todo-readonly-status {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.portal-todo-readonly-status span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--teal);
  background: #e9fbff;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.portal-todo-readonly-status.is-done span {
  color: #6b5a4c;
  background: #f4f0e8;
}

.portal-todo-readonly-status small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.member-todo-page-list {
  gap: 12px;
}

.member-todo-group {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(77, 55, 30, 0.08);
}

.member-todo-group.is-done-group {
  background: #fffdf7;
}

.member-todo-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-todo-group-head div {
  display: grid;
  gap: 2px;
}

.member-todo-group-head span {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.member-todo-group-head h2 {
  margin: 0;
  color: #47352c;
  font-size: 0.96rem;
  line-height: 1.35;
}

.member-todo-group-head small {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--teal);
  background: #e9fbff;
  font-size: 0.64rem;
  font-weight: 900;
  white-space: nowrap;
}

.member-todo-group-list .portal-todo-card {
  box-shadow: none;
}

@media (max-width: 1080px) {
  .member-content {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .member-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-page-head h1 {
    font-size: 1.08rem;
  }

  .member-deliverable-page-list article,
  .portal-todo-card,
  .member-form-grid,
  .member-message-fields,
  .member-list-page dl {
    grid-template-columns: 1fr;
  }

  .member-form-head,
  .member-form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-deliverable-page-list img {
    justify-self: start;
    width: 76px;
    height: 66px;
  }
}

@media (min-width: 761px) {
  .member-action-list article {
    min-height: 58px;
    padding: 8px 10px;
  }

  .member-action-list article > span {
    width: 34px;
    height: 34px;
  }

  .member-action-list p {
    display: none;
  }

  .member-action-list strong {
    font-size: 0.78rem;
  }
}

@media (max-width: 1080px) {
  .member-submissions,
  .member-messages,
  .member-schedule,
  .member-contract,
  .member-help {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .member-action-list article {
    grid-template-columns: 1fr;
  }

  .member-submission-list article {
    grid-template-columns: 1fr;
  }

  .member-submission-list a {
    grid-column: 1;
    justify-self: start;
  }

  .member-message-compose {
    grid-template-columns: 1fr;
  }

  .member-message-compose .member-solid-button {
    justify-self: start;
  }

  .portal-todo-filter-panel {
    grid-template-columns: 1fr;
  }
}

/* Client portal size tuning. */
.member-content {
  gap: 10px;
}

.member-project-copy h1 {
  font-size: 1.64rem;
}

.member-project-copy p {
  font-size: 0.78rem;
}

.member-project-meta span {
  min-height: 24px;
  font-size: 0.68rem;
}

.member-project-mascot p {
  font-size: 0.7rem;
}

.member-project-mascot img {
  width: 126px;
  height: 104px;
}

.member-dashboard-grid {
  gap: 9px;
}

.member-progress-card,
.member-panel,
.member-action-card {
  padding: 10px;
}

.member-section-head h2,
.member-action-card h2 {
  font-size: 0.88rem;
}

.member-kicker {
  font-size: 0.64rem;
}

.member-progress {
  padding-top: 2px;
}

.member-progress::before {
  top: 23px;
}

.member-progress li {
  min-height: 62px;
}

.member-progress span {
  width: 31px;
  height: 31px;
}

.member-progress strong {
  font-size: 0.66rem;
}

.member-progress small {
  font-size: 0.62rem;
}

.member-action-list {
  gap: 7px;
}

.member-action-list article {
  gap: 8px;
  padding: 8px;
}

.member-action-list article > span {
  width: 32px;
  height: 32px;
  font-size: 0.62rem;
}

.member-action-list article > a,
.member-submission-list a {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.64rem;
}

.member-deliverable-cards article {
  min-height: 142px;
  padding: 9px;
}

.member-deliverable-cards img {
  height: 58px;
}

.member-deliverable-cards h3,
.member-submission-list strong {
  font-size: 0.72rem;
}

.member-deliverable-cards p,
.member-submission-list p,
.member-thread-list p {
  font-size: 0.66rem;
}

.member-submission-list {
  gap: 7px;
}

.member-submission-list article {
  min-height: 58px;
  padding: 8px;
}

.member-submission-list article > span,
.member-thread-list article > span {
  width: 28px;
  height: 28px;
  font-size: 0.62rem;
}

.member-thread-list article {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 7px;
}

.member-thread-list strong {
  font-size: 0.68rem;
}

.member-thread-list em,
.member-thread-list mark {
  min-height: 18px;
  font-size: 0.58rem;
}

.member-message-compose {
  margin-top: 8px;
  padding: 8px;
}

.member-schedule-split article {
  min-height: 86px;
  padding: 9px;
}

.member-schedule-split strong {
  font-size: 1rem;
}

.member-contract dd:last-child {
  font-size: 0.94rem;
}

@media (max-width: 760px) {
  .member-topbar {
    min-height: 56px;
    padding: 7px 14px;
  }

  .member-brand img {
    width: 36px;
    height: 36px;
  }

  .member-brand strong {
    font-size: 0.9rem;
  }

  .member-brand small {
    font-size: 0.6rem;
  }

  .member-bell {
    width: 30px;
    height: 30px;
  }

  .member-sidebar {
    padding: 8px 10px;
  }

  .member-sidebar a {
    grid-template-columns: 24px auto;
    min-height: 38px;
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .member-sidebar span {
    width: 24px;
    height: 24px;
    font-size: 0.62rem;
  }

  .member-content {
    gap: 9px;
    padding: 12px 14px 24px;
  }

  .member-project-copy h1 {
    font-size: 1.34rem;
  }

  .member-project-copy p {
    font-size: 0.72rem;
  }

  .member-project-meta {
    gap: 6px;
    margin-top: 7px;
  }

  .member-project-meta span {
    min-height: 23px;
    padding: 0 8px;
    font-size: 0.62rem;
  }

  .member-project-mascot {
    grid-template-columns: minmax(0, 1fr) 76px;
    min-height: 64px;
  }

  .member-project-mascot img {
    width: 76px;
    height: 68px;
  }

  .member-project-mascot p {
    padding: 8px 10px;
    font-size: 0.64rem;
  }

  .member-progress-card,
  .member-panel,
  .member-action-card {
    padding: 10px;
  }

  .member-progress li {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    min-height: 38px;
    padding: 6px 7px;
  }

  .member-progress span {
    width: 26px;
    height: 26px;
  }

  .member-progress strong {
    font-size: 0.72rem;
  }

  .member-action-list article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .member-submission-list article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .member-action-list article > span {
    width: 30px;
    height: 30px;
  }

  .member-deliverable-cards article {
    grid-template-columns: 70px minmax(0, 1fr);
    column-gap: 9px;
  }

  .member-deliverable-cards img {
    width: 70px;
    height: 70px;
  }

  .member-message-compose p {
    font-size: 0.66rem;
  }
}

/* PC alignment pass: keep the first dashboard row visually even. */
@media (min-width: 1081px) {
  .member-dashboard-grid {
    align-items: stretch;
  }

  .member-progress-card,
  .member-action-card {
    align-self: stretch;
  }

  .member-progress-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .member-progress-card .member-progress {
    align-self: center;
  }

  .member-action-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .member-action-list {
    align-self: stretch;
    align-content: center;
  }
}

/* Shared production-style file and message UI */
.portal-file-card {
  display: grid;
  min-width: 0;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(77, 55, 30, 0.07);
}

.member-list-page .portal-file-card,
.member-deliverable-page-list .portal-file-card {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 10px;
}

.member-deliverable-page-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-uploaded-list .portal-file-card,
.admin-submission-list .portal-file-card {
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.portal-file-thumb {
  display: grid;
  min-height: 88px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #e9fbff, #fff7de);
}

.admin-file-card .portal-file-thumb {
  min-height: 68px;
}

.portal-file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-file-thumb span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
}

.portal-file-main {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 6px;
}

.portal-file-main h2,
.portal-file-main strong {
  margin: 0;
  color: #47352c;
  font-size: 0.86rem;
  line-height: 1.35;
}

.portal-file-main p,
.portal-file-main small {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.portal-file-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.portal-file-topline span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--teal);
  background: #e9fbff;
  font-size: 0.62rem;
  font-weight: 900;
}

.portal-file-topline small {
  color: #70574b;
  white-space: nowrap;
}

.portal-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.member-file-card .portal-file-actions {
  justify-content: flex-start;
}

.portal-file-actions button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(24, 171, 164, 0.32);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  cursor: pointer;
}

.portal-file-actions button[data-portal-download] {
  color: #fff;
  border-color: transparent;
  background: var(--teal);
}

.portal-file-actions button[data-portal-download]::before {
  content: "↓";
  margin-right: 4px;
  font-weight: 900;
}

.portal-file-actions.is-prominent button[data-portal-download] {
  min-width: 112px;
}

.portal-empty-state {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(24, 171, 164, 0.28);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.6;
}

.portal-empty-state h3,
.portal-empty-state p {
  margin: 0;
}

.portal-empty-state h3 {
  color: #47352c;
  font-size: 0.8rem;
}

.portal-empty-state p {
  margin-top: 4px;
  color: var(--muted);
}

.portal-message-workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 230px;
  height: min(640px, calc(100vh - 210px));
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(77, 55, 30, 0.08);
}

.member-message-workspace {
  grid-template-columns: 240px minmax(0, 1fr) 280px;
}

.admin-message-workspace {
  grid-template-columns: 250px minmax(0, 1fr) 280px;
}

.member-simple-message-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(560px, calc(100vh - 260px));
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(77, 55, 30, 0.08);
}

.member-simple-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(91, 70, 58, 0.1);
  background: #fffdf7;
}

.member-simple-message-head span {
  color: var(--teal);
  font-size: 0.64rem;
  font-weight: 900;
}

.member-simple-message-head h2 {
  margin: 2px 0 0;
  color: #47352c;
  font-size: 1rem;
  line-height: 1.35;
}

.member-simple-message-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.member-simple-message-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: linear-gradient(180deg, #fbfdfb 0%, #eefbff 100%);
}

.member-simple-message-thread > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.member-simple-message-thread .portal-message-bubble {
  max-width: min(560px, 78%);
}

.member-simple-message-thread .portal-message-bubble.is-admin {
  align-self: flex-start;
}

.member-simple-message-thread .portal-message-bubble.is-client {
  align-self: flex-end;
}

.member-simple-message-form.member-message-send-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 0;
  border-top: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.member-simple-message-form input,
.member-simple-message-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(24, 171, 164, 0.2);
  border-radius: 8px;
  color: #47352c;
  background: #fffdf7;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.member-simple-message-form input {
  min-height: 38px;
  padding: 0 10px;
}

.member-simple-message-form textarea {
  min-height: 38px;
  padding: 9px 10px;
  resize: vertical;
}

.portal-conversation-list,
.portal-thread-context {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding: 10px;
  background: #f7fbff;
}

.portal-conversation-list {
  border-right: 1px solid rgba(91, 70, 58, 0.1);
}

.portal-thread-context {
  border-left: 1px solid rgba(91, 70, 58, 0.1);
}

.portal-workspace-label,
.portal-thread-context span,
.portal-thread-head span {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.member-message-page-list .portal-conversation-list article,
.admin-message-list .portal-conversation-list article {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.portal-conversation-list article.is-active {
  border-color: rgba(24, 171, 164, 0.22);
  background: #fff;
}

.portal-conversation-list span,
.portal-conversation-list small {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.portal-conversation-list strong {
  color: #47352c;
  font-size: 0.76rem;
  line-height: 1.35;
}

.portal-conversation-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.4;
}

.portal-thread-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  min-width: 0;
}

.portal-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(91, 70, 58, 0.1);
  background: #fffdf7;
}

.portal-thread-head h2,
.portal-thread-head h3 {
  margin: 2px 0 0;
  color: #47352c;
  font-size: 0.94rem;
  line-height: 1.35;
}

.portal-thread-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.portal-thread-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  background: #fbfdfb;
}

.portal-message-bubble {
  display: grid;
  max-width: min(520px, 82%);
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: #fff;
}

.portal-message-bubble.is-admin {
  justify-self: start;
  background: #eefbff;
}

.portal-message-bubble.is-client {
  justify-self: end;
  background: #fff7de;
}

.portal-message-bubble span,
.portal-message-bubble small {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.portal-message-bubble strong {
  color: #47352c;
  font-size: 0.78rem;
  line-height: 1.35;
}

.portal-message-bubble p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.55;
}

.portal-thread-composer {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border-top: 1px solid rgba(91, 70, 58, 0.1);
  background: #fff;
}

.portal-thread-composer input,
.portal-thread-composer select,
.portal-thread-composer textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(24, 171, 164, 0.2);
  border-radius: 8px;
  color: #47352c;
  background: #fffdf7;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.portal-thread-composer input,
.portal-thread-composer select {
  min-height: 34px;
  padding: 0 9px;
}

.portal-thread-composer textarea {
  min-height: 34px;
  padding: 8px 9px;
  resize: vertical;
}

.portal-thread-context > div {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid rgba(91, 70, 58, 0.09);
  border-radius: 8px;
  background: #fff;
}

.portal-thread-context strong {
  color: #47352c;
  font-size: 0.76rem;
  line-height: 1.35;
}

.portal-thread-context p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.45;
}

.portal-context-file {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 7px;
  border-radius: 8px;
  background: #fffdf7;
}

.portal-context-file span {
  display: grid;
  width: 34px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--teal);
  font-size: 0.56rem;
}

.portal-context-file small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-context-file button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font: inherit;
  font-size: 0.6rem;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .portal-message-workspace,
  .admin-message-workspace {
    grid-template-columns: 1fr;
  }

  .portal-conversation-list,
  .portal-thread-context {
    border: 0;
  }

  .admin-uploaded-list .portal-file-card,
  .admin-submission-list .portal-file-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .admin-file-card .portal-file-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .member-list-page .portal-file-card,
  .member-deliverable-page-list .portal-file-card,
  .admin-uploaded-list .portal-file-card,
  .admin-submission-list .portal-file-card,
  .portal-thread-composer {
    grid-template-columns: 1fr;
  }

  .portal-file-thumb {
    min-height: 120px;
  }

  .portal-message-bubble {
    max-width: 100%;
  }

  .member-simple-message-panel {
    min-height: 0;
  }

  .member-simple-message-form.member-message-send-card {
    grid-template-columns: 1fr;
  }
}

/* Production admin dashboard */
.admin-body {
  min-height: 100vh;
  padding: 8px;
  color: #382922;
  background:
    linear-gradient(180deg, #f7fbff 0%, #fffdf7 44%, #eefbff 100%);
}

.admin-frame {
  overflow: hidden;
  max-width: 1340px;
  min-height: calc(100vh - 16px);
  margin: 0 auto;
  border: 2px solid #2388ff;
  border-radius: 18px;
  background: #f8faf7;
  box-shadow: 0 18px 48px rgba(39, 100, 150, 0.14);
}

.admin-topbar {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(91, 70, 58, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.admin-brand img {
  width: 42px;
  height: 42px;
}

.admin-brand strong {
  font-size: 1.02rem;
}

.admin-brand small {
  color: var(--teal);
  font-size: 0.66rem;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-top-actions > a,
.admin-top-actions > button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(24, 171, 164, 0.28);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-top-actions > button {
  color: #fff;
  border-color: transparent;
  background: var(--pink);
}

.admin-top-actions div {
  display: grid;
  gap: 1px;
  color: #47352c;
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-top-actions span {
  color: var(--muted);
  font-size: 0.66rem;
}

.admin-app {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: calc(100vh - 78px);
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 10px;
  border-right: 1px solid rgba(91, 70, 58, 0.12);
  background: rgba(255, 255, 255, 0.86);
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 7px;
  color: #47352c;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-sidebar a.is-active,
.admin-sidebar a:hover {
  color: #fff;
  background: linear-gradient(90deg, #18b7b0, #12c8c5);
}

.admin-sidebar span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  color: var(--teal);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(24, 171, 164, 0.22);
  font-size: 0.66rem;
}

.admin-sidebar a.is-active span,
.admin-sidebar a:hover span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.admin-body:has(.admin-secondary-panel:target) .admin-sidebar a.is-active {
  color: #47352c;
  background: transparent;
}

.admin-body[data-admin-view]:not([data-admin-view="overview"]) .admin-sidebar a.is-active,
.admin-body:has(.admin-secondary-panel:target) .admin-sidebar a.is-active {
  color: #47352c;
  background: transparent;
}

.admin-body[data-admin-view]:not([data-admin-view="overview"]) .admin-sidebar a.is-active span,
.admin-body:has(.admin-secondary-panel:target) .admin-sidebar a.is-active span {
  color: var(--teal);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(24, 171, 164, 0.22);
}

.admin-body[data-admin-view="projects"] .admin-sidebar a[href="#projects"],
.admin-body[data-admin-view="clients"] .admin-sidebar a[href="#clients"],
.admin-body[data-admin-view="client-todos"] .admin-sidebar a[href="#client-todos"],
.admin-body[data-admin-view="tasks"] .admin-sidebar a[href="#tasks"],
.admin-body[data-admin-view="deliverables"] .admin-sidebar a[href="#deliverables"],
.admin-body[data-admin-view="submissions"] .admin-sidebar a[href="#submissions"],
.admin-body[data-admin-view="messages"] .admin-sidebar a[href="#messages"],
.admin-body[data-admin-view="billing"] .admin-sidebar a[href="#billing"],
.admin-body[data-admin-view="preview"] .admin-sidebar a[href="#preview"],
.admin-body:has(#clients:target) .admin-sidebar a[href="#clients"],
.admin-body:has(#projects:target) .admin-sidebar a[href="#projects"],
.admin-body:has(#client-todos:target) .admin-sidebar a[href="#client-todos"],
.admin-body:has(#tasks:target) .admin-sidebar a[href="#tasks"],
.admin-body:has(#deliverables:target) .admin-sidebar a[href="#deliverables"],
.admin-body:has(#submissions:target) .admin-sidebar a[href="#submissions"],
.admin-body:has(#messages:target) .admin-sidebar a[href="#messages"],
.admin-body:has(#billing:target) .admin-sidebar a[href="#billing"],
.admin-body:has(#preview:target) .admin-sidebar a[href="#preview"] {
  color: #fff;
  background: linear-gradient(90deg, #18b7b0, #12c8c5);
}

.admin-body[data-admin-view="projects"] .admin-sidebar a[href="#projects"] span,
.admin-body[data-admin-view="clients"] .admin-sidebar a[href="#clients"] span,
.admin-body[data-admin-view="client-todos"] .admin-sidebar a[href="#client-todos"] span,
.admin-body[data-admin-view="tasks"] .admin-sidebar a[href="#tasks"] span,
.admin-body[data-admin-view="deliverables"] .admin-sidebar a[href="#deliverables"] span,
.admin-body[data-admin-view="submissions"] .admin-sidebar a[href="#submissions"] span,
.admin-body[data-admin-view="messages"] .admin-sidebar a[href="#messages"] span,
.admin-body[data-admin-view="billing"] .admin-sidebar a[href="#billing"] span,
.admin-body[data-admin-view="preview"] .admin-sidebar a[href="#preview"] span,
.admin-body:has(#clients:target) .admin-sidebar a[href="#clients"] span,
.admin-body:has(#projects:target) .admin-sidebar a[href="#projects"] span,
.admin-body:has(#client-todos:target) .admin-sidebar a[href="#client-todos"] span,
.admin-body:has(#tasks:target) .admin-sidebar a[href="#tasks"] span,
.admin-body:has(#deliverables:target) .admin-sidebar a[href="#deliverables"] span,
.admin-body:has(#submissions:target) .admin-sidebar a[href="#submissions"] span,
.admin-body:has(#messages:target) .admin-sidebar a[href="#messages"] span,
.admin-body:has(#billing:target) .admin-sidebar a[href="#billing"] span,
.admin-body:has(#preview:target) .admin-sidebar a[href="#preview"] span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.admin-mini-card {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(24, 171, 164, 0.18);
  border-radius: 8px;
  background: #e9fbff;
}

.admin-mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.admin-mini-card strong {
  color: #47352c;
  font-size: 1.5rem;
  line-height: 1;
}

.admin-mini-card a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 0.7rem;
  text-decoration: none;
}

.admin-content {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 16px 20px 22px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
  box-shadow: 0 8px 22px rgba(77, 55, 30, 0.07);
}

.admin-hero p,
.admin-section-head p {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 900;
}

.admin-hero h1 {
  margin: 0;
  color: #47352c;
  font-size: 1.5rem;
  line-height: 1.25;
}

.admin-hero span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.6;
}

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

.admin-primary,
.admin-secondary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-primary {
  color: #fff;
  background: var(--pink);
}

.admin-secondary {
  color: var(--teal);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(24, 171, 164, 0.26);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.admin-metrics article,
.admin-panel {
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(77, 55, 30, 0.07);
}

.admin-metrics article {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
}

.admin-metrics span {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 900;
}

.admin-metrics strong {
  color: #47352c;
  font-size: 1.5rem;
  line-height: 1;
}

.admin-metrics p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.admin-workflow article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(77, 55, 30, 0.07);
}

.admin-workflow span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-workflow strong {
  color: #47352c;
  font-size: 0.76rem;
  line-height: 1.35;
}

.admin-workflow p {
  grid-column: 2;
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 9px;
  align-items: start;
}

.admin-overview-grid {
  align-items: stretch;
}

.admin-overview-grid .admin-overview-panel {
  min-height: 320px;
}

.admin-overview-grid .admin-project-panel,
.admin-overview-grid .admin-task-panel {
  grid-column: 1 / -1;
}

.admin-panel {
  padding: 12px;
}

.admin-project-panel,
.admin-task-panel {
  grid-column: span 6;
}

.admin-delivery-panel,
.admin-submission-panel {
  grid-column: span 6;
}

.admin-message-panel {
  grid-column: span 8;
}

.admin-preview-panel {
  grid-column: span 12;
}

.admin-secondary-panel {
  display: none;
}

.admin-content:has(.admin-secondary-panel:target) .admin-hero,
.admin-content:has(.admin-secondary-panel:target) .admin-workflow,
.admin-content:has(.admin-secondary-panel:target) .admin-project-panel,
.admin-content:has(.admin-secondary-panel:target) .admin-task-panel,
.admin-content:has(.admin-secondary-panel:target) .admin-preview-panel {
  display: none;
}

.admin-body[data-admin-view]:not([data-admin-view="overview"]) .admin-hero,
.admin-body[data-admin-view]:not([data-admin-view="overview"]) .admin-workflow,
.admin-body[data-admin-view]:not([data-admin-view="overview"]) .admin-overview-panel {
  display: none;
}

.admin-body[data-admin-view="clients"] #clients,
.admin-body[data-admin-view="projects"] #projects,
.admin-body[data-admin-view="client-todos"] #client-todos,
.admin-body[data-admin-view="tasks"] #tasks,
.admin-body[data-admin-view="deliverables"] #deliverables,
.admin-body[data-admin-view="submissions"] #submissions,
.admin-body[data-admin-view="messages"] #messages,
.admin-body[data-admin-view="billing"] #billing,
.admin-body[data-admin-view="preview"] #preview,
.admin-content:has(#clients:target) #clients,
.admin-content:has(#projects:target) #projects,
.admin-content:has(#client-todos:target) #client-todos,
.admin-content:has(#tasks:target) #tasks,
.admin-content:has(#deliverables:target) #deliverables,
.admin-content:has(#submissions:target) #submissions,
.admin-content:has(#messages:target) #messages,
.admin-content:has(#billing:target) #billing,
.admin-content:has(#preview:target) #preview {
  display: block;
  grid-column: 1 / -1;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-section-head h2 {
  margin: 0;
  color: #47352c;
  font-size: 0.95rem;
}

.admin-flow-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.5;
}

.admin-section-head a {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-page-head button,
.admin-form-actions button,
.admin-management-row button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
}

.admin-page-head button,
.admin-form-actions button:first-child {
  color: #fff;
  border-color: transparent;
  background: var(--pink);
}

.admin-collapse-tab {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid rgba(24, 171, 164, 0.28);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-collapse-tab:hover {
  color: #fff;
  background: var(--teal);
}

.admin-collapsible.is-collapsed {
  min-height: 0 !important;
  align-content: start;
}

.admin-collapsible.is-collapsed > :not(.admin-section-head):not(.admin-card-head):not(.member-section-head):not(.admin-customer-head):not(.admin-client-project-head):not(.admin-kanban-head) {
  display: none !important;
}

.admin-collapsible.is-collapsed .admin-collapse-tab {
  color: #fff;
  background: var(--teal);
}

.admin-manage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 10px;
}

.admin-client-todo-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-form-card,
.admin-management-card {
  padding: 12px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: #fffdf7;
}

.admin-card-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-card-head p {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 900;
}

.admin-card-head h3 {
  margin: 0;
  color: #47352c;
  font-size: 0.9rem;
  line-height: 1.35;
}

.admin-card-head > span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}

.admin-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.55;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-form-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(91, 70, 58, 0.08);
  border-radius: 8px;
  background: #fff;
}

.admin-form-grid span {
  color: var(--teal);
  font-size: 0.64rem;
  font-weight: 900;
}

.admin-form-grid strong {
  overflow: hidden;
  color: #47352c;
  font-size: 0.74rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-project-create-screen {
  margin-bottom: 10px;
}

.admin-company-tags {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(24, 171, 164, 0.16);
  border-radius: 8px;
  background: #fffdf7;
}

.admin-company-tags > span {
  color: var(--teal);
  font-size: 0.64rem;
  font-weight: 900;
}

.admin-company-tags div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-company-tags button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(24, 171, 164, 0.24);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
}

.admin-company-tags button.is-selected {
  color: #fff;
  background: var(--teal);
}

.admin-company-tags small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.5;
}

.admin-milestone-template {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(24, 171, 164, 0.16);
  border-radius: 8px;
  background: #e9fbff;
}

.admin-milestone-template span {
  color: var(--teal);
  font-size: 0.64rem;
  font-weight: 900;
}

.admin-milestone-template strong {
  color: #47352c;
  font-size: 0.74rem;
  line-height: 1.45;
}

.admin-template-options {
  display: grid;
  gap: 8px;
}

.admin-template-options article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: #fff;
}

.admin-template-options article.is-selected {
  border-color: rgba(24, 171, 164, 0.34);
  background: #e9fbff;
}

.admin-template-options strong {
  color: #47352c;
  font-size: 0.76rem;
  line-height: 1.35;
}

.admin-template-options span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-milestone-stack {
  display: grid;
  gap: 7px;
}

.admin-milestone-stack article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: #fff;
}

.admin-milestone-stack article > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #dce9ef;
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}

.admin-milestone-stack article.is-done > span,
.admin-milestone-stack article.is-current > span {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.admin-milestone-stack article.is-current {
  border-color: rgba(244, 196, 65, 0.48);
  background: #fff4d4;
}

.admin-milestone-stack strong {
  display: block;
  color: #47352c;
  font-size: 0.76rem;
  line-height: 1.35;
}

.admin-milestone-stack p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
}

.admin-milestone-stack button,
.admin-kanban-column > button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: #fffdf7;
}

.admin-board-toolbar p {
  width: min(520px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.55;
}

.admin-board-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 10px;
}

.admin-board-rules span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--teal);
  background: #e9fbff;
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-task-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 0.44fr)) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(24, 171, 164, 0.16);
  border-radius: 8px;
  background: #fffdf7;
}

.admin-task-filter-panel .admin-file-search {
  margin: 0;
}

.admin-task-filter-panel label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-task-filter-panel label > span,
.admin-task-quick-add label > span {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-task-filter-panel select,
.admin-task-quick-add input,
.admin-task-quick-add select,
.admin-task-inbox-add input {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(24, 171, 164, 0.22);
  border-radius: 8px;
  color: #47352c;
  background: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-task-filter-panel button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-sync-pill {
  display: grid;
  gap: 1px;
  min-width: 92px;
  padding: 7px 10px;
  border: 1px solid rgba(24, 171, 164, 0.18);
  border-radius: 8px;
  background: #e9fbff;
}

.admin-sync-pill span {
  color: var(--teal);
  font-size: 0.6rem;
  font-weight: 900;
}

.admin-sync-pill strong {
  color: #47352c;
  font-size: 0.72rem;
  line-height: 1.2;
}

.admin-task-quick-add {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(105px, 0.5fr) minmax(130px, 0.65fr) minmax(120px, 0.55fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(24, 171, 164, 0.16);
  border-radius: 8px;
  background: #e9fbff;
}

.admin-task-quick-add label {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 8px;
  background: #fff;
}

.admin-task-quick-add span {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-task-quick-add button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-task-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 0.27fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.admin-task-workspace[data-show-inbox="false"] {
  grid-template-columns: minmax(0, 1fr);
}

.admin-task-workspace[data-show-board="false"] {
  grid-template-columns: minmax(0, 1fr);
}

.admin-task-workspace[data-show-inbox="false"] .admin-task-inbox,
.admin-task-workspace[data-show-board="false"] .admin-kanban-board {
  display: none;
}

.admin-task-inbox {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 430px;
  padding: 10px;
  border: 1px solid rgba(24, 171, 164, 0.16);
  border-radius: 8px;
  background: #eef7ff;
}

.admin-task-inbox-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.admin-task-inbox-head p {
  margin: 0 0 3px;
  color: var(--teal);
  font-size: 0.6rem;
  font-weight: 900;
}

.admin-task-inbox-head h3 {
  margin: 0;
  color: #47352c;
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-task-inbox-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.35;
}

.admin-task-inbox-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.admin-task-inbox-add button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-task-inbox-list {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 292px;
}

.admin-kanban-board {
  display: grid;
  overflow-x: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  align-items: start;
  padding-bottom: 4px;
}

.admin-kanban-column {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 430px;
  padding: 10px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: #fffdf7;
}

.admin-kanban-column.is-custom {
  background: #fff8fb;
}

.admin-kanban-column.is-add-list {
  min-height: 260px;
  border-style: dashed;
  background: #fff;
}

.admin-kanban-column.is-add-list > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.55;
}

.admin-kanban-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.admin-kanban-head p {
  margin: 0 0 3px;
  color: var(--teal);
  font-size: 0.6rem;
  font-weight: 900;
}

.admin-kanban-head h3 {
  margin: 0;
  color: #47352c;
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-kanban-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.35;
}

.admin-kanban-head span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal);
  background: #e9fbff;
  font-size: 0.64rem;
  font-weight: 900;
}

.admin-task-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 5px;
  min-height: 98px;
  padding: 9px;
  border: 1px solid rgba(91, 70, 58, 0.11);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(77, 55, 30, 0.06);
}

.admin-task-card[draggable="true"] {
  cursor: pointer;
}

.admin-task-card.is-dragging {
  cursor: grabbing;
  opacity: 0.46;
  transform: rotate(1deg);
}

.admin-task-card.is-filtered-out {
  display: none;
}

.admin-kanban-column.is-drag-over,
.admin-task-inbox-list.is-drag-over {
  border-color: rgba(24, 171, 164, 0.48);
  background: #e9fbff;
}

.admin-task-card.is-focus {
  border-color: rgba(24, 171, 164, 0.32);
  background: #e9fbff;
}

.admin-task-card.is-done {
  opacity: 0.78;
}

.admin-task-card > button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-top: 2px;
  border: 2px solid #dce9ef;
  border-radius: 50%;
  background: #fff;
}

.admin-task-card.is-done > button {
  border-color: var(--green);
  background: var(--green);
}

.admin-task-card.is-done > button::before {
  content: "";
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.admin-task-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-task-card time {
  display: inline-flex;
  width: max-content;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #7a5500;
  background: #fff4d4;
  font-size: 0.6rem;
  font-weight: 900;
}

.admin-task-card strong {
  color: #47352c;
  font-size: 0.74rem;
  line-height: 1.4;
}

.admin-task-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.45;
}

.admin-task-card small {
  color: var(--teal);
  font-size: 0.6rem;
  font-weight: 900;
}

.admin-task-view-switcher {
  position: sticky;
  z-index: 4;
  bottom: 12px;
  display: flex;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 8px;
  border: 1px solid rgba(91, 70, 58, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(77, 55, 30, 0.14);
}

.admin-task-view-switcher button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #5b463a;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-task-view-switcher button.is-active {
  color: var(--teal);
  background: #e9fbff;
}

.is-task-editor-open {
  overflow: hidden;
}

.admin-task-editor[hidden] {
  display: none;
}

.admin-task-editor {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-task-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(54, 42, 34, 0.34);
  backdrop-filter: blur(3px);
}

.admin-task-editor-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(91, 70, 58, 0.14);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 24px 60px rgba(77, 55, 30, 0.24);
}

.admin-task-editor-head,
.admin-task-editor-actions,
.admin-task-editor-actions > div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-task-editor-head p {
  margin: 0 0 3px;
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 900;
}

.admin-task-editor-head h3 {
  margin: 0;
  color: #47352c;
  font-size: 1.28rem;
  line-height: 1.3;
}

.admin-task-editor-head small {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  margin-top: 6px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--teal);
  background: #e9fbff;
  font-size: 0.66rem;
  font-weight: 900;
}

.admin-task-editor label {
  display: grid;
  gap: 6px;
}

.admin-task-editor label span {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 900;
}

.admin-task-editor input,
.admin-task-editor select,
.admin-task-editor textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(24, 171, 164, 0.22);
  border-radius: 8px;
  color: #47352c;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-task-editor textarea {
  min-height: 110px;
  padding-top: 10px;
  resize: vertical;
  line-height: 1.55;
}

.admin-task-editor-title input {
  min-height: 50px;
  font-size: 1rem;
  font-weight: 900;
}

.admin-task-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-task-editor button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-task-editor button[type="submit"] {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.admin-task-editor .is-danger {
  color: var(--pink);
  border-color: rgba(239, 86, 141, 0.42);
  background: #fff8fb;
}

.admin-management-card {
  margin-top: 10px;
}

.admin-customer-list {
  display: grid;
  gap: 10px;
}

.admin-customer-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.admin-customer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-customer-head span,
.admin-customer-counts span,
.admin-customer-projects > span {
  color: var(--teal);
  font-size: 0.64rem;
  font-weight: 900;
}

.admin-customer-head h3 {
  margin: 2px 0 0;
  color: #47352c;
  font-size: 1rem;
  line-height: 1.35;
}

.admin-customer-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.45;
}

.admin-customer-head > strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #18aba4;
  background: rgba(24, 171, 164, 0.1);
  font-size: 0.68rem;
  line-height: 1.3;
  white-space: nowrap;
}

.admin-customer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 10px;
  align-items: stretch;
}

.admin-customer-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.admin-customer-info label,
.admin-customer-counts a,
.admin-customer-projects a {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(24, 171, 164, 0.14);
  border-radius: 8px;
  background: #fffdf7;
}

.admin-customer-info label {
  display: grid;
  gap: 5px;
}

.admin-customer-info span {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-customer-info strong,
.admin-customer-info input,
.admin-customer-info textarea {
  color: #47352c;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.45;
}

.admin-customer-info input,
.admin-customer-info textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(24, 171, 164, 0.2);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.admin-customer-info input {
  min-height: 34px;
  padding: 0 9px;
}

.admin-customer-info textarea {
  min-height: 62px;
  padding: 8px 9px;
  resize: vertical;
}

.admin-customer-info strong {
  overflow-wrap: anywhere;
}

.admin-customer-wide {
  grid-column: span 2;
}

.admin-customer-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-customer-counts a,
.admin-customer-projects a {
  display: grid;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.admin-customer-counts strong {
  color: #47352c;
  font-size: 1.25rem;
  line-height: 1;
}

.admin-customer-projects {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px dashed rgba(91, 70, 58, 0.16);
}

.admin-customer-projects > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.admin-customer-projects strong {
  color: #47352c;
  font-size: 0.76rem;
  line-height: 1.35;
}

.admin-customer-projects small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.4;
}

.admin-customer-note {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: #47352c;
  background: #e9fbff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.55;
}

.admin-storage-card {
  display: grid;
  gap: 10px;
}

.admin-storage-status {
  display: grid;
  gap: 10px;
}

.admin-storage-status > div {
  padding: 10px;
  border-radius: 8px;
  background: #e9fbff;
}

.admin-storage-status > div.is-error {
  background: #fff1f6;
}

.admin-storage-status strong {
  color: #47352c;
  font-size: 0.82rem;
}

.admin-storage-status p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.5;
}

.admin-storage-status dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.admin-storage-status dl div {
  padding: 9px 10px;
  border: 1px solid rgba(24, 171, 164, 0.14);
  border-radius: 8px;
  background: #fffdf7;
}

.admin-storage-status dt {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-storage-status dd {
  margin: 4px 0 0;
  color: #47352c;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-storage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-storage-actions button,
.admin-storage-actions label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.admin-storage-actions button {
  color: #fff;
  background: var(--teal);
}

.admin-storage-actions input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 1080px) {
  .admin-customer-head {
    flex-direction: column;
  }

  .admin-customer-grid,
  .admin-customer-info {
    grid-template-columns: 1fr;
  }

  .admin-customer-wide {
    grid-column: auto;
  }

  .admin-customer-head > strong {
    white-space: normal;
  }

  .admin-storage-status dl {
    grid-template-columns: 1fr;
  }
}

.admin-client-project-grid {
  display: grid;
  gap: 10px;
}

.admin-client-project-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: #fff;
}

.admin-client-project-card.is-focus {
  border-color: rgba(24, 171, 164, 0.28);
  background: linear-gradient(180deg, #fff 0%, #f2fdff 100%);
}

.admin-client-project-card[data-admin-open-milestones] {
  cursor: pointer;
}

.admin-client-project-card[data-admin-open-milestones] select,
.admin-client-project-card[data-admin-open-milestones] button {
  cursor: pointer;
}

.admin-client-project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-client-project-head p {
  margin: 0 0 3px;
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 900;
}

.admin-client-project-head h4 {
  margin: 0;
  color: #47352c;
  font-size: 0.9rem;
  line-height: 1.35;
}

.admin-client-project-head button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-client-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--milestone-count, 5), minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 6px 4px 0;
  list-style: none;
}

.admin-client-progress::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #dce9ef;
}

.admin-client-progress li {
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 72px;
  text-align: center;
}

.admin-client-progress span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid #dce9ef;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(77, 55, 30, 0.08);
}

.admin-client-progress .is-done span,
.admin-client-progress .is-current span {
  border-color: var(--teal);
  background: var(--teal);
}

.admin-client-progress .is-done span::before {
  content: "";
  width: 11px;
  height: 6px;
  border-bottom: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.admin-client-progress .is-current span::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 2px;
  transform: rotate(-35deg);
}

.admin-client-progress .is-current {
  border-radius: 8px;
  background: #fff4d4;
}

.admin-client-progress strong {
  overflow: hidden;
  width: 100%;
  color: #47352c;
  font-size: 0.68rem;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.admin-client-progress small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.admin-client-progress .is-current strong,
.admin-client-progress .is-current small {
  color: var(--teal);
}

.admin-project-milestone-screen {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(24, 171, 164, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f2fdff 100%);
}

.admin-project-edit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-project-edit-actions span {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 900;
}

.admin-project-edit-actions h4 {
  margin: 2px 0 0;
  color: #47352c;
  font-size: 0.92rem;
  line-height: 1.35;
}

.admin-project-edit-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.admin-milestone-editor {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(24, 171, 164, 0.12);
  border-radius: 8px;
  background: #fbfdfb;
}

.admin-milestone-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-milestone-editor-head span {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 900;
}

.admin-milestone-editor-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.45;
}

.admin-milestone-editor-head button,
.admin-milestone-edit-row button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 900;
  cursor: pointer;
}

.admin-milestone-edit-row button:disabled {
  color: #9aa7ad;
  border-color: #dce9ef;
  cursor: default;
}

.admin-milestone-edit-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(150px, 0.42fr) auto;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px solid rgba(91, 70, 58, 0.09);
  border-radius: 8px;
  background: #fff;
}

.admin-milestone-edit-row > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-milestone-edit-row label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-milestone-edit-row small {
  color: var(--teal);
  font-size: 0.58rem;
  font-weight: 900;
}

.admin-milestone-edit-row input {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(24, 171, 164, 0.2);
  border-radius: 8px;
  color: #47352c;
  background: #fffdf7;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
}

.admin-management-list {
  display: grid;
  gap: 7px;
}

.admin-management-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(91, 70, 58, 0.11);
  border-radius: 8px;
  background: #fff;
}

.admin-management-row.is-focus {
  border-color: rgba(24, 171, 164, 0.32);
  background: #e9fbff;
}

.admin-management-row div {
  min-width: 0;
}

.admin-management-row strong {
  display: block;
  overflow: hidden;
  color: #47352c;
  font-size: 0.78rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-management-row p {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-management-row small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-status.is-working {
  color: #7a5500;
  background: var(--yellow);
}

.admin-status.is-waiting,
.admin-status.is-needed {
  background: var(--pink);
}

.admin-status.is-done {
  background: var(--green);
}

.admin-project-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-project-form label {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fffdf7;
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 900;
}

.admin-project-form span {
  color: #47352c;
  font-size: 0.76rem;
}

.admin-template-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.admin-project-current {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(24, 171, 164, 0.22);
  border-radius: 8px;
  background: #e9fbff;
}

.admin-project-current > span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 0.64rem;
  font-weight: 900;
}

.admin-project-current strong,
.admin-project-list strong {
  display: block;
  color: #47352c;
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-project-current p,
.admin-project-list p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.admin-project-current a,
.admin-project-list span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font-size: 0.64rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-template-strip article {
  padding: 10px;
  border: 1px solid rgba(91, 70, 58, 0.12);
  border-radius: 8px;
  background: #fff;
}

.admin-template-strip article.is-selected {
  border-color: rgba(24, 171, 164, 0.36);
  background: #e9fbff;
}

.admin-project-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.admin-project-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(91, 70, 58, 0.11);
  border-radius: 8px;
  background: #fffdf7;
}

.admin-project-list article.is-current {
  border-color: rgba(24, 171, 164, 0.3);
  background: #e9fbff;
}

.admin-template-strip strong,
.admin-task-list strong,
.admin-table strong,
.admin-message-list strong,
.admin-preview-card strong {
  display: block;
  color: #47352c;
  font-size: 0.76rem;
  line-height: 1.35;
}

.admin-template-strip p,
.admin-task-list p,
.admin-table p,
.admin-message-list p,
.admin-preview-panel > p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.45;
}

.admin-task-list,
.admin-table,
.admin-message-list {
  display: grid;
  gap: 7px;
}

.admin-message-compose,
.admin-deliverable-form {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(91, 70, 58, 0.11);
  border-radius: 8px;
  background: #fff;
}

.admin-message-compose-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.admin-message-compose-head p {
  margin: 0;
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-message-compose-head h3 {
  margin: 2px 0 0;
  color: #47352c;
  font-size: 0.84rem;
  line-height: 1.3;
}

.admin-message-compose-head > span {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-message-compose-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(160px, 0.68fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.admin-deliverable-compose-grid {
  grid-template-columns: minmax(210px, 1fr) minmax(120px, 0.45fr) minmax(180px, 0.9fr) minmax(180px, 0.8fr) auto;
}

.admin-client-todo-compose-grid {
  grid-template-columns: minmax(240px, 1fr) minmax(120px, 0.42fr) minmax(150px, 0.45fr) minmax(260px, 1.1fr) auto;
}

.admin-client-todo-wide {
  grid-column: span 4;
}

.admin-client-todo-compose-grid button {
  justify-self: end;
  min-width: 132px;
}

.admin-client-todo-list .portal-todo-card {
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
  box-shadow: none;
}

.admin-client-todo-list .portal-todo-card-main {
  grid-template-columns: minmax(0, 1fr);
}

.admin-message-compose-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-message-compose-grid label span {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-message-compose-grid input,
.admin-message-compose-grid select,
.admin-message-compose-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(24, 171, 164, 0.2);
  border-radius: 8px;
  color: #47352c;
  background: #fffdf7;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-message-compose-grid input::file-selector-button {
  min-height: 26px;
  margin-right: 8px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-message-compose-grid input,
.admin-message-compose-grid select {
  min-height: 34px;
  padding: 0 9px;
}

.admin-message-compose-grid textarea {
  min-height: 34px;
  padding: 8px 9px;
  line-height: 1.45;
  resize: vertical;
}

.admin-message-compose-grid button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.admin-project-step-select {
  display: grid;
  gap: 4px;
  justify-items: end;
  min-width: 150px;
}

.admin-project-step-select span {
  color: var(--teal);
  font-size: 0.58rem;
  font-weight: 900;
}

.admin-project-step-select select {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(24, 171, 164, 0.24);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 900;
}

.admin-task-list article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(91, 70, 58, 0.11);
  border-radius: 8px;
  background: #fffdf7;
}

.admin-task-list button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid #dce9ef;
  border-radius: 50%;
  background: #fff;
}

.admin-task-list .is-done button,
.admin-task-list .is-current button {
  border-color: var(--teal);
  background: var(--teal);
}

.admin-task-list .is-done button::before {
  content: "";
  width: 10px;
  height: 6px;
  border-bottom: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.admin-task-list article > span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-task-list .is-current > span {
  color: #7a5500;
  background: #fff4d4;
}

.admin-task-list .is-overdue button {
  border-color: var(--pink);
  background: var(--pink);
}

.admin-task-list .is-overdue > span {
  color: #fff;
  background: var(--pink);
}

.admin-task-list .is-done > span {
  color: #fff;
  background: var(--green);
}

.admin-deliverable-layout {
  display: grid;
  gap: 10px;
}

.admin-deliverable-upload,
.admin-uploaded-view,
.admin-submission-view {
  padding: 12px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: #fffdf7;
}

.admin-target-selectors {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-target-selectors div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(24, 171, 164, 0.14);
  border-radius: 8px;
  background: #fff;
}

.admin-target-selectors span {
  min-width: 96px;
  color: var(--teal);
  font-size: 0.64rem;
  font-weight: 900;
}

.admin-target-selectors button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(24, 171, 164, 0.24);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 900;
}

.admin-target-selectors button.is-selected {
  color: #fff;
  background: var(--teal);
}

.admin-deliverable-fields {
  margin-bottom: 10px;
}

.admin-file-drop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 86px;
  padding: 12px;
  border: 1px dashed rgba(24, 171, 164, 0.42);
  border-radius: 8px;
  background: #e9fbff;
}

.admin-file-drop strong {
  display: block;
  color: #47352c;
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-file-drop p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.5;
}

.admin-file-drop button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-uploaded-list {
  display: grid;
  gap: 7px;
}

.admin-file-search {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.admin-file-search span {
  color: var(--teal);
  font-size: 0.64rem;
  font-weight: 900;
}

.admin-file-search input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(24, 171, 164, 0.24);
  border-radius: 999px;
  color: #47352c;
  background: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-file-search input::placeholder {
  color: rgba(91, 70, 58, 0.52);
}

.admin-uploaded-list article {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: #fff;
}

.admin-client-project-card[hidden],
.admin-file-search[hidden],
.admin-kanban-column[hidden],
.admin-kanban-board[hidden],
.admin-task-inbox[hidden],
.admin-message-list article[hidden],
.admin-task-card[hidden],
.admin-uploaded-list article[hidden],
.admin-search-empty[hidden] {
  display: none;
}

.admin-file-category {
  display: inline-flex;
  width: max-content;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--teal);
  background: #e9fbff;
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-uploaded-list strong {
  color: #47352c;
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-uploaded-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.45;
}

.admin-uploaded-list small {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-submission-list {
  gap: 8px;
}

.admin-file-row-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.admin-file-row-head time {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-file-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 5px 0 0;
}

.admin-file-meta div {
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(24, 171, 164, 0.12);
  border-radius: 8px;
  background: #fffdf7;
}

.admin-file-meta dt {
  color: var(--teal);
  font-size: 0.58rem;
  font-weight: 900;
}

.admin-file-meta dd {
  margin: 2px 0 0;
  color: #47352c;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-search-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed rgba(24, 171, 164, 0.28);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-client-project-grid > .admin-search-empty,
.admin-kanban-board > .admin-search-empty,
.admin-task-workspace > .admin-search-empty {
  grid-column: 1 / -1;
  width: 100%;
}

.admin-table article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(91, 70, 58, 0.11);
  border-radius: 8px;
  background: #fffdf7;
}

.admin-table span,
.admin-message-list span,
.admin-filter-row span,
.admin-filter-row button {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-table span {
  color: #fff;
  background: var(--teal);
}

.admin-table .is-waiting,
.admin-table .is-needed {
  background: var(--pink);
}

.admin-table .is-working {
  color: #7a5500;
  background: var(--yellow);
}

.admin-table .is-approved {
  background: var(--green);
}

.admin-table button,
.admin-message-list button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 900;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.admin-filter-row span {
  padding: 0 9px;
  color: var(--teal);
  background: #e9fbff;
}

.admin-filter-row button {
  padding: 0 10px;
  border: 0;
  color: var(--teal);
  background: #e9fbff;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-filter-row .is-active {
  color: #fff;
  background: var(--teal);
}

.admin-message-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(91, 70, 58, 0.11);
  border-radius: 8px;
  background: #fffdf7;
}

.admin-message-list span {
  width: max-content;
  margin-bottom: 5px;
  padding: 0 9px;
  color: var(--teal);
  background: #e9fbff;
}

.admin-preview-card {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #e9fbff;
}

.admin-preview-card span {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 900;
}

.admin-preview-card small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .admin-body {
    padding: 0;
  }

  .admin-frame {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(91, 70, 58, 0.12);
  }

  .admin-sidebar nav {
    display: flex;
    overflow-x: auto;
    min-width: max-content;
  }

  .admin-sidebar a {
    white-space: nowrap;
  }

  .admin-mini-card {
    display: none;
  }

  .admin-grid,
  .admin-workflow,
  .admin-metrics,
  .admin-manage-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-project-panel,
  .admin-task-panel,
  .admin-delivery-panel,
  .admin-submission-panel,
  .admin-message-panel,
  .admin-preview-panel {
    grid-column: span 2;
  }

  .admin-board-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-task-quick-add {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-task-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-task-filter-panel button {
    justify-self: start;
  }

  .admin-task-workspace {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .admin-task-quick-add button {
    justify-self: start;
  }

  .admin-kanban-board {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    padding-bottom: 4px;
  }
}

@media (max-width: 760px) {
  .admin-topbar {
    min-height: 58px;
    padding: 8px 14px;
  }

  .admin-top-actions div,
  .admin-top-actions > a {
    display: none;
  }

  .admin-brand img {
    width: 36px;
    height: 36px;
  }

  .admin-brand strong {
    font-size: 0.9rem;
  }

  .admin-content {
    padding: 12px 14px 24px;
  }

  .admin-hero,
  .admin-workflow,
  .admin-metrics,
  .admin-grid,
  .admin-manage-layout,
  .admin-client-todo-layout,
  .admin-task-filter-panel,
  .admin-task-quick-add,
  .admin-file-meta,
  .admin-form-grid,
  .admin-message-compose-grid,
  .admin-deliverable-compose-grid,
  .admin-client-todo-compose-grid,
  .admin-project-form,
  .admin-template-strip {
    grid-template-columns: 1fr;
  }

  .admin-client-todo-wide {
    grid-column: auto;
  }

  .admin-client-todo-list .portal-todo-card,
  .portal-todo-card {
    grid-template-columns: 1fr;
  }

  .portal-todo-readonly-status {
    justify-items: start;
  }

  .admin-hero-actions {
    justify-content: start;
  }

  .admin-hero h1 {
    font-size: 1.24rem;
  }

  .admin-metrics article {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-metrics p {
    grid-column: auto;
  }

  .admin-project-panel,
  .admin-task-panel,
  .admin-delivery-panel,
  .admin-submission-panel,
  .admin-message-panel,
  .admin-preview-panel {
    grid-column: 1;
  }

  .admin-table article,
  .admin-message-list article,
  .admin-management-row,
  .admin-milestone-stack article,
  .admin-project-current,
  .admin-project-list article {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-table span,
  .admin-message-list span,
  .admin-status,
  .admin-project-current > span,
  .admin-project-current a,
  .admin-project-list span {
    width: max-content;
    max-width: 100%;
    justify-self: start;
    padding: 0 9px;
  }

  .admin-table button,
  .admin-message-list button,
  .admin-management-row button,
  .admin-milestone-stack button {
    justify-self: start;
  }

  .admin-template-options article {
    grid-template-columns: 1fr;
  }

  .admin-message-compose-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-card-head,
  .admin-client-project-head,
  .admin-project-edit-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-card-head > span {
    text-align: left;
  }

  .admin-client-progress {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0;
  }

  .admin-client-progress::before {
    display: none;
  }

  .admin-client-progress li {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    justify-items: start;
    align-items: center;
    min-height: 42px;
    padding: 6px 7px;
    border: 1px solid rgba(91, 70, 58, 0.1);
    border-radius: 8px;
    background: #fffdf7;
    text-align: left;
  }

  .admin-client-progress span {
    width: 26px;
    height: 26px;
  }

  .admin-client-progress strong {
    font-size: 0.72rem;
  }

  .admin-milestone-edit-row {
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
  }

  .admin-milestone-edit-row button {
    grid-column: 2;
    justify-self: start;
  }

  .admin-kanban-board {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scroll-snap-type: x proximity;
  }

  .admin-kanban-column {
    min-width: 238px;
    min-height: 360px;
    scroll-snap-align: start;
  }

  .admin-task-workspace {
    grid-template-columns: 1fr;
  }

  .admin-task-inbox {
    min-height: 300px;
  }

  .admin-task-editor {
    align-items: end;
    padding: 10px;
  }

  .admin-task-editor-dialog {
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .admin-task-editor-grid {
    grid-template-columns: 1fr;
  }

  .admin-task-editor-head,
  .admin-task-editor-actions {
    flex-direction: column;
  }

  .admin-task-editor-actions,
  .admin-task-editor-actions > div {
    width: 100%;
  }

  .admin-task-editor button {
    flex: 1;
  }

  .admin-task-filter-panel button,
  .admin-task-quick-add button {
    justify-self: stretch;
  }

  .admin-file-drop {
    grid-template-columns: 1fr;
  }

  .admin-file-drop button {
    justify-self: stretch;
  }

  .admin-management-row strong,
  .admin-management-row p {
    white-space: normal;
  }
}

.member-billing-layout,
.admin-billing-layout {
  display: grid;
  gap: 12px;
}

.member-billing-layout {
  grid-template-columns: 1fr;
}

.member-invoice-section {
  grid-column: 1 / -1;
}

.member-contract-summary-card,
.member-invoice-card,
.admin-contract-editor-card,
.admin-invoice-card {
  padding: 12px;
  border: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(77, 55, 30, 0.07);
}

.member-contract-summary-card {
  display: grid;
  gap: 8px;
}

.member-contract-summary-card > span,
.member-invoice-head span,
.admin-billing-card-head span {
  display: inline-flex;
  width: max-content;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--teal);
  background: #e9fbff;
  font-size: 0.62rem;
  font-weight: 900;
}

.member-contract-summary-card h2,
.member-invoice-head h2,
.admin-billing-card-head h4 {
  margin: 0;
  color: #47352c;
  font-size: 0.94rem;
  line-height: 1.35;
}

.member-contract-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.5;
}

.member-contract-summary-card dl,
.member-invoice-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.member-invoice-card dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.member-contract-summary-card dl div,
.member-invoice-card dl div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(24, 171, 164, 0.12);
  border-radius: 8px;
  background: #fffdf7;
}

.member-contract-summary-card dt,
.member-invoice-card dt {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.member-contract-summary-card dd,
.member-invoice-card dd {
  margin: 3px 0 0;
  color: #47352c;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.member-invoice-list,
.admin-contract-editor-list,
.admin-invoice-list {
  display: grid;
  gap: 10px;
}

.admin-invoice-upload-form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(24, 171, 164, 0.14);
  border-radius: 8px;
  background: #fffdf7;
}

.admin-invoice-form-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-invoice-form-head div {
  display: grid;
  gap: 3px;
}

.admin-invoice-form-head span,
.admin-invoice-summary span {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-invoice-form-head strong {
  color: #47352c;
  font-size: 0.9rem;
  line-height: 1.35;
}

.admin-invoice-form-head small {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.45;
}

.admin-invoice-upload-form > button {
  justify-self: start;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 900;
}

.admin-invoice-summary {
  display: grid;
  gap: 3px;
  justify-items: end;
}

.admin-invoice-summary em {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #18aba4;
  background: rgba(24, 171, 164, 0.1);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
}

.member-invoice-head,
.admin-billing-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.member-invoice-head strong,
.admin-billing-card-head strong {
  color: #47352c;
  font-size: 1rem;
  line-height: 1.35;
  white-space: nowrap;
}

.member-invoice-card.is-paid,
.admin-invoice-card.is-paid {
  border-color: rgba(139, 207, 75, 0.28);
}

.member-invoice-card.is-waiting,
.admin-invoice-card.is-waiting {
  border-color: rgba(248, 95, 145, 0.24);
}

.member-invoice-card.is-issued,
.admin-invoice-card.is-issued {
  border-color: rgba(24, 171, 164, 0.22);
}

.portal-invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.portal-invoice-actions button,
.portal-invoice-paid {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
}

.portal-invoice-actions button:not(:disabled):first-child {
  color: #fff;
  background: var(--teal);
}

.portal-invoice-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.member-invoice-card dd .portal-invoice-actions {
  margin-top: 0;
}

.member-billing-mini-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.45;
}

.apply-body {
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff8e8 0%, #f6fffc 58%, #fffdf7 100%);
}

.apply-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(18px);
}

.apply-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.apply-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid rgba(91, 70, 58, 0.12);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 18px 40px rgba(77, 55, 30, 0.08);
}

.apply-hero h1 {
  margin: 4px 0 10px;
  color: #47352c;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.apply-hero p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.75;
}

.apply-hero img {
  width: min(190px, 26vw);
  min-width: 120px;
}

.apply-form {
  display: grid;
  gap: 14px;
}

.apply-panel {
  padding: 18px;
  border: 1px solid rgba(91, 70, 58, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(77, 55, 30, 0.07);
}

.apply-section-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.apply-section-head > span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #18aba4;
  font-size: 0.8rem;
  font-weight: 900;
}

.apply-section-head h2 {
  margin: 0;
  color: #47352c;
  font-size: 1.2rem;
  line-height: 1.35;
}

.apply-section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.6;
}

.apply-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.apply-field-grid label,
.apply-coupon-row label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.apply-wide {
  grid-column: 1 / -1;
}

.apply-field-grid input,
.apply-coupon-row input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid rgba(47, 42, 39, 0.13);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
  font-weight: 800;
}

.apply-field-grid input:focus,
.apply-coupon-row input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(20, 184, 176, 0.16);
}

.apply-plan-grid,
.apply-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.apply-payment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.apply-plan-card,
.apply-payment-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 168px;
  padding: 14px;
  border: 2px solid rgba(91, 70, 58, 0.12);
  border-radius: 8px;
  background: #fffdf7;
  cursor: pointer;
}

.apply-payment-card {
  min-height: 138px;
}

.apply-plan-card input,
.apply-payment-card input {
  position: absolute;
  inset: 12px 12px auto auto;
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.apply-plan-card:has(input:checked),
.apply-payment-card:has(input:checked) {
  border-color: #18aba4;
  background: #f0fffc;
  box-shadow: inset 0 0 0 1px rgba(24, 171, 164, 0.16);
}

.apply-plan-card > span,
.apply-payment-card > span {
  display: inline-flex;
  width: max-content;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #0f7772;
  background: #e9fbff;
  font-size: 0.62rem;
  font-weight: 900;
}

.apply-plan-card strong,
.apply-payment-card strong {
  margin: 0;
  color: #47352c;
  font-size: 0.98rem;
  line-height: 1.35;
}

.apply-plan-card small,
.apply-payment-card small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.55;
}

.apply-plan-card em {
  align-self: end;
  color: #b8552b;
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 900;
}

.apply-coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.apply-coupon-row button,
.apply-actions button,
.apply-actions a {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.apply-coupon-row button {
  border: 2px solid #d3f1ee;
  color: #147b76;
  background: #fff;
}

.apply-summary-card {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(24, 171, 164, 0.14);
  border-radius: 8px;
  background: #fffdf7;
}

.apply-summary-card dl,
.apply-review-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.apply-summary-card dl div,
.apply-review-list div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(24, 171, 164, 0.11);
  border-radius: 8px;
  background: #fff;
}

.apply-summary-card dt,
.apply-review-list dt {
  color: #0f7772;
  font-size: 0.62rem;
  font-weight: 900;
}

.apply-summary-card dd,
.apply-review-list dd {
  margin: 4px 0 0;
  color: #47352c;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
}

.apply-terms-box {
  max-height: 420px;
  overflow: auto;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(91, 70, 58, 0.12);
  border-radius: 8px;
  background: #fff;
}

.apply-terms-box h3 {
  margin: 0 0 8px;
  color: #47352c;
  font-size: 0.95rem;
}

.apply-terms-title {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.apply-terms-title h3 {
  margin: 0;
}

.apply-terms-title a {
  color: #0f7772;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.apply-terms-box p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.65;
}

.apply-terms-frame {
  display: block;
  width: 100%;
  height: 280px;
  border: 1px solid rgba(91, 70, 58, 0.12);
  border-radius: 8px;
  background: #fffdf7;
}

.apply-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 9px;
  color: #47352c;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.5;
}

.apply-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--teal);
}

.apply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.apply-actions a {
  display: inline-flex;
  align-items: center;
  color: #6f5a4e;
  background: #fff;
  border: 2px solid rgba(91, 70, 58, 0.14);
}

.apply-actions button {
  border: 0;
}

.apply-review-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apply-empty-state {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.apply-empty-state h2 {
  margin: 0;
  color: #47352c;
  font-size: 1.25rem;
}

.apply-empty-state p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.65;
}

.apply-thanks-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 44px 24px;
  border: 1px solid rgba(91, 70, 58, 0.12);
  border-radius: 8px;
  background: #fffdf7;
  text-align: center;
  box-shadow: 0 18px 40px rgba(77, 55, 30, 0.08);
}

.apply-thanks-hero img {
  width: min(180px, 42vw);
}

.apply-thanks-hero h1 {
  margin: 0;
  color: #47352c;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.apply-thanks-hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.8;
}

.apply-next-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apply-next-list li {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(24, 171, 164, 0.13);
  border-radius: 8px;
  background: #fffdf7;
}

.apply-next-list strong {
  color: #47352c;
  font-size: 0.9rem;
  line-height: 1.35;
}

.apply-next-list span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.5;
}

.terms-body {
  min-height: 100vh;
  color: var(--ink);
  background: #fffdf7;
}

.terms-main {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.terms-main h1 {
  margin: 4px 0 18px;
  color: #47352c;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.terms-document {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(91, 70, 58, 0.12);
  border-radius: 8px;
  color: #47352c;
  background: #fff;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.9;
  box-shadow: 0 12px 30px rgba(77, 55, 30, 0.07);
}

@media (max-width: 820px) {
  .apply-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .apply-hero img {
    width: 140px;
  }

  .apply-field-grid,
  .apply-plan-grid,
  .apply-payment-grid,
  .apply-summary-card dl,
  .apply-review-list,
  .apply-next-list {
    grid-template-columns: 1fr;
  }

  .apply-coupon-row {
    grid-template-columns: 1fr;
  }

  .apply-coupon-row button,
  .apply-actions a,
  .apply-actions button {
    width: 100%;
    justify-content: center;
  }

  .apply-actions {
    flex-direction: column-reverse;
  }
}

.admin-billing-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.admin-billing-field-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-billing-field-grid label span {
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-billing-field-grid input,
.admin-billing-field-grid select,
.admin-billing-field-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(24, 171, 164, 0.2);
  border-radius: 8px;
  color: #47352c;
  background: #fffdf7;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-billing-field-grid input,
.admin-billing-field-grid select {
  min-height: 34px;
  padding: 0 9px;
}

.admin-billing-field-grid textarea {
  min-height: 62px;
  padding: 8px 9px;
  line-height: 1.45;
  resize: vertical;
}

.admin-billing-wide {
  grid-column: span 2;
}

@media (max-width: 1080px) {
  .member-billing-layout,
  .admin-billing-field-grid {
    grid-template-columns: 1fr;
  }

  .member-invoice-section,
  .admin-billing-wide {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .member-contract-summary-card dl,
  .member-invoice-card dl {
    grid-template-columns: 1fr;
  }

  .member-invoice-head,
  .admin-billing-card-head,
  .admin-invoice-form-head {
    flex-direction: column;
  }

  .admin-invoice-summary {
    justify-items: start;
  }
}

/* Final portal UI overrides after legacy admin rules. */
.admin-message-list .portal-conversation-list span,
.admin-message-list .portal-conversation-list small,
.admin-message-list .portal-thread-head span,
.admin-message-list .portal-thread-context span,
.admin-message-list .portal-message-bubble span,
.admin-message-list .portal-message-bubble small {
  display: inline;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: var(--teal);
  background: transparent;
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-message-list .portal-conversation-list p,
.admin-message-list .portal-message-bubble p,
.admin-message-list .portal-thread-head p,
.admin-message-list .portal-thread-context p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.45;
}

.admin-message-list .portal-message-bubble p {
  font-size: 0.72rem;
  line-height: 1.55;
}

.admin-message-list .portal-conversation-list strong,
.admin-message-list .portal-message-bubble strong,
.admin-message-list .portal-thread-context strong {
  display: block;
  color: #47352c;
  font-size: 0.76rem;
  line-height: 1.35;
}

.admin-message-list .portal-context-file span {
  display: grid;
  width: 34px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--teal);
  font-size: 0.56rem;
}

.admin-message-list .portal-context-file button,
.admin-message-list .portal-thread-composer button {
  width: auto;
  justify-self: auto;
}

.admin-message-list .portal-thread-composer {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 0;
  border-top: 1px solid rgba(91, 70, 58, 0.1);
  border-radius: 0;
  background: #fff;
}

.admin-message-list .portal-thread-composer button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  color: #fff;
  background: var(--teal);
}

.admin-message-list .portal-context-file {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
}

.admin-message-list .portal-context-file button {
  min-width: 34px;
  padding: 0 8px;
  border: 0;
  color: #fff;
  background: var(--teal);
}

.admin-uploaded-list .portal-file-card[hidden],
.admin-submission-list .portal-file-card[hidden],
.member-list-page .portal-file-card[hidden],
.member-deliverable-page-list .portal-file-card[hidden],
.portal-empty-state[hidden],
.portal-conversation-list article[hidden] {
  display: none;
}

@media (max-width: 1080px) {
  .portal-message-workspace,
  .admin-message-workspace {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .admin-message-list .portal-thread-composer {
    grid-template-columns: 1fr;
  }

  .admin-message-list .portal-context-file {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
}
