:root {
  --ink: #18332c;
  --muted: #5f6f69;
  --brand: #0f6b52;
  --brand-dark: #084b3a;
  --brand-soft: #dff3eb;
  --accent: #2563eb;
  --warning: #fff1cc;
  --surface: #ffffff;
  --background: #f8fafc;
  --line: #e2e8f0;
  --danger: #a8392d;
  --shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  background: #f1f5f9;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f1f5f9;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none !important;
}

button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.prototype-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 25px rgba(15, 23, 42, 0.05);
  border-left: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
}

.prototype-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  color: #78350f;
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
  font-size: 0.76rem;
  line-height: 1.4;
}

.prototype-banner strong {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 1px 6px;
  background: #fde68a;
  border-radius: 4px;
}

#app {
  min-height: calc(100vh - 64px);
  background: linear-gradient(180deg, #f9fbfa 0, #fff 220px);
}

.screen {
  display: none;
  min-height: calc(100vh - 64px);
  padding: 24px 18px 40px;
}

.screen.is-active {
  display: block;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 7vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

p,
li,
dt,
dd {
  line-height: 1.65;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 800;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.topbar > div {
  min-width: 0;
}

.topbar h1 {
  margin-bottom: 0;
}

.text-button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 8px 10px;
  color: var(--brand-dark);
  background: transparent;
  border: 0;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.hero-card {
  padding: 26px 22px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-dark), var(--brand));
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-size: 1.55rem;
}

.hero-card p {
  color: #e8f5f0;
}

.hero-kicker {
  margin-bottom: 8px;
  color: #c8eadf !important;
  font-weight: 800;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.primary-button {
  color: #fff;
  background: var(--brand);
  border: 2px solid var(--brand);
}

.hero-card .primary-button {
  margin-top: 8px;
  color: var(--brand-dark);
  background: #fff;
  border-color: #fff;
}

.primary-button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.secondary-button {
  color: var(--brand-dark);
  background: #fff;
  border: 2px solid var(--brand);
}

.plain-section,
.detail-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.notice-box,
.privacy-note {
  margin-top: 24px;
  padding: 16px;
  color: #43534d;
  background: #eef3f1;
  border-left: 5px solid #829b91;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.notice-box {
  display: grid;
  gap: 4px;
}

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

.back-button {
  min-height: 48px;
  margin: -8px 0 14px -8px;
  padding: 8px;
  color: var(--brand-dark);
  background: transparent;
  border: 0;
  font-weight: 900;
}

.filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-summary span {
  padding: 7px 11px;
  color: #315148;
  background: #edf4f1;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.job-card,
.notice-card,
.contact-card,
.help-card,
.alert-card {
  margin-bottom: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.job-card h2,
.notice-card h2 {
  margin-top: 12px;
}

.status-label {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-label.open,
.status-label.read {
  color: #07513e;
  background: #dff3eb;
}

.status-label.check,
.status-label.education {
  color: #6f4710;
  background: #fff0c9;
}

.status-label.culture {
  color: #4d3b7b;
  background: #eee9ff;
}

.status-label.unread {
  color: #842d24;
  background: #ffe5df;
}

.fact-list,
.detail-list {
  margin: 18px 0;
}

.fact-list div,
.detail-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #e8eeeb;
}

.fact-list dt,
.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.fact-list dd,
.detail-list dd {
  margin: 0;
}

.step-list,
.check-list {
  padding-left: 1.35rem;
}

.step-list li,
.check-list li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.next-activity {
  display: grid;
  gap: 5px;
  padding: 22px;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 20px;
}

.next-activity p {
  margin-bottom: 2px;
  color: #c8eadf;
  font-weight: 800;
}

.next-activity strong {
  font-size: 1.42rem;
}

.alert-card {
  margin-top: 18px;
  background: var(--warning);
  border-color: #e9c973;
}

.alert-card span {
  display: block;
  margin: 6px 0 14px;
  line-height: 1.55;
}

.home-menu {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.home-menu button {
  display: grid;
  min-height: 64px;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 15px;
  font-weight: 900;
}

.home-menu button span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
}

.month-label {
  margin-bottom: 14px;
  font-size: 1.18rem;
  font-weight: 900;
}

.schedule-list {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.schedule-item.today {
  border: 3px solid var(--brand);
}

.schedule-item time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 12px;
}

.schedule-item time strong {
  font-size: 1.45rem;
}

.schedule-item time span {
  font-size: 0.75rem;
  font-weight: 800;
}

.schedule-item h2 {
  margin: 8px 0 2px;
  font-size: 1.05rem;
}

.schedule-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.notice-card.important {
  border: 3px solid #d45b4e;
}

.notice-date {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-card {
  color: #fff;
  background: var(--brand-dark);
  border: 0;
}

.contact-card .primary-button {
  color: var(--brand-dark);
  background: #fff;
  border-color: #fff;
}

.contact-label {
  margin-bottom: 4px;
  color: #c8eadf;
  font-weight: 800;
}

.help-card {
  margin-top: 28px;
  background: #f2f8f5;
}

.prototype-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 30;
  max-width: 398px;
  margin: 0 auto;
  padding: 16px;
  color: #fff;
  text-align: center;
  background: #243d35;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

/* Mission003-B: approved blue main-home system. Other screens keep their prior styles. */
body[data-active-screen="public-home"] .prototype-banner {
  display: none;
}

body[data-active-screen="public-home"] #app {
  min-height: 100vh;
  background: #f5f7fa;
}

.home-dashboard {
  --home-blue: #2563eb;
  --home-navy: #17324d;
  --home-red: #e53935;
  --home-light-blue: #eaf3ff;
  --home-light-gray: #f5f7fa;
  --home-text: #263238;
  --home-white: #ffffff;
  --home-line: #d7e0ea;
  --home-orange: #b85c00;
  padding: 0 16px calc(136px + env(safe-area-inset-bottom));
  color: var(--home-text);
  background: var(--home-light-gray);
}

.home-dashboard h1,
.home-dashboard h2,
.home-dashboard h3 {
  color: var(--home-navy);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.home-dashboard button:focus-visible,
.home-dashboard input:focus-visible {
  outline: 3px solid var(--home-navy);
  outline-offset: 3px;
}

.home-app-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 6px;
}

.home-app-header h1 {
  margin: 0;
  font-size: 1.38rem;
  letter-spacing: -0.045em;
  color: var(--home-navy);
}

.home-agency-sub {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.home-icon-button {
  display: grid;
  min-width: 54px;
  min-height: 54px;
  place-items: center;
  gap: 0;
  padding: 5px;
  color: var(--home-navy);
  background: var(--home-white);
  border: 1px solid var(--home-line);
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 900;
}

.home-icon-button .ui-icon {
  color: var(--home-red);
}

.home-search {
  display: grid;
  min-height: 54px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  background: var(--home-white);
  border: 2px solid var(--home-blue);
  border-radius: 14px;
}

.home-search > .ui-icon {
  color: var(--home-blue);
}

.home-search input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  color: var(--home-text);
  background: transparent;
  border: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.home-search input::placeholder {
  color: #526676;
  opacity: 1;
}

.home-search input:focus {
  outline: 0;
}

.home-search button {
  min-width: 48px;
  min-height: 48px;
  padding: 4px;
  color: var(--home-blue);
  background: transparent;
  border: 0;
  font-size: 0.75rem;
  font-weight: 900;
}

.home-category-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 10px -4px 0;
  border-bottom: 1px solid var(--home-line);
}

.home-category-tabs button {
  position: relative;
  min-height: 52px;
  padding: 8px 2px 10px;
  color: #526676;
  background: transparent;
  border: 0;
  font-size: 0.84rem;
  font-weight: 900;
}

.home-category-tabs button.is-selected {
  color: var(--home-blue);
}

.home-category-tabs button.is-selected::after {
  position: absolute;
  right: 5px;
  bottom: -1px;
  left: 5px;
  height: 4px;
  content: "";
  background: var(--home-blue);
  border-radius: 4px 4px 0 0;
}

.home-region {
  position: relative;
  display: grid;
  min-height: 64px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 10px 12px;
  background: var(--home-white);
  border: 1px solid var(--home-line);
  border-radius: 14px;
}

.home-region > div:first-child {
  display: grid;
  gap: 2px;
}

.home-region span {
  color: #526676;
  font-size: 0.76rem;
  font-weight: 800;
}

.home-region strong {
  color: var(--home-navy);
  font-size: 1rem;
}

.home-region > button {
  min-height: 48px;
  padding: 8px 10px;
  color: var(--home-blue);
  background: var(--home-light-blue);
  border: 1px solid #b8d2ff;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.region-options {
  position: static;
  z-index: 25;
  display: grid;
  grid-column: 1 / -1;
  margin: 4px 0 8px;
  padding: 8px;
  background: var(--home-white);
  border: 2px solid var(--home-blue);
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(23, 50, 77, 0.18);
}

.region-options[hidden] {
  display: none;
}

.region-options button {
  min-height: 48px;
  padding: 8px 12px;
  color: var(--home-text);
  text-align: left;
  background: var(--home-white);
  border: 0;
  border-bottom: 1px solid var(--home-line);
  font-weight: 800;
}

.region-options button:last-child {
  border-bottom: 0;
}

.region-options button.is-selected {
  color: var(--home-blue);
  background: var(--home-light-blue);
  border-left: 4px solid var(--home-blue);
}

.home-priority-banner,
.home-secondary-banner {
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(23, 50, 77, 0.10);
}

.home-priority-banner {
  padding: 18px;
  background: var(--home-white);
  border: 2px solid var(--home-red);
  border-left-width: 7px;
}

.home-priority-banner > p,
.home-secondary-banner p {
  margin: 8px 0 2px;
  color: #526676;
  font-size: 0.78rem;
  font-weight: 800;
}

.home-priority-banner h2,
.home-secondary-banner h2 {
  margin-bottom: 12px;
  font-size: 1.16rem;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.home-priority-banner button,
.home-secondary-banner button,
.home-info-card > button,
.home-empty-state button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  color: var(--home-white);
  background: var(--home-blue);
  border: 2px solid var(--home-blue);
  border-radius: 12px;
  font-weight: 900;
}

.home-status-label,
.home-card-labels span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 9px;
  color: var(--home-blue);
  background: var(--home-light-blue);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 900;
}

.home-status-label.alert,
.home-card-labels span.alert {
  color: #9f1f1c;
  background: #ffebea;
  border: 1px solid var(--home-red);
}

.home-card-labels span.warning {
  color: #7d3f00;
  background: #fff2df;
  border: 1px solid var(--home-orange);
}

.home-shortcuts,
.home-agencies,
.home-feed {
  margin-top: 22px;
}

.home-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.home-section-heading h2 {
  margin-bottom: 0;
  font-size: 1.22rem;
}

.home-section-heading p {
  margin-bottom: 2px;
  color: #526676;
  font-size: 0.76rem;
  font-weight: 800;
}

.home-section-heading > span {
  color: #526676;
  font-size: 0.76rem;
  font-weight: 800;
}

.home-section-heading button {
  min-height: 48px;
  padding: 7px 9px;
  color: var(--home-blue);
  background: transparent;
  border: 0;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.shortcut-grid button {
  display: grid;
  min-height: 82px;
  place-items: center;
  gap: 4px;
  padding: 9px 4px;
  color: var(--home-navy);
  background: var(--home-white);
  border: 1px solid var(--home-line);
  border-radius: 14px;
  font-size: 0.76rem;
  font-weight: 900;
}

.shortcut-grid button span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--home-blue);
  background: var(--home-light-blue);
  border-radius: 11px;
  font-size: 1rem;
}

.home-secondary-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 16px;
  background: var(--home-light-blue);
  border: 1px solid #b8d2ff;
}

.home-secondary-banner h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.home-secondary-banner button {
  width: 76px;
  padding: 7px;
  font-size: 0.76rem;
}

.agency-chips,
.home-field-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agency-chips button,
.home-field-filters button {
  min-height: 48px;
  padding: 8px 12px;
  color: var(--home-navy);
  background: var(--home-white);
  border: 1px solid var(--home-line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.agency-chips button.is-selected,
.home-field-filters button.is-selected {
  color: var(--home-white);
  background: var(--home-blue);
  border-color: var(--home-blue);
  box-shadow: inset 0 -3px 0 var(--home-navy);
}

.home-field-filters {
  margin-bottom: 12px;
}

.home-result-count {
  margin-bottom: 10px;
  color: #526676;
  font-size: 0.8rem;
  font-weight: 800;
}

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

.home-info-card {
  padding: 18px;
  background: var(--home-white);
  border: 1px solid var(--home-line);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(23, 50, 77, 0.08);
}

.home-info-card[hidden] {
  display: none;
}

.home-card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.home-info-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.4;
}

.home-info-card dl {
  margin: 0 0 14px;
}

.home-info-card dl div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  padding: 5px 0;
}

.home-info-card dt {
  color: #526676;
  font-size: 0.78rem;
  font-weight: 900;
}

.home-info-card dd {
  margin: 0;
  color: var(--home-text);
  font-size: 0.86rem;
  font-weight: 700;
}

.home-info-card > button {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.home-info-card > button:active {
  transform: scale(0.99);
}

.home-empty-state {
  padding: 24px 16px;
  text-align: center;
  background: var(--home-white);
  border: 2px dashed var(--home-line);
  border-radius: 16px;
}

.home-empty-state[hidden] {
  display: none;
}

.home-empty-state p {
  margin: 6px 0 14px;
  color: #526676;
}

.home-privacy-note {
  margin: 22px 0 12px;
  padding: 14px;
  color: #526676;
  background: var(--home-white);
  border-left: 4px solid var(--home-blue);
  font-size: 0.78rem;
  line-height: 1.55;
}

.home-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 50%;
  z-index: 28;
  display: grid;
  width: min(100%, 430px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px 8px max(6px, env(safe-area-inset-bottom));
  background: var(--home-white);
  border-top: 1px solid var(--home-line);
  box-shadow: 0 -6px 18px rgba(23, 50, 77, 0.12);
  transform: translateX(-50%);
}

.home-bottom-nav button {
  display: grid;
  min-height: 58px;
  place-items: center;
  gap: 1px;
  padding: 3px 1px;
  color: #526676;
  background: transparent;
  border: 0;
  border-top: 4px solid transparent;
  font-size: 0.68rem;
  font-weight: 900;
}

.home-bottom-nav button span {
  font-size: 1rem;
}

.home-bottom-nav button.is-selected {
  color: var(--home-blue);
  background: var(--home-light-blue);
  border-top-color: var(--home-blue);
}

body[data-active-screen="public-home"] .prototype-toast {
  bottom: calc(82px + env(safe-area-inset-bottom));
}

.ui-icon {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: currentColor;
}

.icon-search::before {
  position: absolute;
  top: 4px;
  left: 3px;
  width: 10px;
  height: 10px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-search::after {
  position: absolute;
  top: 15px;
  left: 14px;
  width: 7px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.icon-calendar::before {
  position: absolute;
  inset: 3px 2px 2px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 4px;
}

.icon-calendar::after {
  position: absolute;
  top: 8px;
  right: 4px;
  left: 4px;
  height: 2px;
  content: "";
  background: currentColor;
  box-shadow: 4px 5px 0 -0.5px currentColor, 10px 5px 0 -0.5px currentColor;
}

.icon-star {
  background: currentColor;
  clip-path: polygon(50% 4%, 61% 36%, 96% 36%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 4% 36%, 39% 36%);
  transform: scale(0.82);
}

.shortcut-grid button .icon-star {
  background: var(--home-blue);
}

.icon-document::before {
  position: absolute;
  inset: 2px 4px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-document::after {
  position: absolute;
  top: 8px;
  right: 7px;
  left: 8px;
  height: 2px;
  content: "";
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.icon-phone {
  background: currentColor;
  clip-path: polygon(13% 7%, 35% 5%, 45% 27%, 34% 39%, 43% 52%, 57% 65%, 70% 55%, 92% 65%, 91% 87%, 79% 95%, 60% 87%, 40% 72%, 23% 54%, 10% 31%);
}

.shortcut-grid button .icon-phone {
  background: var(--home-blue);
}

.icon-location::before {
  position: absolute;
  top: 3px;
  left: 5px;
  width: 13px;
  height: 13px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.icon-location::after {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 5px;
  height: 5px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.icon-help::before {
  position: absolute;
  inset: 2px;
  display: grid;
  place-items: center;
  content: "?";
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.icon-home::before {
  position: absolute;
  top: 9px;
  left: 5px;
  width: 14px;
  height: 11px;
  content: "";
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}

.icon-home::after {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 12px;
  height: 12px;
  content: "";
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-briefcase::before {
  position: absolute;
  top: 7px;
  left: 2px;
  width: 20px;
  height: 14px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-briefcase::after {
  position: absolute;
  top: 3px;
  left: 8px;
  width: 8px;
  height: 6px;
  content: "";
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.icon-bell::before {
  position: absolute;
  top: 4px;
  left: 5px;
  width: 14px;
  height: 14px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 9px 9px 4px 4px;
}

.icon-bell::after {
  position: absolute;
  bottom: 1px;
  left: 9px;
  width: 6px;
  height: 3px;
  content: "";
  background: currentColor;
  border-radius: 0 0 6px 6px;
}

.icon-person::before {
  position: absolute;
  top: 2px;
  left: 8px;
  width: 8px;
  height: 8px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-person::after {
  position: absolute;
  right: 3px;
  bottom: 2px;
  left: 3px;
  height: 10px;
  content: "";
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

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

@media (max-width: 359px) {
  .screen {
    padding-right: 14px;
    padding-left: 14px;
  }

  .fact-list div,
  .detail-list div {
    grid-template-columns: 82px 1fr;
  }
}

.pwa-status-mount {
  position: fixed;
  z-index: 120;
  right: 12px;
  bottom: 96px;
  left: 12px;
  max-width: 420px;
  margin: 0 auto;
  pointer-events: none;
}

.pwa-notice {
  display: grid;
  gap: 10px;
  padding: 14px;
  color: #ffffff;
  background: #17324d;
  border: 2px solid #2563eb;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgb(23 50 77 / 28%);
  pointer-events: auto;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.pwa-notice[data-kind="offline"] {
  color: #263238;
  background: #eaf3ff;
  border-color: #2563eb;
}

.pwa-notice[data-kind="online"] {
  color: #17324d;
  background: #ffffff;
  border-color: #2563eb;
}

.pwa-notice strong {
  font-size: 18px;
  line-height: 1.35;
}

.pwa-notice p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.pwa-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pwa-notice button {
  min-width: 112px;
  min-height: 48px;
  padding: 10px 14px;
  color: #17324d;
  font: inherit;
  font-weight: 800;
  background: #ffffff;
  border: 2px solid #2563eb;
  border-radius: 12px;
  cursor: pointer;
}

.pwa-notice button[data-pwa-update] {
  color: #ffffff;
  background: #2563eb;
}

.pwa-notice button:focus-visible {
  outline: 3px solid #e53935;
  outline-offset: 3px;
}

@media (min-width: 444px) {
  .pwa-status-mount {
    right: calc((100vw - 420px) / 2);
    left: calc((100vw - 420px) / 2);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .screen.is-active {
    animation: reveal 180ms ease-out;
  }

  @keyframes reveal {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Mission003-D: approved legacy six-screen visual system.
   Every component rule is scoped to .legacy-screen so public-home stays unchanged. */
.legacy-screen {
  --legacy-blue: #2563eb;
  --legacy-navy: #17324d;
  --legacy-red: #e53935;
  --legacy-light-blue: #eaf3ff;
  --legacy-light-gray: #f5f7fa;
  --legacy-text: #263238;
  --legacy-white: #ffffff;
  --legacy-line: #d7e0ea;
  min-height: calc(100vh - 64px);
  padding: 20px 16px 112px;
  color: var(--legacy-text);
  background: var(--legacy-light-gray);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.legacy-screen h1,
.legacy-screen h2,
.legacy-screen p,
.legacy-screen li,
.legacy-screen dt,
.legacy-screen dd,
.legacy-screen button {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.legacy-screen h1 {
  color: var(--legacy-navy);
  font-size: clamp(1.45rem, 7vw, 1.65rem);
}

.legacy-screen h2 {
  color: var(--legacy-navy);
  font-size: 1.18rem;
}

.legacy-screen p,
.legacy-screen li,
.legacy-screen dt,
.legacy-screen dd {
  font-size: 1rem;
  line-height: 1.55;
}

.legacy-screen .legacy-header,
.legacy-screen .topbar {
  margin: -20px -16px 20px;
  padding: 18px 16px 20px;
  background: var(--legacy-white);
  border-bottom: 1px solid var(--legacy-line);
}

.legacy-screen .legacy-header h1,
.legacy-screen .topbar h1 {
  margin-bottom: 8px;
}

.legacy-screen .legacy-header > p:last-child {
  margin-bottom: 0;
}

.legacy-screen .eyebrow {
  color: var(--legacy-blue);
  font-size: 0.9rem;
}

.legacy-participant-home .eyebrow,
.legacy-calendar .eyebrow,
.legacy-notices .eyebrow {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 4px 10px;
  color: var(--legacy-navy);
  background: var(--legacy-light-blue);
  border: 1px solid #bdd6fa;
  border-radius: 999px;
}

.legacy-participant-home .topbar {
  align-items: flex-start;
}

.legacy-participant-home .legacy-area-labels {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.legacy-participant-home .legacy-area-labels .eyebrow {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

.legacy-participant-home .legacy-anonymous-note {
  color: #51677c;
  font-size: 0.89rem;
  font-weight: 800;
  white-space: nowrap;
}

.legacy-participant-home .topbar .text-button {
  margin-top: 0;
}

.legacy-screen .back-button,
.legacy-screen .text-button {
  min-width: 48px;
  min-height: 48px;
  color: var(--legacy-blue);
}

.legacy-screen .filter-summary {
  margin-bottom: 16px;
}

.legacy-screen .filter-summary span {
  min-height: 36px;
  padding: 7px 12px;
  color: var(--legacy-navy);
  background: var(--legacy-light-blue);
  border: 1px solid #bdd6fa;
}

.legacy-screen .job-card,
.legacy-screen .notice-card,
.legacy-screen .contact-card,
.legacy-screen .help-card,
.legacy-screen .alert-card,
.legacy-screen .legacy-summary-card {
  margin-bottom: 16px;
  padding: 18px;
  color: var(--legacy-text);
  background: var(--legacy-white);
  border: 1px solid var(--legacy-line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(23, 50, 77, 0.08);
}

.legacy-screen .job-card h2,
.legacy-screen .notice-card h2 {
  margin-top: 10px;
}

.legacy-screen .status-label {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 0.84rem;
  line-height: 1.35;
}

.legacy-screen .status-label.open,
.legacy-screen .status-label.read,
.legacy-screen .status-label.education,
.legacy-screen .status-label.culture,
.legacy-screen .status-label.general {
  color: var(--legacy-navy);
  background: var(--legacy-light-blue);
  border: 1px solid #bdd6fa;
}

.legacy-screen .status-label.check,
.legacy-screen .status-label.unread,
.legacy-screen .status-label.safety {
  color: #a91f1c;
  background: #fff0ef;
  border: 1px solid #f3aaa7;
}

.legacy-screen .fact-list,
.legacy-screen .detail-list {
  margin: 14px 0 16px;
}

.legacy-screen .fact-list div,
.legacy-screen .detail-list div {
  grid-template-columns: minmax(82px, 96px) minmax(0, 1fr);
  padding: 9px 0;
  border-bottom-color: var(--legacy-line);
}

.legacy-screen .fact-list dt,
.legacy-screen .detail-list dt {
  color: #51677c;
  font-size: 0.92rem;
}

.legacy-screen .fact-list dd,
.legacy-screen .detail-list dd {
  color: var(--legacy-text);
}

.legacy-screen .primary-button,
.legacy-screen .secondary-button {
  min-height: 56px;
  border-radius: 12px;
  font-size: 1rem;
}

.legacy-screen .primary-button {
  color: var(--legacy-white);
  background: var(--legacy-blue);
  border-color: var(--legacy-blue);
}

.legacy-screen .primary-button:hover {
  background: #194fc1;
  border-color: #194fc1;
}

.legacy-screen .secondary-button {
  color: var(--legacy-blue);
  background: var(--legacy-white);
  border-color: var(--legacy-blue);
}

.legacy-screen .detail-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top-color: var(--legacy-line);
}

.legacy-screen .legacy-summary-card {
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid var(--legacy-line);
}

.legacy-screen .legacy-organization {
  margin-bottom: 10px;
  color: #51677c;
  font-weight: 800;
}

.legacy-screen .legacy-action-group {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.legacy-screen .next-activity {
  padding: 20px;
  color: var(--legacy-navy);
  background: var(--legacy-light-blue);
  border: 1px solid #bdd6fa;
  border-radius: 16px;
}

.legacy-screen .next-activity p {
  color: var(--legacy-blue);
}

.legacy-screen .next-activity strong {
  color: var(--legacy-navy);
  font-size: 1.35rem;
}

.legacy-screen .alert-card {
  margin-top: 16px;
  background: var(--legacy-white);
  border: 1px solid #f3aaa7;
  border-left: 5px solid var(--legacy-red);
}

.legacy-screen .alert-card strong {
  color: #a91f1c;
}

.legacy-screen .home-menu {
  gap: 10px;
  margin-top: 20px;
}

.legacy-screen .home-menu button {
  min-height: 64px;
  color: var(--legacy-navy);
  background: var(--legacy-white);
  border-color: var(--legacy-line);
  border-radius: 14px;
}

.legacy-screen .home-menu button span.ui-icon {
  width: 28px;
  height: 28px;
  color: var(--legacy-blue);
  background: transparent;
  border-radius: 0;
}

.legacy-screen .privacy-note {
  color: #51677c;
  background: var(--legacy-white);
  border: 1px solid var(--legacy-line);
  border-left: 5px solid var(--legacy-blue);
}

.legacy-screen .month-label {
  color: var(--legacy-navy);
  font-size: 1.2rem;
}

.legacy-screen .schedule-list {
  gap: 12px;
}

.legacy-screen .schedule-item {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--legacy-white);
  border-color: var(--legacy-line);
  border-radius: 14px;
}

.legacy-screen .schedule-item.today {
  background: var(--legacy-light-blue);
  border: 2px solid var(--legacy-blue);
}

.legacy-screen .schedule-item time {
  min-height: 82px;
  color: var(--legacy-navy);
  background: var(--legacy-light-blue);
}

.legacy-screen .schedule-item p {
  color: #51677c;
  font-size: 0.92rem;
}

.legacy-screen .notice-card.important {
  border: 1px solid #f3aaa7;
  border-left: 5px solid var(--legacy-red);
}

.legacy-screen .notice-date {
  color: #51677c;
  font-size: 0.9rem;
}

.legacy-screen .legacy-label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legacy-screen .contact-card {
  color: var(--legacy-text);
  background: var(--legacy-navy);
  border: 0;
}

.legacy-screen .contact-card h2,
.legacy-screen .contact-card p,
.legacy-screen .contact-card strong {
  color: var(--legacy-white);
}

.legacy-screen .contact-label {
  color: #cfe3ff !important;
}

.legacy-screen .contact-card .primary-button {
  color: var(--legacy-navy);
  background: var(--legacy-white);
  border-color: var(--legacy-white);
}

.legacy-screen .help-card {
  margin-top: 22px;
  background: var(--legacy-light-blue);
}

body[data-active-screen="jobs"] #app,
body[data-active-screen="job-detail"] #app,
body[data-active-screen="participant-home"] #app,
body[data-active-screen="calendar"] #app,
body[data-active-screen="notices"] #app,
body[data-active-screen="contact"] #app {
  background: #f5f7fa;
}

body[data-active-screen="jobs"] .prototype-banner,
body[data-active-screen="job-detail"] .prototype-banner,
body[data-active-screen="participant-home"] .prototype-banner,
body[data-active-screen="calendar"] .prototype-banner,
body[data-active-screen="notices"] .prototype-banner,
body[data-active-screen="contact"] .prototype-banner {
  color: #17324d;
  background: #eaf3ff;
  border-bottom-color: #bdd6fa;
}

body[data-active-screen="jobs"] .prototype-toast,
body[data-active-screen="job-detail"] .prototype-toast,
body[data-active-screen="participant-home"] .prototype-toast,
body[data-active-screen="calendar"] .prototype-toast,
body[data-active-screen="notices"] .prototype-toast,
body[data-active-screen="contact"] .prototype-toast {
  bottom: 20px;
  color: #ffffff;
  background: #17324d;
}

@media (max-width: 359px) {
  .legacy-screen {
    padding-right: 14px;
    padding-left: 14px;
  }

  .legacy-screen .legacy-header,
  .legacy-screen .topbar {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .legacy-screen .fact-list div,
  .legacy-screen .detail-list div {
    grid-template-columns: 82px minmax(0, 1fr);
  }
}

/* ==================================================
   Mission M007 / M011: 기관 직원(staff) 및 관공서(government) 업무용 쉘 스타일
   - 1440px / 1024px PC 대시보드 좌측 LNB 및 공통 상단 헤더
   - 390px 모바일 가로스크롤 방지 및 유연한 카드 반응형
   - 브랜드 색상 체계(#2563EB, #17324D) 일관 유지
================================================== */
body[data-active-role="staff"] .prototype-shell,
body[data-active-role="government"] .prototype-shell {
  width: 100%;
  max-width: 1440px;
  box-shadow: none;
  background: #f8fafc;
}

body[data-active-role="staff"] .home-bottom-nav,
body[data-active-role="government"] .home-bottom-nav {
  display: none !important;
}

.admin-shell {
  padding: 0 0 80px;
  color: #1e293b;
  background: #f8fafc;
}

/* 1. 관리자 공통 상단 헤더 (admin-topbar) */
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: #17324d;
  color: #ffffff;
  border-bottom: 3px solid #2563eb;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-name {
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 600;
}

.platform-home-link {
  color: #94a3b8 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: color 0.15s ease;
}

.platform-home-link:hover,
.platform-home-link:focus-visible {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.admin-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-back-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.admin-back-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* 관리자 헤더: ← 서비스 선택 보조 링크 */
.admin-service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #93c5fd !important;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(147, 197, 253, 0.3);
  border-radius: 6px;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-service-link:hover,
.admin-service-link:focus-visible {
  color: #ffffff !important;
  background: rgba(37, 99, 235, 0.35);
  border-color: rgba(147, 197, 253, 0.6);
  text-decoration: none !important;
}

.admin-service-link:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

/* 어르신 화면: ← 서비스 선택 보조 링크 */
.participant-service-nav {
  margin-bottom: 6px;
}

.service-select-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb !important;
  text-decoration: none !important;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.08);
  transition: all 0.15s ease;
}

.service-select-link:hover,
.service-select-link:focus-visible {
  color: #1d4ed8 !important;
  background: rgba(37, 99, 235, 0.16);
  text-decoration: none !important;
}

.service-select-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.topbar-divider {
  color: #475569;
}

.agency-title {
  font-size: 1.12rem;
  color: #ffffff;
  font-weight: 800;
}

.role-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.staff-pill {
  background: #2563eb;
  color: #ffffff;
}

.gov-pill {
  background: #059669;
  color: #ffffff;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-contact-pill {
  font-size: 0.75rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.admin-profile-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

/* 2. PC 2열 레이아웃 (admin-body-layout) */
.admin-body-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 65px);
  background: #f8fafc;
}

/* 좌측 LNB 사이드바 */
.admin-lnb {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 20px 14px;
}

.lnb-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 0 10px;
}

.lnb-nav {
  display: grid;
  gap: 4px;
}

.lnb-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  min-height: 44px;
}

.lnb-nav button:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

.lnb-nav button:focus-visible {
  outline: 2px solid #2563eb !important;
  outline-offset: 1px;
}

.lnb-nav button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.lnb-nav button.is-selected {
  background: #e0e7ff;
  color: #1e40af;
  font-weight: 800;
}

.lnb-icon {
  font-size: 1.05rem;
}

/* 우측 메인 업무 영역 */
.admin-main-area {
  padding: 24px 28px 60px;
  background: #f8fafc;
  min-width: 0; /* overflow 방지 */
}

.admin-content-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-content-heading h1 {
  font-size: 1.35rem;
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

/* 1024px 태블릿 대응 */
@media (max-width: 1024px) {
  .admin-body-layout {
    grid-template-columns: 200px 1fr;
  }
  .admin-main-area {
    padding: 18px 18px 50px;
  }
}

/* 768px / 390px 모바일 대응 */
@media (max-width: 768px) {
  .admin-body-layout {
    grid-template-columns: 1fr;
  }
  .admin-lnb {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 14px;
  }
  .lnb-nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
  }
  .lnb-nav button {
    width: auto;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.82rem;
  }
  .admin-main-area {
    padding: 14px 12px 40px;
  }
}

.admin-content-grid {
  display: grid;
  gap: 20px;
}

.admin-summary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.admin-summary-card h3 {
  margin: 0 0 16px 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.metric-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.metric-box span {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
}

.metric-box strong {
  font-size: 1.35rem;
  color: #0f172a;
}

.metric-box.alert {
  background: #fef2f2;
  border-color: #fecaca;
}
.metric-box.alert strong {
  color: #dc2626;
}

.metric-box.warning {
  background: #fffbeb;
  border-color: #fde68a;
}
.metric-box.warning strong {
  color: #d97706;
}

.admin-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.admin-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-panel h4 {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.admin-empty-note {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.admin-panel button {
  align-self: flex-start;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
}

/* ==================================================
   Mission M008: staff 업무용 실사용형 세부 스타일
================================================== */
.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-card-header h3,
.admin-card-header h4 {
  margin: 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.admin-panel-sub {
  margin: 4px 0 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.admin-agency-contact {
  margin: 6px 0 0 0;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.admin-user-sub {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: normal;
}

.demo-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 4px;
}

.alert-count-pill {
  font-size: 0.78rem;
  font-weight: 800;
  color: #dc2626;
  background: #fee2e2;
  padding: 3px 10px;
  border-radius: 12px;
}

/* 오늘 처리할 업무 리스트 */
.task-list {
  display: grid;
  gap: 10px;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  gap: 14px;
}

.task-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.task-badge.alert { background: #fee2e2; color: #b91c1c; }
.task-badge.warning { background: #fef3c7; color: #b45309; }
.task-badge.normal { background: #e0f2fe; color: #0369a1; }

.task-info {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 140px;
}
.task-info strong {
  font-size: 0.88rem;
  color: #1e293b;
}
.task-info span {
  font-size: 0.78rem;
  color: #64748b;
}

/* PC 업무 액션 버튼: 가로폭 독점 방지 및 compact 버튼 확정 */
.admin-shell .task-item button,
.task-item button {
  width: auto !important;
  min-width: 80px !important;
  max-width: 120px !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  min-height: 34px !important;
  padding: 6px 14px !important;
  font-size: 0.82rem !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.admin-shell .task-item button:hover,
.task-item button:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

@media (max-width: 600px) {
  .task-item {
    flex-wrap: wrap;
  }
  .admin-shell .task-item button,
  .task-item button {
    width: 100% !important;
    max-width: none !important;
    min-height: 44px !important;
    margin-top: 6px !important;
  }
}

/* 참여자 및 출결 테이블 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}
.status-badge.success { background: #dcfce7; color: #15803d; }
.status-badge.alert { background: #fee2e2; color: #b91c1c; }
.status-badge.muted { background: #f1f5f9; color: #64748b; }

.table-btn {
  padding: 4px 10px;
  min-height: 32px;
  font-size: 0.78rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 6px;
  color: #334155;
}

/* 최근 공지 및 일정 리스트 */
.admin-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.admin-item-list li {
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  display: grid;
  gap: 4px;
}
.admin-item-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.admin-item-list strong {
  font-size: 0.88rem;
  color: #1e293b;
}
.admin-item-list span {
  font-size: 0.78rem;
  color: #64748b;
}

.text-link-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0;
}
.text-link-btn:hover {
  text-decoration: underline;
}

/* ==================================================
   Mission M017: 신규 서브화면 및 관리자 패널 뷰 스타일
================================================== */
.admin-panel-view[hidden] {
  display: none !important;
}

.admin-panel-view:not([hidden]) {
  display: block;
  animation: fadeInPanel 0.15s ease-in-out;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-arrow {
  font-size: 0.8rem;
  color: #64748b;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 18px 16px 18px;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}

.fav-card, .app-history-card, .neighborhood-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.app-history-header, .neighborhood-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.app-history-card h3, .neighborhood-card h3 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.app-history-note {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  background: #f1f5f9;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}

.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 8px;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #b45309;
  cursor: pointer;
}

.fav-btn.is-fav {
  background: #f59e0b;
  color: #ffffff;
}
.mock-role-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #475569;
}

.mock-role-switcher select {
  min-height: 36px;
  padding: 6px 28px 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #17324d;
  font-weight: 700;
}

.lnb-nav button:disabled,
[data-app-approve]:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
