:root {
  --paper: #f6f4ef;
  --surface: #fffdf9;
  --surface-muted: #efeee8;
  --surface-tint: #f1ece5;
  --ink: #26332f;
  --ink-strong: #18231f;
  --ink-soft: #66736b;
  --ink-faint: #9aa39d;
  --line: #e3e2da;
  --line-strong: #d5d5cc;
  --coral: #e77555;
  --coral-deep: #c75a40;
  --coral-soft: #f7e2d9;
  --sage: #718b76;
  --sage-deep: #486554;
  --sage-soft: #e3ece3;
  --yellow: #f0c67c;
  --yellow-soft: #fbf0d9;
  --lavender: #a69bc4;
  --lavender-soft: #ece8f4;
  --shadow-sm: 0 1px 2px rgba(33, 43, 38, 0.04), 0 5px 16px rgba(33, 43, 38, 0.035);
  --shadow-md: 0 14px 40px rgba(33, 43, 38, 0.09), 0 3px 10px rgba(33, 43, 38, 0.04);
  --shadow-lg: 0 24px 70px rgba(33, 43, 38, 0.18), 0 8px 22px rgba(33, 43, 38, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --serif: "Noto Serif KR", serif;
  --sans: "Noto Sans KR", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: -60px;
  left: 16px;
  padding: 10px 14px;
  color: #fff;
  border-radius: 8px;
  background: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.skip-link:focus { top: 16px; }

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 73% -12%, rgba(231, 117, 85, 0.08), transparent 24rem),
    radial-gradient(circle at -10% 48%, rgba(113, 139, 118, 0.07), transparent 23rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(231, 117, 85, 0.28);
  outline-offset: 3px;
}

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

::selection {
  color: #fff;
  background: var(--coral);
}

.noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
  max-width: 1520px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 22px 22px;
  border-right: 1px solid rgba(215, 215, 207, 0.7);
  background: rgba(246, 244, 239, 0.72);
  backdrop-filter: blur(18px);
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--ink);
  border-radius: 13px 13px 13px 5px;
  font-family: var(--serif);
  font-size: 16px;
  box-shadow: 4px 4px 0 rgba(231, 117, 85, 0.46);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.07em;
}

.brand-sub {
  margin-top: 5px;
  color: var(--coral-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.72);
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--sage);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

.avatar.coral {
  background: var(--coral);
}

.avatar.lavender {
  background: var(--lavender);
}

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

.avatar.ink {
  background: var(--ink);
}

.profile-copy {
  min-width: 0;
}

.profile-name,
.profile-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-name {
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 800;
}

.profile-meta {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
}

.sidebar-profile .profile-action {
  margin-left: auto;
  color: var(--ink-faint);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-label {
  padding: 0 10px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  color: var(--ink-soft);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-item:hover {
  color: var(--ink-strong);
  background: rgba(255, 253, 249, 0.78);
  transform: translateX(2px);
}

.nav-item.active {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 7px 18px rgba(38, 51, 47, 0.14);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: currentColor;
  font-size: 16px;
  line-height: 1;
}

.nav-item.active .nav-icon {
  color: var(--yellow);
}

.nav-badge {
  min-width: 18px;
  margin-left: auto;
  padding: 2px 5px;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  font-size: 9px;
  text-align: center;
}

.sidebar-bottom {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.sidebar-note {
  padding: 15px;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--yellow-soft);
}

.sidebar-note strong {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.5;
}

.sidebar-note span {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.5;
}

.sidebar-legal {
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.6;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px 46px;
  border-bottom: 1px solid rgba(215, 215, 207, 0.62);
  background: rgba(246, 244, 239, 0.8);
  backdrop-filter: blur(22px);
}

.topbar-left,
.topbar-actions,
.inline-group {
  display: flex;
  align-items: center;
}

.topbar-left {
  gap: 14px;
}

.mobile-brand {
  display: none;
}

.breadcrumb {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
}

.breadcrumb strong {
  color: var(--ink);
}

.topbar-actions {
  gap: 12px;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  padding: 10px 13px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.78);
  cursor: pointer;
  font-size: 11px;
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-trigger:hover {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(231, 117, 85, 0.08);
}

.search-glyph {
  color: var(--ink);
  font-size: 18px;
  line-height: 0.8;
}

.shortcut {
  margin-left: auto;
  padding: 2px 6px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 9px;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-size: 19px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  color: var(--ink-strong);
  border-color: var(--line);
  background: var(--surface);
  transform: translateY(-1px);
}

.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--coral);
}

.top-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.top-profile .avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.top-profile span {
  max-width: 86px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 48px 46px 86px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--coral-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
}

.display-title {
  max-width: 720px;
  margin: 13px 0 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 45px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1.28;
}

.display-title em {
  color: var(--coral-deep);
  font-style: normal;
}

.lead {
  max-width: 540px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.page-header-actions {
  display: flex;
  flex-shrink: 0;
  gap: 9px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 8px 18px rgba(199, 90, 64, 0.18);
}

.button-primary:hover {
  background: var(--coral-deep);
  box-shadow: 0 10px 24px rgba(199, 90, 64, 0.24);
}

.button-dark {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 18px rgba(38, 51, 47, 0.16);
}

.button-dark:hover {
  background: var(--ink-strong);
}

.button-ghost {
  color: var(--ink-soft);
  border-color: var(--line-strong);
  background: rgba(255, 253, 249, 0.56);
}

.button-ghost:hover {
  color: var(--ink-strong);
  border-color: var(--ink-soft);
  background: var(--surface);
}

.button-soft {
  color: var(--sage-deep);
  background: var(--sage-soft);
}

.button-soft:hover {
  background: #d7e5d8;
}

.button-small {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 11px;
}

.button-block {
  width: 100%;
}

.icon-text {
  font-size: 16px;
  line-height: 0.7;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 38px 40px 28px;
  border: 1px solid rgba(38, 51, 47, 0.06);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 83% 21%, rgba(240, 198, 124, 0.75), transparent 12rem),
    radial-gradient(circle at 75% 86%, rgba(231, 117, 85, 0.18), transparent 13rem),
    var(--surface-tint);
  box-shadow: var(--shadow-sm);
}

.hero-panel::after {
  position: absolute;
  right: -130px;
  bottom: -160px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(113, 139, 118, 0.23);
  border-radius: 50%;
  content: "";
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, 0.92fr);
  align-items: center;
  gap: 35px;
}

.hero-copy .display-title {
  max-width: 610px;
  margin-top: 14px;
  font-size: clamp(27px, 3.2vw, 43px);
}

.hero-copy .lead {
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 9px;
  margin-top: 25px;
}

.hero-art {
  position: relative;
  min-height: 200px;
}

.hero-orbit {
  position: absolute;
  top: 9px;
  right: 13%;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(72, 101, 84, 0.24);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.hero-orbit::before {
  top: 23px;
  left: 10px;
}

.hero-orbit::after {
  right: 15px;
  bottom: 26px;
  background: var(--sage);
}

.hero-shape {
  position: absolute;
  right: 10%;
  bottom: 14px;
  width: 160px;
  height: 122px;
  border: 2px solid var(--ink);
  border-top: 0;
  border-radius: 12% 65% 40% 53%;
  transform: rotate(-18deg);
}

.hero-shape::before {
  position: absolute;
  top: -67px;
  left: 48px;
  width: 2px;
  height: 90px;
  background: var(--ink);
  content: "";
  transform: rotate(24deg);
}

.hero-shape::after {
  position: absolute;
  top: -71px;
  left: 43px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.hero-sticker {
  position: absolute;
  top: 30px;
  right: 8%;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: var(--ink);
  border: 1px solid rgba(38, 51, 47, 0.18);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.65);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  transform: rotate(12deg);
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(38, 51, 47, 0.12);
}

.stat {
  min-width: 130px;
  padding-right: 25px;
}

.stat + .stat {
  padding-left: 25px;
  border-left: 1px solid rgba(38, 51, 47, 0.12);
}

.stat-number {
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.stat-label {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
}

.job-layout,
.teacher-layout,
.community-layout,
.register-layout,
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  align-items: start;
  gap: 22px;
  margin-top: 24px;
}

.main-column {
  min-width: 0;
}

.filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 14px;
}

.filter-search {
  display: flex;
  align-items: center;
  flex: 1 1 190px;
  gap: 8px;
  min-width: 120px;
  height: 39px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.75);
}

.filter-search span {
  color: var(--ink-faint);
  font-size: 16px;
}

.filter-search input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  border: 0;
  outline: none;
  background: transparent;
  font-size: 11px;
}

.filter-search input::placeholder {
  color: var(--ink-faint);
}

.select-wrap {
  position: relative;
  flex-shrink: 0;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 11px;
  color: var(--ink-soft);
  content: "⌄";
  pointer-events: none;
  transform: translateY(-56%);
}

.select-wrap select {
  height: 39px;
  padding: 0 30px 0 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 253, 249, 0.75);
  cursor: pointer;
  font-size: 11px;
  appearance: none;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 39px;
  padding: 0 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.75);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button.active {
  color: var(--sage-deep);
  border-color: var(--sage);
  background: var(--sage-soft);
}

.segmented {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-muted);
}

.segment {
  min-height: 31px;
  padding: 0 10px;
  color: var(--ink-soft);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.segment.active {
  color: var(--ink-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 23px 0 10px;
}

.list-heading h2,
.section-title {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.06em;
}

.list-heading p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
}

.job-list {
  display: grid;
  gap: 9px;
}
.job-list.columns-2,
.teacher-grid.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.job-list.columns-3,
.teacher-grid.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-view-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 8px; background: var(--surface-muted); }
.view-toggle { min-height: 25px; padding: 0 8px; border: 0; border-radius: 6px; color: var(--ink-soft); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.view-toggle.active { color: var(--ink-strong); background: var(--surface); box-shadow: var(--shadow-sm); }
.view-toggle-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 9px; color: var(--ink-faint); font-size: 10px; font-weight: 800; }
.community-layout .filter-strip { align-items: center; overflow: hidden; }
.community-layout .filter-strip .segmented { min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.community-layout .filter-strip .segment { flex: 0 0 auto; min-width: 42px; padding-right: 9px; padding-left: 9px; white-space: nowrap; }

.job-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 20px 16px 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  background: rgba(255, 253, 249, 0.76);
  cursor: pointer;
  text-align: left;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease, background 200ms ease;
}

.job-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--job-accent, var(--coral));
  content: "";
}

.job-card:hover {
  border-color: rgba(113, 139, 118, 0.55);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.job-card-top,
.job-card-footer,
.card-meta-row,
.post-row,
.notification-row,
.application-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.job-card-top {
  align-items: flex-start;
}

.job-studio {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
}

.verified {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  color: #fff;
  border-radius: 50%;
  background: var(--sage);
  font-size: 9px;
  font-weight: 800;
}

.job-type {
  padding: 4px 8px;
  color: var(--ink-soft);
  border-radius: 6px;
  background: var(--surface-muted);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.job-card h3 {
  margin: 9px 0 5px;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.05em;
  line-height: 1.4;
}

.job-meta {
  color: var(--ink-soft);
  font-size: 11px;
}

.job-tags,
.teacher-tags,
.detail-tags,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job-tags {
  margin-top: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  color: var(--ink-soft);
  border-radius: 6px;
  background: var(--surface-muted);
  font-size: 10px;
  font-weight: 600;
}

.tag.sage {
  color: var(--sage-deep);
  background: var(--sage-soft);
}

.tag.coral {
  color: var(--coral-deep);
  background: var(--coral-soft);
}

.tag.yellow {
  color: #946a26;
  background: var(--yellow-soft);
}

.job-card-footer {
  margin-top: 17px;
  align-items: flex-end;
}

.pay {
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.deadline {
  color: var(--ink-faint);
  font-size: 10px;
}

.deadline.urgent {
  color: var(--coral-deep);
  font-weight: 800;
}

.save-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--ink-faint);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  transition: color 180ms ease, background 180ms ease;
}

.save-button:hover,
.save-button.saved {
  color: var(--coral-deep);
  background: var(--coral-soft);
}

.rail-column {
  display: grid;
  gap: 15px;
}

.rail-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.72);
}

.rail-card.tinted {
  border-color: transparent;
  background: var(--sage-soft);
}

.rail-card.peach {
  border-color: transparent;
  background: var(--coral-soft);
}

.rail-label {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rail-title {
  margin: 8px 0 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: -0.05em;
  line-height: 1.45;
}

.rail-copy {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.mini-list {
  display: grid;
  gap: 2px;
  margin-top: 14px;
}

.mini-job {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.mini-job:first-child {
  border-top: 0;
}

.mini-job strong,
.mini-teacher strong {
  display: block;
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-job span,
.mini-teacher span {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.mini-teacher {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.mini-teacher:first-child {
  border-top: 0;
}

.mini-teacher .avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.empty-state {
  padding: 48px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  background: rgba(255, 253, 249, 0.45);
  text-align: center;
}

.empty-state .empty-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  color: var(--sage-deep);
  border-radius: 50%;
  background: var(--sage-soft);
  font-family: var(--serif);
  font-size: 18px;
}

.empty-state strong {
  display: block;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 15px;
}

.empty-state p {
  margin: 6px auto 16px;
  font-size: 11px;
  line-height: 1.6;
}

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

.teacher-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.78);
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.teacher-card:hover {
  border-color: rgba(113, 139, 118, 0.55);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.teacher-card::before {
  position: absolute;
  top: 0;
  right: 20px;
  width: 36px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: var(--teacher-accent, var(--coral));
  content: "";
}

.teacher-card-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.teacher-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  color: #fff;
  border-radius: 17px 17px 17px 5px;
  background: var(--teacher-accent, var(--coral));
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.teacher-card-name {
  margin: 2px 0 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: -0.05em;
}

.teacher-card-meta {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.teacher-tags {
  margin-top: 17px;
}

.teacher-intro {
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.teacher-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--ink-faint);
  font-size: 10px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--sage-deep);
  font-weight: 700;
}

.availability::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.community-layout {
  grid-template-columns: minmax(0, 1fr) 286px;
}

.popular-card {
  position: relative;
  min-height: 190px;
  padding: 24px 26px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(240, 198, 124, 0.8), transparent 8rem),
    var(--ink);
  color: #fff;
}

.popular-card::after {
  position: absolute;
  right: -40px;
  bottom: -68px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  content: "";
}

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

.popular-label {
  color: var(--yellow);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.popular-title {
  max-width: 520px;
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.06em;
  line-height: 1.45;
}

.popular-meta {
  display: flex;
  gap: 12px;
  margin-top: 19px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.post-list {
  display: grid;
  gap: 0;
  margin-top: 13px;
  border-top: 1px solid var(--line);
}

.post-row {
  align-items: flex-start;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding 180ms ease, color 180ms ease;
}

.post-row:hover {
  padding-right: 0;
  padding-left: 8px;
}

.post-main {
  min-width: 0;
}

.post-category {
  color: var(--coral-deep);
  font-size: 10px;
  font-weight: 800;
}

.post-row h3 {
  margin: 6px 0 5px;
  overflow: hidden;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: -0.05em;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-meta {
  color: var(--ink-faint);
  font-size: 10px;
}

.post-stats {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  padding-top: 8px;
  color: var(--ink-faint);
  font-size: 10px;
}

.compose-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--coral-deep);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.compose-button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  border-radius: 7px;
  background: var(--coral);
  font-size: 16px;
}

.post-detail {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.75);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.back-link span {
  font-size: 17px;
  line-height: 0.7;
}

.post-detail .post-category {
  margin-top: 30px;
}

.post-detail h1 {
  max-width: 620px;
  margin: 9px 0 7px;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.07em;
  line-height: 1.45;
}

.post-detail .post-meta {
  margin-bottom: 25px;
}

.post-body {
  padding: 23px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 2;
  white-space: pre-line;
}

.post-actions {
  display: flex;
  gap: 9px;
  margin-top: 16px;
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 0 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.like-button.liked {
  color: #fff;
  border-color: var(--coral);
  background: var(--coral);
}

.comment-section {
  margin-top: 28px;
}

.comment-section h2 {
  margin: 0 0 12px;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.05em;
}

.comment-list {
  border-top: 1px solid var(--line);
}

.comment {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.comment-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-strong);
  font-size: 11px;
  font-weight: 800;
}

.comment-author button {
  color: var(--ink-faint);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.comment p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.comment-form {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.comment-form input {
  min-width: 0;
  flex: 1;
  height: 39px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: var(--surface);
  font-size: 11px;
}

.comment-form input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(231, 117, 85, 0.08);
}

.register-layout {
  margin-top: 0;
}

.form-card {
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.78);
}

.form-card h2 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.06em;
}

.form-card > .form-intro {
  margin: 7px 0 25px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

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

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.field label .required {
  color: var(--coral);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 253, 249, 0.75);
  font-size: 12px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field textarea {
  min-height: 126px;
  resize: vertical;
  line-height: 1.7;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--coral);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(231, 117, 85, 0.08);
}

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

.choice {
  display: grid;
  place-items: center;
  min-height: 43px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.52);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.choice:hover {
  transform: translateY(-1px);
}

.choice.active {
  color: var(--coral-deep);
  border-color: var(--coral);
  background: var(--coral-soft);
}

.helper {
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.6;
}

.form-submit {
  margin-top: 24px;
}

.side-checklist {
  padding: 21px;
  border-radius: var(--radius-md);
  background: var(--yellow-soft);
}

.side-checklist h3 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: -0.05em;
}

.side-checklist p {
  margin: 7px 0 17px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.6;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 0;
  border-top: 1px solid rgba(148, 106, 38, 0.14);
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.5;
}

.check-row::before {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #fff;
  border-radius: 50%;
  background: var(--sage);
  content: "✓";
  font-size: 9px;
  font-weight: 800;
}

.dashboard-layout {
  grid-template-columns: minmax(0, 1fr) 286px;
  margin-top: 0;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px;
  border-radius: var(--radius-lg);
  background: var(--sage-soft);
}

.profile-hero .avatar {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.profile-hero h2 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.06em;
}

.profile-hero p {
  margin: 4px 0 0;
  color: var(--sage-deep);
  font-size: 11px;
}

.dashboard-section {
  margin-top: 25px;
}

.dashboard-section h2 {
  margin: 0 0 11px;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.06em;
}

.application-list,
.notification-list {
  display: grid;
  gap: 9px;
}

.application-card,
.notification-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.76);
}

.application-card h3 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: -0.04em;
}

.application-card p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.application-status {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.application-status.pending {
  color: var(--ink-soft);
  background: var(--surface-muted);
}

.application-status.accepted {
  color: var(--sage-deep);
  background: var(--sage-soft);
}

.application-status.rejected {
  color: var(--coral-deep);
  background: var(--coral-soft);
}

.notification-card.unread {
  border-color: rgba(231, 117, 85, 0.36);
  background: #fff8f4;
}

.notification-row {
  align-items: flex-start;
}

.notification-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--coral-deep);
  border-radius: 10px;
  background: var(--coral-soft);
  font-family: var(--serif);
  font-size: 13px;
}

.notification-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.notification-card time {
  display: block;
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 9px;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 35, 31, 0.42);
  backdrop-filter: blur(8px);
  animation: fade-in 180ms ease both;
}

.modal-panel {
  position: relative;
  width: min(100%, 480px);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 29px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-up 260ms var(--ease) both;
}

.modal-panel.wide {
  width: min(100%, 720px);
}

.modal-panel.compact {
  width: min(100%, 390px);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--ink-soft);
  border-radius: 9px;
  background: var(--surface-muted);
  cursor: pointer;
  font-size: 17px;
}

.modal-kicker {
  color: var(--coral-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-title {
  margin: 8px 0 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: -0.07em;
  line-height: 1.45;
}

.modal-copy {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.detail-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.detail-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.detail-brand-mark {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  color: #fff;
  border-radius: 15px 15px 15px 5px;
  background: var(--detail-accent, var(--coral));
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.detail-brand-name {
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: -0.04em;
}

.detail-brand-meta {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.detail-title {
  margin: 20px 0 6px;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: -0.07em;
  line-height: 1.4;
}

.detail-pay {
  color: var(--coral-deep);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.detail-section {
  padding: 21px 0 0;
}

.detail-section h3 {
  margin: 0 0 9px;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: -0.05em;
}

.detail-section p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-line;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.detail-stat {
  padding: 12px;
  border-radius: 11px;
  background: var(--surface-muted);
}

.detail-stat span {
  display: block;
  color: var(--ink-faint);
  font-size: 9px;
}

.detail-stat strong {
  display: block;
  margin-top: 4px;
  color: var(--ink-strong);
  font-size: 11px;
}

.detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-actions .button {
  flex: 1;
}

.modal-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.modal-form .field textarea {
  min-height: 105px;
}

.modal-footnote {
  margin-top: 12px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.6;
}

.auth-switch {
  display: flex;
  gap: 18px;
  margin-top: 21px;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  position: relative;
  padding: 0 0 11px;
  color: var(--ink-faint);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.auth-tab.active {
  color: var(--ink-strong);
}

.auth-tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
}

.role-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 17px;
}

.role-option {
  padding: 12px 10px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 800;
}

.role-option.active {
  color: var(--sage-deep);
  border-color: var(--sage);
  background: var(--sage-soft);
}

.success-state {
  padding: 25px 5px 5px;
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  margin: 0 auto 15px;
  color: #fff;
  border-radius: 50%;
  background: var(--sage);
  font-size: 23px;
}

.success-state h2 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.06em;
}

.success-state p {
  margin: 8px auto 20px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.toast-stack {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  color: #fff;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: var(--shadow-md);
  font-size: 11px;
  animation: toast-in 260ms var(--ease) both;
}

.toast.success::before,
.toast.info::before,
.toast.error::before {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sage);
  content: "✓";
  font-size: 10px;
  font-weight: 800;
}

.toast.info::before {
  background: var(--yellow);
  color: var(--ink);
  content: "i";
}

.toast.error::before {
  background: var(--coral);
  content: "!";
}

.bottom-nav {
  display: none;
}

.mobile-only {
  display: none;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-up {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .sidebar {
    padding-right: 16px;
    padding-left: 16px;
  }

  .topbar,
  .page {
    padding-right: 30px;
    padding-left: 30px;
  }

  .job-layout,
  .teacher-layout,
  .community-layout,
  .register-layout,
  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .sidebar-profile {
    padding: 10px;
  }

  .nav-item {
    padding-right: 9px;
    padding-left: 9px;
  }

  .topbar,
  .page {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(170px, 0.65fr);
    gap: 15px;
  }

  .hero-art {
    transform: scale(0.84);
    transform-origin: center right;
  }

  .job-layout,
  .teacher-layout,
  .community-layout,
  .register-layout,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  body {
    font-size: 13px;
  }

  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    min-height: 66px;
    padding: 13px 17px;
  }

  .mobile-brand {
    display: inline-flex;
  }

  .breadcrumb {
    display: none;
  }

  .topbar-actions {
    gap: 4px;
  }

  .search-trigger {
    min-width: 0;
    width: 37px;
    height: 37px;
    padding: 0;
    justify-content: center;
    border-color: transparent;
    background: transparent;
  }

  .search-trigger > span:not(.search-glyph) {
    display: none;
  }

  .shortcut {
    display: none;
  }

  .top-profile {
    padding-right: 4px;
  }

  .top-profile span {
    display: none;
  }

  .page {
    padding: 29px 17px 108px;
  }

  .page-header {
    display: block;
    margin-bottom: 24px;
  }

  .page-header-actions {
    margin-top: 18px;
  }

  .page-header-actions .button {
    flex: 1;
  }

  .hero-panel {
    min-height: unset;
    padding: 27px 22px 21px;
    border-radius: 24px;
  }

  .hero-layout {
    display: block;
  }

  .hero-copy .display-title {
    max-width: 100%;
    font-size: 28px;
  }

  .hero-copy .lead {
    font-size: 12px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-art {
    display: none;
  }

  .hero-bottom {
    margin-top: 24px;
    overflow-x: auto;
  }

  .stat {
    min-width: 100px;
    padding-right: 17px;
  }

  .stat + .stat {
    padding-left: 17px;
  }

  .stat-number {
    font-size: 18px;
  }

  .filter-strip {
    flex-wrap: wrap;
  }

  .filter-search {
    flex-basis: 100%;
  }

  .select-wrap {
    flex: 1;
  }

  .select-wrap select,
  .filter-button {
    width: 100%;
  }

  .segmented {
    flex: 1;
  }

  .segment {
    flex: 1;
  }
  .job-sort-tabs {
    flex-wrap: wrap;
  }

  .job-layout,
  .teacher-layout,
  .community-layout,
  .register-layout,
  .dashboard-layout {
    display: block;
    margin-top: 18px;
  }

  .rail-column {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .teacher-grid {
    grid-template-columns: 1fr;
  }
  .job-list.columns-2,
  .job-list.columns-3,
  .teacher-grid.columns-2,
  .teacher-grid.columns-3 {
    grid-template-columns: 1fr;
  }

  .popular-card {
    min-height: 170px;
    padding: 21px;
  }

  .popular-title {
    font-size: 19px;
  }

  .post-detail,
  .form-card {
    padding: 21px;
    border-radius: 20px;
  }

  .form-grid.two,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal-panel,
  .modal-panel.wide,
  .modal-panel.compact {
    width: 100%;
    max-height: calc(100vh - 10px);
    padding: 25px 20px 28px;
    border-radius: 24px 24px 0 0;
  }

  .modal-title {
    font-size: 21px;
  }

  .toast-stack {
    right: 16px;
    bottom: 84px;
    width: calc(100vw - 32px);
  }

  .bottom-nav {
    position: fixed;
    z-index: 50;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 17px;
    background: rgba(38, 51, 47, 0.95);
    box-shadow: 0 12px 30px rgba(38, 51, 47, 0.22);
    backdrop-filter: blur(18px);
  }

  .bottom-nav .nav-item {
    display: grid;
    justify-items: center;
    gap: 1px;
    min-height: 52px;
    padding: 6px 2px;
    color: rgba(255, 255, 255, 0.62);
    border-radius: 12px;
    background: transparent;
    font-size: 9px;
    text-align: center;
  }

  .bottom-nav .nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
  }

  .bottom-nav .nav-icon {
    height: 22px;
    color: var(--yellow);
    font-size: 17px;
  }

  .bottom-nav .nav-badge {
    position: absolute;
    top: 3px;
    right: 21%;
    min-width: 15px;
    padding: 1px 4px;
    font-size: 8px;
  }

  .mobile-only {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.social-login-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.social-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.social-login.kakao { background: #fee500; color: #191600; }
.social-login.naver { background: #03c75a; color: #fff; }
.social-login.google { background: #fff; color: #252525; border: 1px solid #ddd; }
.social-logo { font-weight: 900; font-size: 17px; }

.wallet-card {
  display: grid;
  gap: 5px;
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
}
.wallet-card span { color: var(--yellow); font-size: 11px; font-weight: 800; }
.wallet-card strong { font-size: 25px; }
.wallet-card small { color: rgba(255,255,255,.68); font-size: 10px; }
.wallet-inline { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 20px; color: var(--ink-soft); font-size: 11px; }
.wallet-inline strong { color: var(--coral); font-size: 21px; }
.reward-exchange { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 15px; border-top: 1px solid rgba(28, 48, 42, .12); color: var(--ink-soft); font-size: 11px; }
.application-message { margin: 14px 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.application-controls { display: flex; flex-wrap: wrap; gap: 7px; }
.application-status.withdrawn { color: var(--ink-soft); background: #eeeae3; }
.legal-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.policy-copy { color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.policy-copy ul { padding-left: 20px; }

.seo-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px 32px;
  color: var(--ink-soft);
  background: var(--surface);
}
.seo-content h2 { margin: 0 0 10px; color: var(--ink-strong); font-family: var(--serif); font-size: 20px; }
.seo-content h2:not(:first-child) { margin-top: 28px; }
.seo-content h3 { margin: 18px 0 5px; color: var(--ink-strong); font-size: 13px; }
.seo-content p { margin: 0; font-size: 11px; line-height: 1.8; }
.seo-visual { margin: 18px 0; overflow: hidden; border-radius: 18px; background: var(--surface-muted); }
.seo-visual img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.seo-visual figcaption { padding: 10px 14px; color: var(--ink-faint); font-size: 10px; }
.seo-link-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; }
.seo-link-nav a { color: var(--coral-deep); font-size: 11px; font-weight: 800; text-decoration: underline; }
.job-sort-tabs { flex-wrap: nowrap; }
.job-sort-tabs .segment { white-space: nowrap; }
.card-meta-row:has(.job-sort-tabs) { flex-wrap: wrap; }
.card-meta-row:has(.job-sort-tabs) .job-sort-tabs { flex: 1 1 100%; min-width: 0; }
.job-sort-tabs .distance-sort.active { color: #fff; background: var(--sage-deep); box-shadow: 0 5px 14px rgba(66, 94, 77, .22); }
.sample-badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 3px 7px; border-radius: 999px; color: var(--ink-faint); background: var(--surface-muted); font-size: 9px; font-weight: 700; }
.active-filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-soft); background: rgba(247, 244, 237, .72); font-size: 10px; }
.active-filter-summary > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.active-filter-summary strong { color: var(--ink-strong); font-size: 10px; }
.filter-chip { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: var(--coral-deep); background: var(--coral-soft); font-size: 9px; font-weight: 800; }
.distance-active { border-color: rgba(66, 94, 77, .42); background: rgba(231, 239, 231, .9); }
.distance-chip { color: #fff; background: var(--sage-deep); }
.job-filter-match { display: inline-block; padding: 3px 7px; border-radius: 7px; color: var(--ink-strong) !important; background: #fff0c8 !important; box-shadow: inset 0 0 0 1px rgba(198, 145, 42, .35); font-weight: 800 !important; }
.pay.job-filter-match { padding: 4px 8px; }
.job-date-match { display: inline-block; padding: 3px 6px; border-radius: 7px; color: var(--ink-strong); background: #eef3e9; font-weight: 800; }
.register-quickbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 12px 13px; border-radius: 12px; color: var(--ink-soft); background: var(--yellow-soft); }
.register-quickbar div { display: grid; gap: 3px; }
.register-quickbar strong { color: var(--ink-strong); font-size: 11px; }
.register-quickbar span { font-size: 10px; }
.register-optional { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .54); }
.register-optional summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; color: var(--ink-strong); cursor: pointer; font-size: 11px; font-weight: 800; list-style: none; }
.register-optional summary::-webkit-details-marker { display: none; }
.register-optional summary::after { content: '+'; color: var(--coral-deep); font-size: 17px; line-height: 1; }
.register-optional[open] summary::after { content: '−'; }
.register-optional summary small { margin-left: auto; color: var(--ink-faint); font-size: 9px; font-weight: 600; }
.register-extra-fields { display: grid; gap: 14px; padding: 0 13px 14px; }
.register-example-note { padding: 9px 10px; border-radius: 8px; color: var(--ink-soft); background: var(--surface-muted); font-size: 10px; line-height: 1.5; }
.register-auto-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -5px 0 14px; color: var(--ink-faint); font-size: 10px; }
.register-auto-tools .button { flex: 0 0 auto; }
.deadline-presets { display: flex; gap: 6px; margin-top: 7px; }
.field input[readonly]#register-deadline { color: var(--ink-soft); background: var(--surface-muted); cursor: default; }
.deadline-preset { flex: 1; padding: 7px 6px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); background: var(--surface-muted); font-size: 9px; font-weight: 800; cursor: pointer; }
.deadline-preset span { display: block; margin-top: 2px; color: var(--ink-faint); font-size: 8px; font-weight: 600; }
.deadline-preset.active { border-color: var(--coral); color: var(--coral-deep); background: var(--coral-soft); }
.register-example-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border-radius: 12px; color: var(--ink-soft); background: var(--yellow-soft); }
.register-example-bar div { display: grid; gap: 3px; }
.register-example-bar strong { color: var(--ink-strong); font-size: 11px; }
.register-example-bar span { font-size: 10px; }
.job-detail-table { display: grid; margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.job-detail-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 11px; }
.job-detail-row:last-child { border-bottom: 0; }
.job-detail-row span { color: var(--ink-faint); }
.job-detail-row strong { color: var(--ink-strong); font-weight: 700; overflow-wrap: anywhere; }
.teacher-chip { color: var(--sage-deep); background: var(--sage-soft); }
.filter-empty { color: var(--ink-faint); }
.filter-count { flex: 0 0 auto; color: var(--ink-strong); font-weight: 800; white-space: nowrap; }
.filter-reset { flex: 0 0 auto; padding: 0; border: 0; color: var(--coral-deep); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.comment-reply { margin: 10px 0 0 22px; padding-left: 13px; border-left: 2px solid var(--line); }
.support-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 18px; }
.support-ticket-list { display: grid; gap: 9px; margin-top: 15px; }
.support-ticket { padding: 12px; border-radius: 11px; background: var(--surface-muted); }
.support-ticket > div { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-strong); font-size: 11px; }
.support-ticket p { margin: 8px 0 0; color: var(--ink-soft); font-size: 10.5px; line-height: 1.6; }
.support-ticket time { display: block; margin-top: 6px; color: var(--ink-faint); font-size: 9px; }
.support-status { color: var(--sage-deep); font-size: 9px; }
.support-faq { max-width: 760px; margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 253, 249, .78); }
.support-faq h2 { margin: 5px 0 15px; color: var(--ink-strong); font-family: var(--serif); font-size: 20px; }
.support-faq details { padding: 12px 0; border-top: 1px solid var(--line); }
.support-faq summary { color: var(--ink-strong); cursor: pointer; font-size: 12px; font-weight: 800; }
.support-faq details p { margin: 8px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.auto-post-launch { margin-bottom: 14px; padding: 11px; border-radius: 12px; background: rgba(242, 202, 114, .14); }
.auto-post-launch strong { display: block; margin-bottom: 8px; color: var(--ink-strong); font-size: 10px; }
.auto-post-toggle { display: block; width: 100%; margin-top: 7px; padding: 0; border: 0; background: transparent; color: var(--ink-soft); font-size: 9px; cursor: pointer; }

.hero-panel {
  background-image: linear-gradient(90deg, rgba(246, 244, 239, .98) 0%, rgba(246, 244, 239, .9) 43%, rgba(246, 244, 239, .35) 74%, rgba(246, 244, 239, .12) 100%), url("./assets/hero-yoga.png");
  background-position: center, center;
  background-size: cover, cover;
}
.popular-card {
  background-image: linear-gradient(90deg, rgba(38, 51, 47, .94), rgba(38, 51, 47, .58)), url("./assets/community-practice.png");
  background-position: center, center;
  background-size: cover, cover;
}
.teacher-card {
  background-image: linear-gradient(180deg, rgba(255, 253, 249, .94), rgba(255, 253, 249, .78)), url("./assets/teacher-profile.png");
  background-position: center, center;
  background-size: cover, cover;
}

.directory-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 18px;
}
.directory-summary > div,
.directory-panel,
.directory-note {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, .78);
}
.directory-summary span,
.directory-summary strong { display: block; }
.directory-summary span { color: var(--ink-faint); font-size: 10px; }
.directory-summary strong { margin-top: 7px; color: var(--ink-strong); font-family: var(--serif); font-size: 22px; }
.directory-panel h2 { margin: 5px 0 0; color: var(--ink-strong); font-family: var(--serif); font-size: 20px; }
.directory-provider { min-height: 37px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-soft); }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.directory-region { padding: 14px; border-radius: 12px; background: var(--surface-muted); }
.directory-region > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.directory-region strong { color: var(--ink-strong); font-size: 12px; }
.directory-region b { display: block; margin-top: 10px; color: var(--coral-deep); font-family: var(--serif); font-size: 18px; }
.directory-status { color: var(--sage-deep); font-size: 9px; }
.directory-track { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: rgba(28,48,42,.1); }
.directory-track span { display: block; height: 100%; border-radius: inherit; background: var(--sage); }
.directory-note { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--ink-soft); font-size: 11px; }
.directory-note strong { color: var(--ink-strong); }

.gamification-card,
.xp-card {
  margin: 20px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #f4ead4, #f6f4ef);
}

.gamification-head,
.xp-card-top,
.xp-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gamification-head h2 { margin: 6px 0 0; font-family: var(--serif); font-size: 24px; }
.level-badge { padding: 8px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }
.xp-summary { margin-top: 20px; color: var(--ink-soft); font-size: 12px; }
.xp-summary strong { color: var(--ink); font-size: 22px; }
.xp-track { height: 9px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: rgba(28, 48, 42, .12); }
.xp-track span { display: block; height: 100%; border-radius: inherit; background: var(--coral); transition: width .3s ease; }
.xp-card p { margin: 10px 0 0; color: var(--ink-soft); font-size: 11px; }
.gamification-stats,
.profile-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.gamification-stats span,
.profile-stats-grid div { display: grid; gap: 4px; color: var(--ink-soft); font-size: 11px; }
.gamification-stats strong,
.profile-stats-grid strong { color: var(--ink); font-size: 18px; }
.profile-stats-grid { margin: 18px 0 8px; }

@media (max-width: 620px) {
  .register-quickbar { align-items: stretch; flex-direction: column; }
  .register-quickbar .button { width: 100%; }
  .register-auto-tools { align-items: stretch; flex-direction: column; }
  .register-auto-tools .button { width: 100%; }
  .register-optional summary { align-items: flex-start; flex-wrap: wrap; }
  .register-optional summary small { flex: 1 1 100%; margin-left: 0; }
  .gamification-stats,
  .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gamification-card,
  .xp-card { padding: 17px; }
  .directory-summary,
  .directory-grid { grid-template-columns: 1fr; }
  .directory-note { display: block; line-height: 1.7; }
  .support-layout { display: block; }
}
