:root {
  --ink: #18332c;
  --muted: #5f6f69;
  --brand: #0f6b52;
  --brand-dark: #084b3a;
  --brand-soft: #dff3eb;
  --accent: #f4a261;
  --warning: #fff1cc;
  --surface: #ffffff;
  --background: #f3f6f4;
  --line: #cbd8d2;
  --danger: #a8392d;
  --shadow: 0 10px 26px rgba(18, 55, 45, 0.10);
  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: #dce5e1;
}

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

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
[tabindex]:focus-visible {
  outline: 4px solid #f4a261;
  outline-offset: 3px;
}

.prototype-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  box-shadow: 0 0 40px rgba(20, 45, 38, 0.14);
}

.prototype-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  padding: 10px 18px;
  color: #4b3217;
  background: #ffe8b5;
  border-bottom: 1px solid #e3c57d;
  font-size: 0.78rem;
}

.prototype-banner strong {
  font-size: 0.9rem;
}

#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: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 8px;
}

.home-app-header h1 {
  margin: 3px 0 0;
  font-size: 1.38rem;
  letter-spacing: -0.045em;
}

.prototype-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 8px;
  color: var(--home-blue);
  background: var(--home-light-blue);
  border: 1px solid #b8d2ff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.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: 52px;
}

.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);
  }
}
