/* L-WORKS notice shell — master-detail, Figma tokens (SP2, node 843:18514) */
:root {
  color-scheme: light;
  /* design tokens (Figma) */
  --c-dark: #0c243b;
  --c-muted: #677381;
  --c-accent: #008f46;
  --c-accent-soft: rgba(0, 143, 70, 0.05);
  --c-card-border: #c7c9d4;
  --c-divider: #d7dce6;
  --c-bg: #ebedf2;
  --c-surface: #fff;
  --c-hover: #f9f9f9;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-dark);
}

/* inner area: left list + right detail + footer (modal header is the desktop app's) */
.notice-app {
  display: grid;
  grid-template-columns: 440px 1fr;
  grid-template-rows: 1fr auto;
  gap: 20px;
  height: 100vh;
  padding: 20px;
}

/* ───── left list ───── */
.notice-list-pane {
  grid-row: 1 / 3;
  background: var(--c-surface);
  border-radius: 10px;
  padding: 16px;
  overflow-y: auto;
}
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notice-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: var(--c-surface);
  border: 1px solid var(--c-card-border);
  border-radius: 5px;
  padding: 16px 20px;
  cursor: pointer;
  font: inherit;
}
.notice-card:hover {
  background: var(--c-hover);
}
.notice-card.is-selected {
  background: var(--c-accent-soft);
  border-color: var(--c-accent);
}
.notice-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notice-card__category {
  color: var(--c-accent);
  font-size: 15px;
}
.notice-card__date {
  color: var(--c-muted);
  font-size: 15px;
}
.notice-card__title {
  color: var(--c-dark);
  font-size: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-empty {
  color: var(--c-muted);
  padding: 12px 4px;
}

/* ───── right detail ───── */
.notice-detail-pane {
  background: var(--c-surface);
  border-radius: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.notice-detail__header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--c-card-border);
  position: sticky;
  top: 0;
  background: var(--c-surface);
}
.notice-detail__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 400;
  color: var(--c-dark);
}
.notice-detail__date {
  margin: 0;
  font-size: 15px;
  color: var(--c-muted);
}
.notice-detail__body {
  padding: 24px 30px 40px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-muted);
  text-align: justify;
}
.notice-detail__body img {
  max-width: 100%;
  height: auto;
}
.notice-detail__body a {
  color: var(--c-accent);
}
.notice-status {
  margin: 0;
  padding: 0 30px 16px;
  color: var(--c-muted);
}

/* ───── footer ───── */
.notice-footer {
  grid-column: 2;
  display: flex;
  align-items: center;
}
.notice-dismiss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-muted);
  font-size: 15px;
  cursor: pointer;
}
.notice-dismiss input {
  width: 18px;
  height: 18px;
  accent-color: var(--c-accent);
}
