:root {
  --paper: #f4f0e7;
  --paper-raised: #fffdf8;
  --ink: #17352f;
  --ink-soft: #5e6f68;
  --line: #d9d7ca;
  --green: #1c6b58;
  --green-soft: #dcebe4;
  --orange: #df6d3d;
  --orange-soft: #f8e5d9;
  --yellow: #e8b949;
  --red: #bc4f43;
  --shadow: 0 18px 50px rgba(36, 56, 48, 0.08);
  --serif: "Iowan Old Style", "Songti SC", "STSong", Georgia, serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(232, 185, 73, 0.16), transparent 28rem),
    linear-gradient(180deg, #f8f4ec 0%, var(--paper) 55%, #eeeade 100%);
  font-family: var(--sans);
  min-height: 100vh;
}

.pwa-standalone .topbar {
  padding-top: env(safe-area-inset-top);
}

.pwa-standalone footer {
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
}

.pwa-install-button {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: var(--ink);
  color: #fffdf8;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 14px 38px rgba(23, 53, 47, 0.28);
  cursor: pointer;
}

.pwa-install-button:hover {
  background: var(--green);
}

button,
input,
select {
  font: inherit;
}

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

.shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 53, 47, 0.14);
}

.brand {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff7e9;
  border-radius: 50% 50% 50% 10%;
  font-family: var(--serif);
  font-size: 23px;
  box-shadow: 5px 5px 0 var(--yellow);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.05em;
}

.brand small {
  color: var(--ink-soft);
  margin-top: 3px;
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-role {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
}

.source-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.source-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58a477;
  box-shadow: 0 0 0 4px rgba(88, 164, 119, 0.13);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.button-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 9px 24px rgba(223, 109, 61, 0.22);
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding: 64px 0 38px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.hero-note {
  min-width: 220px;
  padding: 18px 20px;
  border-left: 3px solid var(--yellow);
  background: rgba(255, 253, 248, 0.55);
}

.hero-note span,
.hero-note small,
.hero-note strong {
  display: block;
}

.hero-note span,
.hero-note small {
  color: var(--ink-soft);
  font-size: 12px;
}

.hero-note strong {
  margin: 6px 0;
  font-family: var(--serif);
  font-size: 27px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.stat-card {
  min-height: 138px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.7);
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--ink-soft);
}

.stat-card span {
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin: 13px 0 8px;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
}

.stat-card small {
  font-size: 11px;
}

.stat-total {
  color: #fffdf8;
  background: var(--ink);
  border-color: var(--ink);
}

.stat-total span,
.stat-total small {
  color: rgba(255, 253, 248, 0.66);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(370px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.feed-panel,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
}

.feed-panel {
  min-height: 680px;
  padding: 24px;
}

.detail-panel {
  position: sticky;
  top: 16px;
  min-width: 0;
  min-height: 540px;
  max-height: calc(100vh - 32px);
  padding: 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2,
.detail-placeholder h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
}

.record-count {
  color: var(--ink-soft);
  font-size: 13px;
}

.filter-bar {
  margin: 22px 0 14px;
  padding: 10px;
  border-radius: 14px;
  background: #efede4;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 4px;
  overflow: visible;
}

.category-tabs button {
  width: 100%;
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}

.filter-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.category-tabs button.active {
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: 0 4px 10px rgba(36, 56, 48, 0.07);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 130px 130px;
  gap: 8px;
  margin-top: 8px;
}

.scope-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.scope-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #d5d1c5;
  border-radius: 9px;
  background: var(--paper-raised);
  font-size: 11px;
  cursor: pointer;
}

.scope-toggle input {
  accent-color: var(--green);
}

.scope-toggle-accent {
  border-color: rgba(223, 109, 61, 0.42);
  background: var(--orange-soft);
  color: #8b3e24;
}

.scope-row select {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d5d1c5;
  border-radius: 9px;
  background: var(--paper-raised);
  color: var(--ink);
}

.scope-note {
  color: var(--ink-soft);
  font-size: 10px;
}

.search-field input,
.filter-row select,
.status-select {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  border: 1px solid #d5d1c5;
  border-radius: 10px;
  outline: none;
  background: var(--paper-raised);
  color: var(--ink);
}

.search-field input:focus,
.filter-row select:focus,
.status-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(28, 107, 88, 0.12);
}

.notice-list {
  display: grid;
  gap: 10px;
}

.notice-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 16px;
  width: 100%;
  padding: 18px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 15px;
  background: #fffefa;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(36, 56, 48, 0.045);
  transition: border-color 180ms ease, transform 180ms ease;
}

.notice-card:hover,
.notice-card.selected {
  border-color: rgba(28, 107, 88, 0.42);
  transform: translateY(-1px);
}

.notice-card.selected {
  box-shadow: 0 0 0 3px rgba(28, 107, 88, 0.09);
}

.score-block,
.score-orb {
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 14px;
}

.score-block {
  height: 66px;
  background: var(--green-soft);
  color: var(--green);
}

.score-block strong,
.score-orb strong {
  font-family: var(--serif);
  line-height: 1;
}

.score-block strong {
  font-size: 27px;
}

.score-block span {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
}

.priority-B {
  background: #f8edd0;
  color: #946c12;
}

.priority-C {
  background: #f0e7e2;
  color: #7b5b50;
}

.notice-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.key-level-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f0ede4;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.priority-source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fbe0d3;
  color: #a84625;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.key-level-core {
  background: #f7dfd4;
  color: #a34427;
}

.key-level-priority {
  background: #f7ebca;
  color: #8d6613;
}

.key-level-watch {
  background: var(--green-soft);
  color: var(--green);
}

.key-level-cautious {
  background: #f0e5e2;
  color: var(--red);
}

.notice-main h3 {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.55;
}

.reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reason-chips span {
  padding: 4px 8px;
  border-radius: 6px;
  background: #f2f1ea;
  color: var(--ink-soft);
  font-size: 10px;
}

.card-risk {
  margin: 9px 0 0;
  color: #8d5c28;
  font-size: 11px;
}

.notice-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 11px;
  color: #84918c;
  font-size: 10px;
}

.detail-placeholder {
  min-height: 470px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.detail-placeholder p {
  max-width: 260px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.placeholder-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 34px;
}

.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #efede5;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.detail-score {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  margin: 22px 0;
  min-width: 0;
}

.score-orb {
  width: 72px;
  height: 72px;
  background: var(--green-soft);
  color: var(--green);
}

.score-orb strong {
  font-size: 31px;
}

.score-orb span {
  font-size: 10px;
}

.detail-score p {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 11px;
}

.detail-score h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.detail-facts div {
  padding: 12px;
  background: var(--paper-raised);
}

.detail-facts dt {
  color: var(--ink-soft);
  font-size: 10px;
}

.detail-facts dd {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.detail-panel::-webkit-scrollbar {
  width: 8px;
}

.detail-panel::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(23, 53, 47, 0.22);
  background-clip: padding-box;
}

.detail-panel::-webkit-scrollbar-track {
  background: transparent;
}

.detail-section {
  margin-top: 22px;
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.reason-list,
.risk-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason-list li,
.risk-list li {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.55;
}

.reason-list li {
  margin-bottom: 6px;
  background: var(--green-soft);
}

.risk-list li {
  margin-bottom: 6px;
  background: #fff2df;
  color: #7d5727;
}

.detail-actions {
  margin-top: 24px;
}

.detail-actions .button {
  width: 100%;
}

.button-secondary {
  border-color: #cbc8bb;
  background: #fffefa;
  color: var(--ink);
}

.topbar-link {
  min-height: 36px;
  padding: 0 12px;
  font-size: 11px;
}

.procurement-filter-row {
  grid-template-columns:
    minmax(180px, 1.3fr)
    repeat(4, minmax(125px, 1fr));
}

.contact-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.commercial-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.commercial-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.commercial-heading h3 {
  margin: 0;
}

.commercial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.commercial-grid div {
  min-width: 0;
  padding: 11px;
  background: var(--paper-raised);
}

.commercial-grid .contact-wide {
  grid-column: 1 / -1;
}

.commercial-grid dt {
  color: var(--ink-soft);
  font-size: 10px;
}

.commercial-grid dd {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.commercial-reason-list,
.commercial-risk-list {
  margin-top: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.contact-grid div {
  min-width: 0;
  padding: 11px;
  background: var(--paper-raised);
}

.contact-grid .contact-wide {
  grid-column: 1 / -1;
}

.contact-grid dt {
  color: var(--ink-soft);
  font-size: 10px;
}

.contact-grid dd {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.contact-pending {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #fff2df;
  color: #7d5727;
  font-size: 11px;
  line-height: 1.55;
}

.contact-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.contact-list div {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f3f1e9;
}

.contact-list strong {
  font-size: 10px;
}

.contact-list span {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.contact-actions .button {
  min-height: 38px;
  font-size: 12px;
}

.retry-enrich {
  padding: 0 4px;
}

.attachment-title {
  margin: 16px 0 7px;
  font-size: 11px;
  font-weight: 700;
}

.attachment-list {
  display: grid;
  gap: 6px;
}

.attachment-list a {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f1efe7;
  color: var(--green);
  font-size: 11px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.readonly-note {
  margin: 0;
  padding: 11px 12px;
  border-radius: 9px;
  background: #f1efe7;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.empty-state {
  margin: 40px auto;
  max-width: 430px;
  text-align: center;
  color: var(--ink-soft);
}

.empty-state strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
}

.empty-state code {
  padding: 3px 6px;
  border-radius: 5px;
  background: #e9e6dc;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(23, 53, 47, 0.14);
  color: var(--ink-soft);
  font-size: 11px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--green);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fffdf8;
  font-size: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.login-page {
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-shell {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.login-intro .brand-mark {
  margin-bottom: 36px;
}

.login-intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.login-intro > p:last-child {
  max-width: 540px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.login-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
}

.login-help {
  margin: 9px 0 26px;
  color: var(--ink-soft);
  font-size: 13px;
}

.login-card form {
  display: grid;
  gap: 10px;
}

.login-card label {
  font-size: 12px;
  font-weight: 700;
}

.login-card input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d2cec1;
  border-radius: 11px;
  background: #fffefa;
  outline: none;
}

.login-card input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(28, 107, 88, 0.12);
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 12px;
}

.login-card > small {
  display: block;
  margin-top: 20px;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
    max-height: none;
    overflow: visible;
    scroll-margin-top: 12px;
  }

  .procurement-filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .procurement-filter-row .search-field {
    grid-column: 1 / -1;
  }

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

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

  .hero-note {
    max-width: 320px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1480px);
  }

  .topbar {
    align-items: flex-start;
    padding: 16px 0;
  }

  .topbar-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }

  .source-status {
    display: none;
  }

  .button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 46px;
  }

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

  .stat-card {
    min-height: 122px;
    padding: 16px;
  }

  .stat-card strong {
    font-size: 34px;
  }

  .feed-panel,
  .detail-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .procurement-filter-row {
    grid-template-columns: 1fr;
  }

  .procurement-filter-row .search-field {
    grid-column: auto;
  }

  .topbar-link {
    display: none;
  }

  .scope-note {
    width: 100%;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .notice-card {
    grid-template-columns: 54px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .score-block {
    height: 54px;
  }

  .score-block strong {
    font-size: 23px;
  }

  .notice-main h3 {
    font-size: 14px;
  }

  footer {
    flex-direction: column;
  }

  .login-page {
    padding: 22px 14px;
  }

  .login-intro h1 {
    font-size: 44px;
  }

  .login-intro .brand-mark {
    margin-bottom: 24px;
  }

  .login-card {
    padding: 24px;
  }

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

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

  .commercial-grid .contact-wide {
    grid-column: auto;
  }

  .contact-grid .contact-wide {
    grid-column: auto;
  }
}

@media (min-width: 768px) and (max-width: 980px) {
  .workspace {
    grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  }

  .feed-panel {
    padding: 18px;
  }

  .detail-panel {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    scroll-margin-top: 12px;
  }

  .notice-card {
    grid-template-columns: 58px 1fr;
    gap: 12px;
    padding: 14px;
  }
}
