@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/woff2/Pretendard-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/woff2/Pretendard-Light.woff2") format("woff2");
}

@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/woff2/Pretendard-SemiBold.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --page: #fffaf7;
  --ink: #000000;
  --muted: #6b625e;
  --line: #f0e3dc;
  --soft: #fff6ed;
  --header-bg: #ffffff;
  --header-line: #ffd5bf;
  --orange: #f28a58;
  --orange-dark: #c96534;
  --danger: #c62828;
  --shadow: 0 8px 24px rgba(28, 16, 8, 0.07);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--page);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  font-weight: 300;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.42;
}

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 107, 26, 0.04);
}

.sticky-panel {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(20, 12, 6, 0.05);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 48px;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(196, 100, 55, 0.18);
  background: #e98b5d;
  color: #ffffff;
}

.top-bar h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0 auto 0 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-bar h1 img {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 0;
}

.top-bar h1 > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-home-link {
  display: inline-grid;
  place-items: center;
}

.home-body {
  background: var(--page);
}

.home-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 107, 26, 0.04);
}

.home-top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 48px;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(196, 100, 55, 0.18);
  background: #e98b5d;
  color: #ffffff;
}

.home-top-bar .icon-button {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(120, 42, 4, 0.14);
}

.home-top-bar .menu-dot-button {
  color: #ffffff;
}

.home-top-bar h1 {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin: 0 auto 0 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-top-bar h1 img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.home-title-main {
  flex: 0 0 auto;
}

.home-title-dash {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 300;
}

.home-title-sub {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 300;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hero {
  display: grid;
  gap: 5px;
  padding: 18px 16px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.home-hero strong {
  display: block;
  color: #000000;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.home-hero p {
  margin: 0;
  color: #6b625e;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.35;
}

.home-section-title {
  padding: 14px 16px 0;
  color: #8b5a43;
  font-size: 12px;
  font-weight: 300;
}

.home-links {
  display: grid;
  gap: 9px;
  padding: 8px 14px 28px;
}

.home-link-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 26px;
  align-items: center;
  min-height: 58px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #000;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(20, 12, 6, 0.03);
}

.home-link-card img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.home-link-card span {
  min-width: 0;
  overflow: hidden;
  padding-left: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-link-card i {
  display: grid;
  width: 26px;
  height: 30px;
  place-items: center;
  color: var(--orange);
  font-size: 23px;
  font-style: normal;
  font-weight: 300;
}

.home-link-card:active {
  background: var(--soft);
}

.home-link-card.is-coming-soon {
  cursor: default;
  opacity: 0.72;
}

.home-link-card.is-coming-soon i {
  color: #c7aaa0;
}

.home-error {
  margin: 6px 18px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.home-error-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 26px 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.home-error-card p {
  margin: 0;
}

.home-error-card button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
}

.top-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(120, 42, 4, 0.14);
}

.icon-button img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.icon-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.kakao-open-button {
  text-decoration: none;
}

.menu-dot-button {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.profile-panel {
  padding: 12px 14px 8px;
}

.profile-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 58px;
  gap: 6px;
  align-items: end;
}

.profile-form label,
.add-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 300;
}

.profile-form label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-form input,
.add-form input,
.add-form select,
.add-form textarea {
  width: 100%;
  min-width: 0;
  min-inline-size: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
}

.profile-form input,
.profile-form button,
.add-form input,
.add-form select {
  min-height: 42px;
  padding: 0 10px;
}

.profile-form input {
  font-size: 13px;
}

.profile-form input[type="date"] {
  padding: 0 7px;
  font-size: 12px;
}

.profile-form input:focus,
.add-form input:focus,
.add-form select:focus,
.add-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.profile-form button,
.submit-add {
  min-width: 58px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff7b2b 0%, var(--orange) 100%);
  color: #ffffff;
  font-weight: 300;
  box-shadow: 0 6px 16px rgba(255, 107, 26, 0.22);
}

.profile-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 40px;
  gap: 12px;
}

.profile-title {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 8px;
}

.profile-title strong {
  color: var(--orange);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.profile-title span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 300;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-summary button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 107, 26, 0.18);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 300;
}

.partner-copy {
  margin: 0;
  padding: 0 8px 8px;
  overflow: hidden;
  color: var(--orange);
  font-size: 9px;
  font-weight: 300;
  line-height: 1.25;
  text-overflow: clip;
  white-space: nowrap;
}

.filters {
  display: grid;
  position: relative;
  gap: 7px;
  padding: 2px 14px 12px;
}

.filters > .add-pill {
  position: absolute;
  top: 2px;
  right: 14px;
  z-index: 2;
}

.filters.has-add .filter-line:first-child,
.filters:not(.sheet-filters) .filter-line:first-child {
  padding-right: 46px;
}

.filter-line {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-line::-webkit-scrollbar {
  display: none;
}

.filter-pill,
.add-pill {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 300;
}

.filter-pill {
  padding: 0 15px;
  box-shadow: 0 2px 10px rgba(20, 12, 6, 0.03);
}

.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-label img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.filter-pill.is-active {
  border-color: rgba(242, 138, 88, 0.35);
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(242, 138, 88, 0.16);
}

.add-pill {
  width: 36px;
  margin-left: auto;
  border-color: var(--orange);
  background: linear-gradient(180deg, #f59a6b 0%, var(--orange) 100%);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(242, 138, 88, 0.2);
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
}

.status-summary {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  white-space: nowrap;
}

.status-summary strong {
  color: var(--ink);
  font-size: 12px;
}

.status-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.unfinished-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 11px;
  white-space: nowrap;
}

.unfinished-toggle input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--orange);
}

.reset-list-button {
  color: var(--ink);
}

.reset-list-button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 107, 26, 0.16);
  border-radius: 8px;
  background: var(--soft);
  font-size: 11px;
  font-weight: 300;
}

.item-list {
  display: grid;
  gap: 8px;
  padding: 0 14px 24px;
}

.item-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 26px 26px 26px;
  gap: 6px;
  align-items: center;
  min-height: 56px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(20, 12, 6, 0.035);
}

.sheet-item-row {
  grid-template-columns: 24px minmax(0, 1fr) 26px 26px 26px;
}

.sheet-add-line {
  display: flex;
  justify-content: flex-end;
  padding: 0 14px 12px;
}

.round-check {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
}

.round-check input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
}

.round-check span {
  width: 13px;
  height: 13px;
  border: 1.6px solid #1f1b18;
  border-radius: 50%;
  background: var(--bg);
}

.round-check input:checked + span {
  border-color: var(--orange);
  background:
    radial-gradient(circle at center, var(--orange) 0 42%, transparent 44%),
    var(--bg);
}

.item-copy {
  min-width: 0;
  padding: 9px 0;
  cursor: pointer;
}

.item-title {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.25;
}

.item-desc {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.item-row.is-checked .item-title,
.item-row.is-checked .item-desc {
  color: #a69b95;
  text-decoration: line-through;
}

.item-row.is-checked {
  background: #fffaf7;
}

.importance {
  color: var(--ink);
  font-size: 14px;
  font-weight: 300;
  text-align: center;
  line-height: 1;
}

.cart-link,
.cart-disabled,
.delete-button,
.importance-button {
  display: grid;
  width: 26px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.cart-link:hover,
.delete-button:hover,
.importance-button:hover {
  background: var(--soft);
}

.cart-link img,
.cart-disabled img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.cart-disabled {
  color: var(--ink);
  opacity: 0.28;
}

.delete-button {
  width: 26px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  font-weight: 300;
}

.importance-button {
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  font-weight: 300;
}

.importance-button:not(.is-active) {
  color: #cfc3bd;
}

.empty-state {
  padding: 38px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  text-align: center;
}

.add-dialog {
  width: min(92vw, 430px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}

.add-dialog::backdrop,
.menu-dialog::backdrop,
.confirm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.32);
}

.confirm-dialog {
  width: min(86vw, 340px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.confirm-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.confirm-card p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.confirm-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
}

.confirm-actions [data-confirm-yes] {
  border-color: rgba(198, 40, 40, 0.24);
  background: #fff3f1;
  color: var(--danger);
}

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

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-head strong {
  font-size: 18px;
}

.dialog-head button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  font-weight: 300;
}

.category-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.category-fields:has(select[hidden]) {
  grid-template-columns: 1fr;
}

.category-fields legend {
  grid-column: 1 / -1;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 300;
}

.add-form textarea {
  min-height: 76px;
  padding: 10px;
  resize: vertical;
}

.add-form .important-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  justify-content: flex-start;
}

.important-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

.submit-add {
  min-height: 44px;
}

.menu-dialog {
  width: min(92vw, 430px);
  max-height: min(86dvh, 720px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}

.menu-content {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  max-height: min(86dvh, 720px);
  padding: 16px;
  overflow: hidden;
}

.menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.menu-actions button,
.copy-code-button,
.join-code-form button,
.home-code-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 300;
}

.menu-actions button.is-active {
  border-color: var(--orange);
  background: var(--soft);
  color: var(--orange-dark);
}

.menu-panel {
  display: grid;
  gap: 10px;
  min-height: 84px;
  max-height: min(50dvh, 400px);
  overflow-y: auto;
  padding-right: 4px;
  color: var(--ink);
  font-size: 13px;
}

.usage-guide {
  display: grid;
  gap: 14px;
}

.usage-alert {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--orange-dark);
  font-size: 12px;
  line-height: 1.45;
}

.usage-step {
  display: grid;
  gap: 5px;
}

.usage-step strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.usage-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
}

.usage-feedback {
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffaf6;
  color: var(--ink);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.45;
}

.code-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.code-value {
  color: var(--orange);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 2px;
}

.code-note,
.help-list {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.join-code-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 8px;
}

.join-code-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-transform: uppercase;
}

.menu-message {
  min-height: 18px;
  margin: 0;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 300;
}

@media (min-width: 390px) {
  .partner-copy {
    font-size: 10.5px;
  }
}

@media (max-width: 350px) {
  .top-bar {
    padding: 6px 12px;
  }

  .profile-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 50px;
    gap: 5px;
  }

  .profile-form button {
    width: auto;
    min-width: 50px;
    padding: 0;
    font-size: 13px;
  }

  .profile-form label {
    font-size: 10px;
  }

  .profile-form input {
    padding: 0 7px;
  }

  .partner-copy {
    font-size: 8.25px;
  }

  .profile-summary {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .status-line {
    align-items: flex-start;
  }

  .status-tools {
    flex-wrap: wrap;
    row-gap: 5px;
  }
}

.admin-body {
  background: var(--page);
}

.admin-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
}

.admin-top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(196, 100, 55, 0.18);
  background: #e98b5d;
  color: #ffffff;
}

.admin-top-bar h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0 auto 0 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.admin-top-bar h1 img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.admin-home-link,
.admin-ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(242, 138, 88, 0.34);
  border-radius: 16px;
  background: #ffffff;
  color: var(--orange-dark);
  font-size: 12px;
  text-decoration: none;
}

.admin-home-link {
  min-width: 46px;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.admin-ghost-button {
  padding: 0 12px;
}

.admin-panel {
  margin: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(28, 16, 8, 0.04);
}

.admin-heading h2,
.admin-section-head h3 {
  margin: 0;
  color: #000000;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.admin-section-head h3 {
  font-size: 15px;
}

.admin-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.admin-login-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

.admin-login-form label span {
  color: var(--muted);
  font-size: 11px;
}

.admin-login-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 12px;
  background: #fffdfb;
  color: #000000;
  font-size: 14px;
}

.admin-login-form button {
  min-height: 42px;
  border: 0;
  border-radius: 18px;
  background: var(--orange);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.admin-message {
  min-height: 16px;
  margin: 0;
  color: var(--danger);
  font-size: 12px;
}

.admin-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 14px 0;
}

.admin-stats {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-stats article {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 32px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.admin-stats article + article::before {
  content: "";
  width: 1px;
  height: 12px;
  margin: 0 10px;
  background: var(--line);
}

.admin-stats span {
  color: var(--muted);
  font-size: 11px;
}

.admin-stats strong {
  color: #000000;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

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

.admin-list-summary {
  display: grid;
  gap: 8px;
}

.admin-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.admin-list-row a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  color: #000000;
  text-decoration: none;
}

.admin-list-row a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-summary strong {
  color: var(--orange-dark);
  font-weight: 600;
}

.admin-public-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 10px;
  background: #fffdfb;
  color: #000000;
  font-size: 12px;
}

.admin-public-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--orange);
}

.admin-manager {
  display: grid;
  gap: 12px;
}

.admin-select-label {
  display: grid;
  gap: 6px;
}

.admin-select-label span {
  color: var(--muted);
  font-size: 11px;
}

.admin-select-label select,
.admin-global-form input,
.admin-global-form textarea,
.admin-global-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 11px;
  background: #fffdfb;
  color: #000000;
  font-size: 13px;
}

.admin-global-form {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: var(--soft);
}

.admin-global-form textarea {
  min-height: 62px;
  padding-top: 10px;
  resize: vertical;
}

.admin-global-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-global-categories:has(select[hidden]) {
  grid-template-columns: 1fr;
}

.admin-form-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #000000;
  font-size: 12px;
}

.admin-form-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--orange);
}

.admin-global-form button {
  min-height: 40px;
  border: 0;
  border-radius: 18px;
  background: var(--orange);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.admin-global-items,
.admin-custom-items {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.admin-global-item,
.admin-custom-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fffdfb;
}

.admin-global-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-global-item strong,
.admin-custom-item strong {
  display: block;
  color: #000000;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.admin-global-item span,
.admin-global-item em,
.admin-custom-item span,
.admin-custom-item em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.admin-global-item p,
.admin-custom-item p {
  margin: 6px 0 0;
  color: #000000;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-line;
}

.admin-global-item button {
  min-height: 34px;
  border: 1px solid #ffd5bf;
  border-radius: 14px;
  padding: 0 11px;
  background: #ffffff;
  color: var(--orange-dark);
  font-size: 12px;
}

.admin-global-item button[data-global-delete] {
  color: var(--danger);
}

.admin-item-actions {
  display: grid;
  gap: 6px;
}

.admin-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.admin-form-actions button {
  min-height: 40px;
}

.admin-form-actions button[type="button"] {
  border: 1px solid #ffd5bf;
  background: #ffffff;
  color: var(--orange-dark);
  font-size: 12px;
}

.admin-user-rows {
  display: grid;
  gap: 10px;
}

.admin-user-rows article {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fffdfb;
}

.admin-user-rows strong {
  display: block;
  margin-bottom: 3px;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
}

.admin-user-rows span {
  color: var(--muted);
  font-size: 12px;
}

.admin-user-rows dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.admin-user-rows dl div {
  border-radius: 12px;
  padding: 8px;
  background: var(--soft);
}

.admin-user-rows dt,
.admin-user-rows dd {
  margin: 0;
  font-size: 11px;
}

.admin-user-rows dt {
  color: var(--muted);
}

.admin-user-rows dd {
  margin-top: 2px;
  color: #000000;
  font-weight: 600;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
