:root {
  --bg: #f2f8ef;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(238, 248, 230, 0.78);
  --ink: #102019;
  --muted: #607069;
  --line: rgba(37, 93, 66, 0.16);
  --primary: #157348;
  --primary-dark: #0a5132;
  --primary-soft: #dff1df;
  --accent: #b88a08;
  --gold: #d6a514;
  --success: #16724a;
  --warning: #93640b;
  --danger: #b42318;
  --glass-line: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 56px rgba(15, 81, 50, 0.13);
  --shadow-soft: 0 10px 28px rgba(15, 81, 50, 0.08);
  --radius: 8px;
  --font: "Sarabun", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0, rgba(232, 245, 224, 0.88) 38%, rgba(251, 240, 198, 0.58) 72%, rgba(255, 255, 255, 0.86) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0, rgba(242, 248, 239, 0) 420px),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
}

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

button,
input,
textarea,
select {
  letter-spacing: 0;
}

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

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

img,
iframe {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.top-loader {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 4px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.top-loader.is-active {
  opacity: 1;
}

.top-loader span {
  position: absolute;
  inset-block: 0;
  left: -36%;
  width: 36%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(21, 115, 72, 0), var(--gold), var(--primary), rgba(21, 115, 72, 0));
  box-shadow: 0 0 18px rgba(214, 165, 20, 0.55);
  animation: loadingBar 1.15s ease-in-out infinite;
}

@keyframes loadingBar {
  0% {
    left: -36%;
  }

  100% {
    left: 100%;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64)),
    rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 8px 30px rgba(15, 81, 50, 0.08);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

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

.brand-mark {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(214, 165, 20, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(15, 81, 50, 0.14);
}

.brand-mark img {
  display: block;
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.brand-text {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1.25;
}

.brand-text strong {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav-link {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.68);
  color: var(--primary-dark);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px) saturate(145%);
}

.nav-link svg,
.primary-button svg,
.secondary-button svg,
.ghost-button svg,
.danger-button svg,
.icon-button svg,
.text-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.primary-button {
  width: fit-content;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 81, 50, 0.24);
}

.primary-button:hover,
.nav-link:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.icon-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled,
.icon-button:disabled,
.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.secondary-button,
.ghost-button,
.danger-button {
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px) saturate(145%);
}

.secondary-button {
  border-color: rgba(21, 115, 72, 0.22);
  color: var(--primary-dark);
}

.ghost-button {
  color: var(--muted);
}

.danger-button {
  border-color: rgba(180, 35, 24, 0.25);
  color: var(--danger);
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary-dark);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px) saturate(145%);
}

.text-button {
  min-height: 32px;
  padding: 0;
  background: transparent;
  color: var(--primary-dark);
}

.page-grid {
  display: grid;
  grid-template-areas:
    "form status"
    "form completed";
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.76fr);
  gap: 24px;
  padding-block: 32px 56px;
  align-items: start;
}

.submission-surface {
  grid-area: form;
}

.status-section {
  grid-area: status;
}

.completed-section {
  grid-area: completed;
}

.submission-surface,
.status-section,
.completed-section,
.login-panel,
.queue-panel,
.detail-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46)),
    rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(150%);
}

.submission-surface::before,
.status-section::before,
.completed-section::before,
.login-panel::before,
.queue-panel::before,
.detail-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 36%),
    linear-gradient(120deg, rgba(214, 165, 20, 0.14), rgba(21, 115, 72, 0) 42%);
  pointer-events: none;
}

.submission-surface > *,
.status-section > *,
.completed-section > *,
.login-panel > *,
.queue-panel > *,
.detail-panel > * {
  position: relative;
  z-index: 1;
}

.submission-surface,
.status-section,
.completed-section,
.login-panel,
.detail-panel {
  padding: clamp(20px, 3vw, 32px);
}

.section-heading,
.section-toolbar,
.detail-header,
.upload-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.section-heading.centered {
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.48rem, 2.35vw, 2.08rem);
  font-weight: 700;
  line-height: 1.34;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.18rem, 1.8vw, 1.48rem);
  font-weight: 700;
  line-height: 1.34;
  text-wrap: balance;
}

h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  text-wrap: balance;
}

.news-form,
.login-form,
.detail-form {
  display: grid;
  gap: 18px;
}

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

.field.slim {
  gap: 6px;
}

label {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(37, 93, 66, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  outline: none;
  padding: 11px 13px;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 12px) 20px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(21, 115, 72, 0.62);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 4px rgba(21, 115, 72, 0.12);
}

::placeholder {
  color: #98a2b3;
}

.upload-box {
  position: relative;
  display: grid;
  min-height: 154px;
  place-items: center;
  border: 1.5px dashed rgba(21, 115, 72, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(223, 241, 223, 0.76)),
    var(--surface-soft);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.upload-box input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-copy {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px;
  color: var(--primary-dark);
  text-align: center;
  pointer-events: none;
}

.upload-copy svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
}

.upload-copy span {
  color: var(--muted);
  font-size: 0.94rem;
}

.upload-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.preview-card {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  aspect-ratio: 1;
  box-shadow: var(--shadow-soft);
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-card button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(29, 37, 44, 0.76);
  color: #fff;
  cursor: pointer;
}

.preview-card button svg {
  width: 16px;
  height: 16px;
}

.alert {
  border: 1px solid rgba(21, 115, 72, 0.2);
  border-radius: var(--radius);
  background: rgba(237, 248, 242, 0.82);
  color: var(--primary-dark);
  padding: 12px 14px;
  line-height: 1.55;
  backdrop-filter: blur(10px);
}

.alert.compact {
  margin-block: 14px;
}

.alert.error {
  border-color: rgba(180, 35, 24, 0.24);
  background: #fff0ef;
  color: var(--danger);
}

.alert.warning {
  border-color: rgba(154, 91, 19, 0.24);
  background: rgba(255, 248, 232, 0.86);
  color: var(--warning);
}

.completed-section {
  position: sticky;
  top: 100px;
}

.section-toolbar {
  align-items: center;
  margin-bottom: 18px;
}

.section-toolbar > div {
  min-width: 0;
}

.completed-grid {
  display: grid;
  gap: 14px;
}

.news-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.news-media {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
  max-height: 520px;
  object-fit: contain;
  background: #101820;
}

.pdf-card {
  display: grid;
  min-height: 220px;
  place-items: center;
  gap: 10px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(251, 240, 198, 0.5));
  color: var(--ink);
  text-align: center;
}

.pdf-card svg {
  width: 44px;
  height: 44px;
  color: var(--accent);
}

.news-card-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.news-card h3 {
  overflow-wrap: anywhere;
}

.news-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.news-date {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 38px 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 42px;
  height: 42px;
  color: var(--primary);
}

.empty-state strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.admin-main {
  padding-block: 34px 56px;
}

.login-panel {
  max-width: 520px;
  margin: 36px auto;
}

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

.admin-toolbar {
  margin-bottom: 0;
  align-items: center;
}

.toolbar-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(310px, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

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

.admin-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px) saturate(145%);
}

.admin-step span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(214, 165, 20, 0.36);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent);
  font-weight: 700;
}

.admin-step strong {
  color: inherit;
  font-size: 0.96rem;
  line-height: 1.35;
}

.admin-step.active {
  border-color: rgba(21, 115, 72, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(223, 241, 223, 0.64)),
    rgba(255, 255, 255, 0.7);
  color: var(--primary-dark);
}

.admin-step.active span {
  background: var(--primary);
  color: #fff;
}

.queue-panel {
  overflow: hidden;
  padding: 0;
}

.queue-controls {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(37, 93, 66, 0.13);
}

.queue-controls h2 {
  font-size: 1.18rem;
}

.panel-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.news-list {
  display: grid;
  max-height: 720px;
  overflow: auto;
}

.queue-item {
  display: grid;
  gap: 9px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(37, 93, 66, 0.12);
  background: rgba(255, 255, 255, 0.52);
  padding: 14px 18px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.queue-item:hover,
.queue-item.active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(223, 241, 223, 0.72)),
    rgba(255, 255, 255, 0.7);
}

.queue-item.active {
  box-shadow: inset 4px 0 0 var(--primary), 0 8px 22px rgba(15, 81, 50, 0.08);
}

.queue-title {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 700;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.queue-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(201, 134, 32, 0.3);
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.86);
  color: var(--warning);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.done {
  border-color: rgba(27, 127, 75, 0.26);
  background: rgba(237, 248, 242, 0.86);
  color: var(--success);
}

.detail-panel {
  min-height: 620px;
}

.detail-header {
  align-items: center;
  margin-bottom: 18px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}

.detail-meta div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.detail-meta dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.as-link {
  text-align: center;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.completed-upload {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(37, 93, 66, 0.13);
}

.completed-preview {
  display: grid;
  gap: 10px;
}

.completed-preview img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: #101820;
  box-shadow: var(--shadow-soft);
}

.completed-preview iframe {
  width: 100%;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--primary-dark);
  font-weight: 700;
}

.file-link svg {
  width: 18px;
  height: 18px;
}

.danger-zone {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(37, 93, 66, 0.13);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(21, 115, 72, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(214, 165, 20, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.65;
}

.header-grid {
  min-height: 86px;
}

.brand {
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px) saturate(150%);
}

.site-header .nav-link {
  border-radius: 999px;
  min-width: 112px;
}

.submission-surface,
.completed-section,
.login-panel,
.queue-panel,
.detail-panel {
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 28px 70px rgba(12, 63, 39, 0.14);
}

.submission-surface .section-heading,
.login-panel .section-heading {
  margin: -8px -8px 26px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(21, 115, 72, 0.12), rgba(214, 165, 20, 0.16)),
    rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.completed-section .section-toolbar,
.admin-toolbar,
.detail-header {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(37, 93, 66, 0.13);
}

.eyebrow,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(214, 165, 20, 0.26);
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.74);
  color: #8a6209;
  font-size: 0.82rem;
}

.submission-surface h1,
.login-panel h1 {
  max-width: 720px;
}

.news-form {
  gap: 20px;
}

.field {
  gap: 9px;
}

label {
  color: #163629;
}

input,
textarea,
select {
  min-height: 50px;
  border-color: rgba(16, 88, 55, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.8);
}

textarea {
  min-height: 180px;
}

.upload-box {
  min-height: 172px;
  border-color: rgba(21, 115, 72, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(223, 241, 223, 0.82) 52%, rgba(255, 248, 220, 0.68)),
    var(--surface-soft);
}

.upload-copy strong {
  font-size: 1.04rem;
}

.primary-button {
  min-height: 48px;
  padding-inline: 24px;
}

.news-form .primary-button {
  width: 100%;
  min-height: 54px;
  font-size: 1.04rem;
}

.completed-grid {
  gap: 16px;
}

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

.status-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(240, 248, 235, 0.56)),
    rgba(255, 255, 255, 0.66);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.status-card h3 {
  margin: 0;
  color: #143528;
  font-size: 1rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.status-meta {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.status-meta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--primary);
}

.status-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(21, 115, 72, 0.12);
}

.status-progress span {
  display: block;
  width: 54%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--primary));
}

.status-progress.done span {
  width: 100%;
}

.status-step {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.news-card {
  border-color: rgba(255, 255, 255, 0.8);
}

.news-card-body {
  padding: 18px;
}

.news-card h3 {
  color: #143528;
  font-size: 1.08rem;
}

.empty-state {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.44);
}

.admin-steps {
  margin-top: 2px;
}

.admin-step {
  min-height: 70px;
}

.queue-controls {
  gap: 14px;
}

.queue-title {
  font-size: 0.98rem;
}

.detail-form {
  gap: 16px;
}

@media (max-width: 940px) {
  .page-grid {
    grid-template-areas:
      "form"
      "status"
      "completed";
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .completed-section {
    position: static;
  }

  .news-list {
    max-height: none;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 20px, 1120px);
  }

  .header-grid {
    min-height: 74px;
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    padding: 7px 10px 7px 7px;
  }

  .brand-mark {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 1rem;
    line-height: 1.32;
    white-space: normal;
  }

  .brand-text span {
    display: none;
  }

  .nav-link span {
    display: none;
  }

  .nav-link {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
  }

  .page-grid,
  .admin-main {
    padding-block: 18px 30px;
  }

  .submission-surface,
  .status-section,
  .completed-section,
  .login-panel,
  .detail-panel {
    padding: 14px;
  }

  .section-toolbar,
  .detail-header,
  .admin-toolbar {
    display: grid;
    gap: 12px;
  }

  .status-section .section-toolbar,
  .completed-section .section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .status-section .section-toolbar h2,
  .completed-section .section-toolbar h2 {
    font-size: 1.28rem;
    line-height: 1.35;
  }

  .status-section .icon-button,
  .completed-section .icon-button {
    flex: 0 0 44px;
  }

  .submission-surface .section-heading,
  .login-panel .section-heading {
    margin: -4px -4px 18px;
    padding: 18px;
  }

  .submission-surface h1,
  .login-panel h1 {
    font-size: 1.56rem;
  }

  textarea {
    min-height: 142px;
  }

  .upload-box {
    min-height: 130px;
  }

  .empty-state {
    padding: 28px 14px;
  }

  .admin-steps {
    grid-template-columns: 1fr;
  }

  .admin-step {
    min-height: 56px;
  }

  .toolbar-actions,
  .detail-actions {
    justify-content: stretch;
  }

  .toolbar-actions > *,
  .detail-actions > *,
  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button {
    width: 100%;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: flex;
    justify-items: center;
    min-height: auto;
    padding-block: 12px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .status-section .section-toolbar h2,
  .completed-section .section-toolbar h2 {
    font-size: 1.14rem;
  }

  .status-section .section-toolbar,
  .completed-section .section-toolbar {
    margin-bottom: 14px;
  }

  .status-section .icon-button,
  .completed-section .icon-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .footer-inner {
    font-size: 0.86rem;
  }
}

@media (max-width: 420px) {
  .preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-media,
  .pdf-card {
    min-height: 180px;
  }
}
