:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-muted: #f3f4f6;
  --line: #dbe2ea;
  --line-strong: #c4ced9;
  --text: #17202a;
  --muted: #5d6b79;
  --primary: #1f5eff;
  --primary-strong: #174ed7;
  --primary-soft: #eaf0ff;
  --success: #1c8f55;
  --success-soft: #e8f8ef;
  --warning: #9d5f11;
  --warning-soft: #fff3e2;
  --shadow: 0 16px 36px rgba(20, 38, 63, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Public Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(31, 94, 255, 0.08), transparent 28%), linear-gradient(180deg, #f9fbfe 0%, #f3f6fa 100%);
}

body.is-modal-open {
  overflow: hidden;
}

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

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

body,
input,
select,
textarea,
button {
  -webkit-font-smoothing: antialiased;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 16px 0;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(219, 226, 234, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(20, 38, 63, 0.06);
}

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

.brand strong,
h1,
h2,
h3,
.button,
.metric-card strong,
.status-chip,
.priority-chip {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #80a7ff 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
}

.admin-entry {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 5px;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: var(--surface-muted);
  cursor: pointer;
}

.admin-entry span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7c8794;
}

.page-main {
  display: grid;
  gap: 16px;
  padding: 16px 16px 112px;
}

.hero-card,
.metric-card,
.panel-section,
.notice-card,
.request-form,
.status-card,
.recent-item,
.admin-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 226, 234, 0.95);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(234, 240, 255, 0.9), rgba(255, 255, 255, 0.95)), var(--surface);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.05rem, 7vw, 3.6rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 4.4vw, 2.1rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.hero-copy,
.section-head p,
.form-status,
.status-meta,
.status-empty,
.admin-copy,
.notice-card p,
label small,
.section-note,
.recent-meta {
  color: var(--muted);
  line-height: 1.55;
}

.hero-copy {
  margin-bottom: 18px;
  font-size: 0.98rem;
}

.hero-actions,
.form-actions,
.pattern-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-strong);
}

.button-secondary {
  background: var(--surface-muted);
  color: var(--text);
}

.button-large {
  min-height: 52px;
  padding: 0 24px;
  font-size: 0.98rem;
}

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

.metric-card {
  padding: 16px;
  border-radius: 22px;
}

.metric-card p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.metric-card strong {
  display: block;
  font-size: clamp(1.9rem, 8vw, 2.7rem);
}

.metric-card-primary {
  background: linear-gradient(135deg, rgba(31, 94, 255, 0.12), rgba(255, 255, 255, 0.96));
}

.panel-section,
.notice-card {
  padding: 20px 16px;
  border-radius: 26px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.section-note {
  font-size: 0.78rem;
  font-weight: 700;
}

.recent-list,
.status-board {
  display: grid;
  gap: 10px;
}

.recent-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
}

.recent-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.96rem;
  font-weight: 800;
}

.recent-meta {
  font-size: 0.88rem;
}

.request-form {
  display: grid;
  gap: 14px;
  padding: 20px 16px;
  border-radius: 26px;
}

.admin-form {
  box-shadow: none;
  background: transparent;
}

.field-grid {
  display: grid;
  gap: 12px;
}

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

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #93a0ad;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.12);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.upload-preview {
  display: grid;
  gap: 10px;
  min-height: 54px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--surface-muted);
  color: var(--muted);
}

.upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-box {
  width: min(100%, 320px);
}

.status-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
}

.status-top,
.status-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.status-chip,
.priority-chip,
.recent-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.status-chip,
.recent-status.is-received {
  background: var(--primary-soft);
  color: var(--primary);
}

.status-chip[data-status="완료"],
.recent-status.is-done {
  background: var(--success-soft);
  color: var(--success);
}

.status-chip[data-status="점검"],
.recent-status.is-progress {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-chip[data-status="보류"] {
  background: #eceff3;
  color: #677587;
}

.priority-chip {
  background: var(--surface-muted);
  color: var(--muted);
}

.priority-chip[data-priority="긴급"] {
  background: #ffe6e2;
  color: #b22d1f;
}

.priority-chip[data-priority="높음"] {
  background: #fff1dc;
  color: var(--warning);
}

.status-meta {
  display: grid;
  gap: 2px;
  font-size: 0.88rem;
}

.media-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.media-list li + li {
  margin-top: 6px;
}

.media-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.status-empty {
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.notice-card {
  background: linear-gradient(135deg, rgba(31, 94, 255, 0.08), rgba(255, 255, 255, 0.96));
}

.bottom-nav {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(219, 226, 234, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(20, 38, 63, 0.12);
}

.bottom-link {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 11px 8px;
  border-radius: 18px;
  color: #6a7786;
  font-size: 0.9rem;
  font-weight: 700;
}

.bottom-link small {
  display: none;
}

.bottom-link.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

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

.admin-modal[hidden] {
  display: none;
}

.admin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 31, 48, 0.26);
  backdrop-filter: blur(8px);
}

.admin-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: 20px 16px;
  border-radius: 28px;
}

.admin-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.admin-step {
  display: grid;
  gap: 16px;
}

.admin-head {
  padding-right: 64px;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: min(248px, 100%);
}

.pattern-dot {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.pattern-dot.is-active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(0.97);
}

@media (max-width: 720px) {
  .field-grid-two {
    grid-template-columns: 1fr;
  }

  .section-head-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-box {
    width: 100%;
  }

  .recent-item {
    grid-template-columns: auto 1fr;
  }

  .recent-status {
    grid-column: 2;
    justify-self: start;
  }
}

@media (min-width: 960px) {
  .page-main {
    gap: 18px;
    padding-left: 24px;
    padding-right: 24px;
  }

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