:root {
  --color-bg: #f9f1e5;
  --color-canvas: #fbf6ed;
  --color-surface: #fffdf8;
  --color-text: #2d2924;
  --color-heading: #251b13;
  --color-muted: #776b5f;
  --color-line: #eadbc8;
  --color-line-strong: #d9bea2;
  --color-accent: #ef5646;
  --color-accent-2: #f47b49;
  --color-accent-soft: #fff0ea;
  --color-blue: #2f85b9;
  --color-blue-soft: #eef8fc;
  --color-green: #159c84;
  --color-green-soft: #effaf4;
  --color-purple: #5575d8;
  --color-purple-soft: #f2f1ff;
  --color-orange: #e87932;
  --color-orange-soft: #fff6e6;
  --color-teal: #2aaea5;
  --color-teal-soft: #edfafa;
  --color-yellow: #d99423;
  --color-yellow-soft: #fff8e6;
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 8px rgba(87, 58, 31, 0.10), 0 1px 0 rgba(255, 255, 255, 0.86) inset;
  --shadow-soft: 0 14px 32px rgba(87, 58, 31, 0.12);
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-display: "Hiragino Maru Gothic ProN", "Yu Gothic UI", var(--font-base);
  --shell-max: 1420px;
  --sidebar-width: 270px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-text);
  background:
    radial-gradient(circle at 18px 18px, rgba(146, 111, 73, .055) 0 1px, transparent 1.4px),
    linear-gradient(180deg, #f7eadb 0, #fbf6ed 230px, #faf4ea 100%);
  background-size: 32px 32px, auto;
  font-family: var(--font-base);
  font-size: 14px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent); }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
.u-sr-only, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.l-main { min-height: 70vh; }

.l-header {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  border-bottom: 1px solid #dbc5ad;
  background:
    linear-gradient(180deg, rgba(255, 248, 237, .94), rgba(252, 239, 222, .94)),
    radial-gradient(circle at 18px 18px, rgba(146, 111, 73, .055) 0 1px, transparent 1.4px);
  background-size: auto, 32px 32px;
  box-shadow: 0 5px 18px rgba(93, 64, 34, .10);
}
.l-header::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -3px;
  left: 0;
  right: 0;
  height: 36px;
  background:
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(122, 89, 58, .42) 30px 34px, transparent 34px 58px),
    radial-gradient(ellipse at center, rgba(114, 82, 54, .28) 0 32%, transparent 34%);
  background-size: auto, 58px 30px;
  opacity: .76;
  pointer-events: none;
}
.l-header__art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 248, 238, .92) 0%, rgba(255, 248, 238, .70) 52%, rgba(255, 248, 238, .08) 100%),
    url('/assets/header-notebook.png') right bottom / auto 220px no-repeat;
  opacity: 1;
  pointer-events: none;
}
.l-header__inner {
  position: relative;
  z-index: 1;
  width: min(var(--shell-max), calc(100vw - 36px));
  min-height: 168px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px minmax(360px, 570px) minmax(270px, 1fr);
  align-items: center;
  gap: 22px;
  padding-top: 18px;
}
.l-header__brand { min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--color-heading); }
.l-header__logo { width: 58px; height: 58px; filter: drop-shadow(0 2px 0 rgba(255,255,255,.9)); }
.l-header__brandText { min-width: 0; display: grid; gap: 3px; }
.l-header__brandText strong {
  font-family: var(--font-display);
  font-size: clamp(30px, 2.5vw, 38px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
  text-shadow: 2px 2px 0 rgba(255,255,255,.92), 4px 4px 0 rgba(231, 147, 82, .14);
}
.l-header__brandText small { color: #4f4032; font-size: 13px; font-weight: 900; }
.l-header__search {
  justify-self: center;
  width: min(560px, 100%);
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 22px;
  border: 1px solid #d2ad8a;
  border-radius: 999px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 8px 18px rgba(104, 70, 37, .12), 0 2px 0 rgba(255,255,255,.9) inset;
  color: #5d4031;
}
.l-header__search .c-icon { font-size: 19px; color: #4a2c20; }
.l-header__search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--color-text); font-size: 13px; font-weight: 800; }
.l-header__search input::placeholder { color: #9a7354; opacity: 1; }
.l-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; white-space: nowrap; }
.l-header__action, .l-header__notice { position: relative; display: grid; place-items: center; gap: 3px; color: #3a2a20; font-size: 11px; font-weight: 900; }
.l-header__action .c-icon { font-size: 22px; color: #2d8f9a; text-shadow: 0 2px 0 rgba(255,255,255,.9); }
.l-header__notice i { position: absolute; top: -7px; right: 2px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #ff315e; color: #fff; font-size: 10px; font-style: normal; }
.l-header__login { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 19px; border-radius: 999px; background: linear-gradient(135deg, #f05b44, #f47c42); color: #fff; font-weight: 900; box-shadow: 0 10px 18px rgba(214, 83, 48, .24); }
.l-header__login:hover { color: #fff; filter: brightness(1.03); }

.l-footer { margin: 34px 0 0; padding: 30px 0 28px; border-top: 1px solid #dfc9ad; background: rgba(255, 248, 237, .86); color: var(--color-muted); }
.l-footer__inner { display: grid; grid-template-columns: minmax(260px, 1.45fr) repeat(2, minmax(150px, .72fr)) minmax(240px, .95fr); align-items: start; gap: 26px; }
.footer-brand { min-width: 0; display: flex; align-items: flex-start; gap: 13px; }
.footer-brand__mark { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #e6cdb2; border-radius: 8px; background: #fffdf8; }
.footer-brand__mark img { width: 42px; height: 42px; object-fit: contain; }
.footer-brand__text { min-width: 0; }
.footer-brand__text strong { display: block; margin-bottom: 6px; color: var(--color-heading); font-size: 17px; font-weight: 900; }
.footer-brand__text p { max-width: 450px; color: #586175; line-height: 1.75; }
.l-footer nav, .footer-policy { min-width: 0; display: grid; gap: 7px; align-content: start; }
.l-footer p { margin: 0; }
.l-footer nav p, .footer-policy p { color: var(--color-heading); font-size: 12px; font-weight: 900; letter-spacing: 0; }
.l-footer a { width: fit-content; color: var(--color-muted); font-size: 13px; font-weight: 800; }
.l-footer a:hover { color: var(--color-accent); }
.footer-policy span { display: block; color: #586175; font-size: 13px; line-height: 1.75; }
.footer-copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid #eadbc8; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #8a7662; font-size: 12px; font-weight: 800; }

@media (max-width: 1180px) {
  .l-header { min-height: 224px; }
  .l-header__inner { grid-template-columns: 1fr; align-content: center; gap: 12px; padding: 18px 0; }
  .l-header__search { justify-self: start; }
  .l-header__actions { justify-content: flex-start; }
  .l-header__art { background-size: auto 220px; background-position: right bottom; }
  .l-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 13px; }
  .l-header { min-height: 244px; }
  .l-header__inner { width: min(100vw - 22px, var(--shell-max)); }
  .l-header__art { opacity: .82; background-size: auto 190px; background-position: right bottom; }
  .l-header__brandText strong { font-size: 27px; }
  .l-header__search { width: 100%; }
  .l-header__actions { overflow-x: auto; max-width: 100%; }
  .l-footer__inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-copy { align-items: flex-start; flex-direction: column; }
}

.c-icon, .o-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  flex: 0 0 auto;
  color: currentColor;
  font-weight: 900;
  line-height: 1;
}
.c-icon--text, .o-icon--text {
  width: auto;
  min-width: 26px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  background: #4d7ed9;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0;
}
.l-container, .l-generic-shell, .l-dashboard-shell {
  width: min(var(--shell-max), calc(100vw - 36px));
  margin-inline: auto;
}
.l-dashboard-shell, .l-generic-shell, .app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.l-dashboard-main, .home-dashboard, .l-generic-main {
  min-width: 0;
  padding-top: 24px;
}

/* Sidebar */
.l-sidebar {
  position: sticky;
  top: 14px;
  min-width: 0;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #e2cdb5;
  border-radius: 8px;
  background: rgba(255, 253, 247, .95);
  box-shadow: var(--shadow-card);
}
.l-sidebar__nav { display: grid; gap: 5px; }
.l-sidebar__item {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border-radius: 6px;
  color: #342c24;
  font-weight: 900;
}
.l-sidebar__item .c-icon { color: #257f90; font-size: 18px; }
.l-sidebar__item.is-active {
  background: linear-gradient(135deg, #38b3a7, #259e9c);
  color: #fff;
  box-shadow: 0 8px 15px rgba(36, 130, 122, .18);
}
.l-sidebar__item.is-active .c-icon { color: #fff; }
.l-sidebar__item--sub {
  min-height: 31px;
  color: #5f554c;
  font-size: 12px;
  font-weight: 800;
}
.l-sidebar__item--sub .c-icon { color: #8a7765; font-size: 14px; }
.l-sidebar__divider {
  height: 1px;
  margin: 12px 6px;
  background: repeating-linear-gradient(90deg, #d7c5b2 0 5px, transparent 5px 10px);
}
.l-sidebar__promo {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  min-height: 174px;
  padding: 17px 14px 62px;
  border: 1px solid #f0cfa7;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,242,225,.9)),
    radial-gradient(circle at right bottom, rgba(255, 112, 71, .15), transparent 58%);
}
.l-sidebar__promo strong { display: block; margin-bottom: 8px; color: #e75843; font-size: 15px; }
.l-sidebar__promo p { margin: 0 0 14px; color: #665a50; font-size: 12px; font-weight: 800; }
.l-sidebar__promo a {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef5646, #f47b49);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.l-sidebar__promo img { position: absolute; right: -2px; bottom: -1px; width: 92px; }
.l-sidebar__social {
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.l-sidebar__social span { flex-basis: 100%; color: #3b3027; font-size: 12px; font-weight: 900; }
.l-sidebar__social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #121212;
  font-size: 11px;
  font-weight: 900;
}
.l-sidebar__social a:nth-of-type(2) { background: #ef5646; }
.l-sidebar__social a:nth-of-type(3) { background: #f26b4a; }
.l-sidebar__social a:nth-of-type(4) { background: #f7a21b; }

/* Home toolbar */
.view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.view-controls__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.view-chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid #dfc9b0;
  border-radius: 999px;
  background: rgba(255, 253, 248, .96);
  color: #30271f;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(93, 64, 34, .08);
}
.view-chip.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #ef5646, #f47b49);
  color: #fff;
}
.view-controls__buttons { display: flex; gap: 8px; flex: 0 0 auto; }
.view-controls__buttons a, .view-controls__buttons button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #dfc9b0;
  border-radius: 6px;
  background: rgba(255, 253, 248, .96);
  color: #30271f;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 3px 9px rgba(93, 64, 34, .07);
}

/* Dashboard layout */
.dashboard-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  gap: 18px;
  align-items: stretch;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.category-grid__wide, .category-grid__quick { min-width: 0; }
.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, .84fr);
  gap: 18px;
  margin-top: 28px;
  align-items: stretch;
}

/* Shared cards */
.panel, .mini-panel, .rail-card, .c-card, .c-article, .c-cta {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, .96);
  box-shadow: var(--shadow-card);
}
.panel {
  position: relative;
  overflow: hidden;
}
.panel--featured::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: -9px;
  width: 18px;
  background: repeating-radial-gradient(circle at 9px 10px, #c4b09b 0 2px, transparent 2.4px 18px);
  opacity: .85;
}
.panel--deadline::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 50px;
  height: 42px;
  background: linear-gradient(135deg, rgba(72, 184, 206, .70) 0 48%, transparent 49% 100%);
  opacity: .75;
}
.panel__header, .mini-panel__header, .rail-card__header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  border-bottom: 1px solid #eadbc8;
}
.panel__header h2, .mini-panel__header h3, .rail-card__header h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--color-heading);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 900;
}
.panel__header a, .rail-card__header a, .mini-panel__more {
  color: #2180b6;
  font-size: 12px;
  font-weight: 900;
}
.panel__header--pink { background: linear-gradient(180deg, #fff7ef, #fffdf8); }
.panel--featured, .panel--deadline { border-color: #e8c9ad; }
.panel--featured .panel__header h2, .panel--deadline .panel__header h2 { color: #ef5646; }
.panel__icon { display: inline-flex; align-items: center; justify-content: center; }

/* Featured list */
.feature-list { padding: 0 17px 12px 24px; }
.feature-row {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #eadbc8;
}
.feature-row:last-child { border-bottom: 0; }
.feature-row__thumb {
  position: relative;
  overflow: hidden;
  align-self: center;
  width: 116px;
  height: 86px;
  border-radius: 8px;
  background: var(--color-blue-soft);
  box-shadow: 0 1px 0 #fff inset;
}
.feature-row__thumb img { width: 116px; height: 86px; object-fit: cover; }
.feature-row__body { min-width: 0; }
.feature-row__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-row h3 { margin: 5px 0 4px; font-size: 15px; line-height: 1.43; }
.feature-row p { margin: 0 0 4px; color: var(--color-muted); font-size: 12px; line-height: 1.5; }
.feature-row h3, .feature-row p { overflow-wrap: anywhere; }
.feature-row h3 a, .feature-row p:not(.feature-row__date) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-row h3 a { -webkit-line-clamp: 2; }
.feature-row p:not(.feature-row__date) { -webkit-line-clamp: 2; }
.feature-row__date { color: #ef493c !important; font-weight: 900; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #776b5f;
  background: #f2eadf;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}
.pill--new { color: #fff; background: #ef5646; }
.pill--pink, .pill--contest { color: #ef5646; background: #ffebe6; }
.pill--blue { color: #2f85b9; background: #eef8fc; }
.pill--purple { color: #5575d8; background: #f2f1ff; }
.pill--yellow { color: #b97514; background: #fff5d8; }
.pill--teal { color: #159c84; background: #e7f8f5; }
.pill--green { color: #239b61; background: #effbf2; }
.pill--gray { color: #776b5f; background: #f3eee7; }

/* Deadlines */
.deadline-list { padding: 0 17px 10px; }
.deadline-row {
  min-height: 69px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 54px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eadbc8;
}
.deadline-row:last-child { border-bottom: 0; }
.deadline-row time strong { display: block; color: #1f1a16; font-size: 23px; line-height: 1; }
.deadline-row time span { color: #30271f; font-size: 12px; font-weight: 900; }
.deadline-row__body { display: grid; gap: 4px; min-width: 0; }
.deadline-row__body .pill { justify-self: start; }
.deadline-row__body b { font-size: 13px; line-height: 1.43; overflow-wrap: anywhere; }
.deadline-row em {
  justify-self: end;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff0eb;
  color: #ef5646;
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
}

/* Category cards */
.mini-panel, .rail-card {
  overflow: hidden;
  min-height: 214px;
}
.mini-panel__header { min-height: 50px; padding: 12px 16px; }
.mini-panel--yellow { border-color: #e8c98e; }
.mini-panel--green { border-color: #b8dfc9; }
.mini-panel--blue { border-color: #b7d6e7; }
.mini-panel--orange { border-color: #efc59d; }
.mini-panel--teal { border-color: #b7e4df; }
.mini-panel--purple { border-color: #cacbf2; }
.mini-panel--pink { border-color: #efc4d0; }
.mini-panel--yellow .mini-panel__header { background: var(--color-yellow-soft); color: var(--color-yellow); }
.mini-panel--green .mini-panel__header { background: var(--color-green-soft); color: var(--color-green); }
.mini-panel--blue .mini-panel__header { background: var(--color-blue-soft); color: var(--color-blue); }
.mini-panel--orange .mini-panel__header { background: var(--color-orange-soft); color: var(--color-orange); }
.mini-panel--teal .mini-panel__header { background: var(--color-teal-soft); color: var(--color-teal); }
.mini-panel--purple .mini-panel__header { background: var(--color-purple-soft); color: var(--color-purple); }
.mini-panel--pink .mini-panel__header { background: #fff1f5; color: #e95879; }
.mini-list { list-style: none; margin: 0; padding: 12px 18px 0; display: grid; gap: 9px; }
.mini-list li { color: #3b332c; font-size: 12px; font-weight: 800; line-height: 1.55; }
.mini-list li.mini-list__empty { color: var(--color-muted); font-weight: 700; }
.mini-list li a {
  display: grid;
  grid-template-columns: 8px minmax(0,1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
}
.list-dot { width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: currentColor; opacity: .68; }
.mini-panel__more { display: block; width: fit-content; margin: 12px auto 0; color: #ef5646; }

/* Tags, quick links, bottom cards */
.rail-card { min-width: 0; }
.tag-card .rail-card__header h3 { color: #1b897e; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 15px 16px; }
.tag-cloud a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #96d8cd;
  border-radius: 999px;
  background: #f5fffb;
  color: #1b9788;
  font-size: 12px;
  font-weight: 900;
}
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; padding: 0; }
.quick-grid a {
  min-height: 67px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 8px;
  border-top: 1px solid #dce6e9;
  border-right: 1px solid #dce6e9;
  background: rgba(249, 253, 255, .72);
  color: #277098;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}
.quick-grid a:nth-child(2n) { border-right: 0; }
.quick-grid .c-icon { font-size: 20px; color: #2b81ad; }
.source-card, .notice-card { min-height: 150px; }
.source-card {
  border-color: #c7dbea;
  background: linear-gradient(145deg, #f8fcff, #fffdf8);
}
.source-card .rail-card__header { background: #f8fcff; }
.source-card .rail-card__header h3 { color: #2f85b9; }
.source-card ul { list-style: none; margin: 0; padding: 14px 17px 16px; display: grid; gap: 10px; }
.source-card li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #665a50;
  font-size: 12px;
  line-height: 1.55;
}
.source-card strong { color: #263047; font-size: 12px; font-weight: 900; }
.source-card span { min-width: 0; overflow-wrap: anywhere; }
.notice-card { position: relative; background: rgba(255,253,248,.96); }
.notice-card::after {
  content: "📌";
  position: absolute;
  top: -12px;
  right: 28px;
  font-size: 30px;
  transform: rotate(12deg);
}
.notice-card .rail-card__header h3 { color: #4b8c93; }
.notice-card dl { margin: 0; padding: 14px 17px 17px; display: grid; gap: 10px; }
.notice-card dl div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; color: #665a50; font-size: 12px; }
.notice-card dt { color: #2f6281; font-weight: 900; }
.notice-card dd { margin: 0; }

/* Badges and generic article pages */
.c-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #776b5f;
  background: #f2eadf;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}
.c-badge--contest, .c-badge--deadline { color: #ef5646; background: #ffebe6; }
.c-badge--tools, .c-badge--workspace { color: #2f85b9; background: #eef8fc; }
.c-badge--events { color: #159c84; background: #edf9f5; }
.c-badge--books, .c-badge--course { color: #b97514; background: #fff5d8; }
.c-badge--policy { color: #159c84; background: #e7f8f5; }
.c-badge--monthly { color: #e95879; background: #fff1f5; }
.c-badge--warning { color: #a7660b; background: #fff4dc; }
.c-section { padding: 0; }
.c-section__header { margin: 0 0 16px; }
.c-section__header h2 { margin: 0; color: var(--color-heading); font-size: 24px; }
.c-section__header p { margin: 3px 0 0; color: var(--color-muted); }
.c-empty { margin: 0; color: var(--color-muted); font-weight: 800; }
.c-search-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px auto;
  gap: 10px;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: rgba(255,253,248,.96);
  box-shadow: var(--shadow-card);
}
.c-search-panel input, .c-search-panel select {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-line-strong);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--color-text);
}
.c-search-panel button { min-height: 40px; border: 0; border-radius: 8px; padding: 0 18px; background: var(--color-blue); color: #fff; font-weight: 900; }
.c-search-meta { margin: 0 0 14px; color: var(--color-muted); font-size: 13px; font-weight: 800; }
.c-search-meta span { color: var(--color-heading); }
.c-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.c-card { padding: 14px; }
.c-card__thumb { display: block; overflow: hidden; margin: -2px -2px 12px; border-radius: 8px; background: var(--color-blue-soft); }
.c-card__thumb img { width: 100%; height: 130px; object-fit: cover; }
.c-card__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.c-card__date { color: var(--color-muted); font-size: 12px; }
.c-card__title { margin: 0 0 8px; font-size: 16px; line-height: 1.45; }
.c-card__summary { margin: 0 0 11px; color: var(--color-muted); font-size: 13px; }
.c-card__badges { display: flex; flex-wrap: wrap; gap: 5px; }
.c-article { max-width: 900px; padding: 34px; margin: 0 auto; }
.c-article h1 { margin: 12px 0; color: var(--color-heading); font-size: clamp(27px, 4vw, 42px); line-height: 1.25; }
.c-article__summary { color: var(--color-muted); font-size: 16px; }
.c-article__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.c-info-table { width: 100%; margin: 24px 0; border-collapse: collapse; overflow: hidden; border-radius: 8px; }
.c-info-table th, .c-info-table td { padding: 12px 14px; border: 1px solid var(--color-line); text-align: left; vertical-align: top; }
.c-info-table th { width: 170px; background: #fff7ed; color: var(--color-heading); }
.c-article__body { color: #38312a; font-size: 15px; line-height: 1.85; }
.c-article__body a { color: var(--color-blue); font-weight: 900; }
.c-cta { max-width: 900px; margin: 26px auto 0; padding: 26px; background: var(--color-blue-soft); }
.c-button { display: inline-flex; margin-top: 8px; padding: 10px 16px; border-radius: 999px; background: var(--color-blue); color: #fff; font-weight: 900; }
.c-button:hover { color: #fff; }
.c-tag-index { display: flex; flex-wrap: wrap; gap: 10px; }
.c-tag-index a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid #96d8cd; border-radius: 999px; background: #f5fffb; color: #1b897e; font-weight: 900; }
.c-tag-index b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #dff8f2; font-size: 12px; }
.c-calendar { display: grid; gap: 22px; }
.c-calendar-month {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: rgba(255,253,248,.96);
  box-shadow: var(--shadow-card);
}
.c-calendar-month__header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fff7ef, #fffdf8);
  border-bottom: 1px solid #eadbc8;
}
.c-calendar-month__header h3 { margin: 0; color: var(--color-heading); font-size: 20px; line-height: 1.3; }
.c-calendar-month__header span {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef8fc;
  color: #2f85b9;
  font-size: 12px;
  font-weight: 900;
}
.c-calendar-month__scroll { overflow-x: auto; }
.c-calendar-grid {
  min-width: 760px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: #eadbc8;
}
.c-calendar-weekday {
  min-height: 36px;
  display: grid;
  place-items: center;
  background: #fff7ed;
  color: #5f554c;
  font-size: 12px;
  font-weight: 900;
}
.c-calendar-day {
  min-height: 166px;
  display: grid;
  grid-template-rows: 30px minmax(0, 1fr);
  gap: 6px;
  padding: 8px;
  background: #fffdf8;
  min-width: 0;
}
.c-calendar-day--blank { background: #f7efe6; }
.c-calendar-day--has-items { background: #fffaf2; }
.c-calendar-day time {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-heading);
  font-size: 13px;
  font-weight: 900;
}
.c-calendar-day--today time { background: #2aa79c; color: #fff; }
.c-calendar-day__items {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}
.c-calendar-event {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 7px 7px 6px;
  border-left: 3px solid #2aa79c;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(92, 68, 44, .08);
}
.c-calendar-event--deadline { border-left-color: #ef5646; background: #fff4ef; }
.c-calendar-event--event { border-left-color: #2aa79c; background: #effbf8; }
.c-calendar-event:hover, .c-calendar-event:focus {
  outline: 2px solid rgba(47, 133, 185, .32);
  outline-offset: 1px;
}
.c-calendar-event__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.c-calendar-event__meta em {
  flex: 0 0 auto;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #5f554c;
  font-size: 10px;
  font-weight: 900;
  font-style: normal;
  line-height: 1.4;
}
.c-calendar-event__meta small {
  min-width: 0;
  overflow: hidden;
  color: #5f554c;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.c-calendar-event b {
  display: -webkit-box;
  overflow: hidden;
  color: #342c24;
  font-size: 11.5px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.c-calendar-event__note {
  overflow: hidden;
  color: #6d6258;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.c-calendar-more {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 900;
}
.c-calendar-preview {
  position: fixed;
  z-index: 50;
  width: min(340px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid #cfb89f;
  border-radius: 8px;
  background: rgba(255, 253, 248, .98);
  box-shadow: 0 18px 42px rgba(61, 45, 28, .22);
  color: #342c24;
  pointer-events: none;
}
.c-calendar-preview[hidden] { display: none; }
.c-calendar-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.c-calendar-preview__meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef8fc;
  color: #2f728f;
  font-size: 11px;
  font-weight: 900;
}
.c-calendar-preview__meta span:first-child {
  background: #fff0eb;
  color: #ef5646;
}
.c-calendar-preview h4 {
  margin: 0 0 8px;
  color: var(--color-heading);
  font-size: 15px;
  line-height: 1.45;
}
.c-calendar-preview p {
  margin: 0;
  color: #51483f;
  font-size: 13px;
  line-height: 1.65;
}
.c-calendar-preview dl {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
}
.c-calendar-preview dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.c-calendar-preview dt {
  color: #6c5f53;
  font-size: 11px;
  font-weight: 900;
}
.c-calendar-preview dd {
  margin: 0;
  color: #302820;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.c-ranking-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.c-ranking-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--color-line); border-radius: 8px; background: rgba(255,253,248,.96); box-shadow: var(--shadow-card); }
.c-ranking-list li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--color-blue-soft); color: var(--color-blue); font-weight: 900; }
.c-ranking-list h3 { margin: 0 0 5px; font-size: 16px; }
.c-ranking-list p { margin: 0; color: var(--color-muted); font-size: 13px; }
.c-ranking-list li > a { color: var(--color-blue); font-weight: 900; }
.c-info-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.c-info-panels article { padding: 18px; border: 1px solid var(--color-line); border-radius: 8px; background: rgba(255,253,248,.96); box-shadow: var(--shadow-card); }
.c-info-panels h3 { margin: 0 0 9px; color: var(--color-heading); font-size: 17px; }
.c-info-panels h4 { margin: 0 0 9px; color: var(--color-heading); font-size: 16px; }
.c-info-panels p { margin: 0 0 12px; color: var(--color-muted); }
.c-info-panels a { color: var(--color-blue); font-weight: 900; }
.c-about { display: grid; gap: 28px; }
.c-about__lead {
  padding: 22px;
  border: 1px solid #e6ccb0;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,253,248,.98), rgba(255,247,237,.96));
  box-shadow: var(--shadow-card);
}
.c-about__lead p, .c-about__block > p {
  margin: 0;
  color: #4e453d;
  font-size: 15px;
  line-height: 1.85;
}
.c-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.c-about__actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #d7c1aa;
  border-radius: 999px;
  background: #fffdf8;
  color: #2f7f9d;
  font-size: 13px;
  font-weight: 900;
}
.c-about__block { min-width: 0; }
.c-about__block > h3 {
  margin: 0 0 12px;
  color: var(--color-heading);
  font-size: 19px;
  line-height: 1.35;
}
.c-about__category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.c-about__category-list a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #a7dbd3;
  border-radius: 999px;
  background: #f5fffb;
  color: #178b7e;
  font-size: 13px;
  font-weight: 900;
}
.c-about__steps {
  counter-reset: about-step;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.c-about__steps li {
  counter-increment: about-step;
  display: grid;
  grid-template-columns: 42px minmax(120px, .34fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: rgba(255,253,248,.96);
  box-shadow: var(--shadow-card);
}
.c-about__steps li::before {
  content: counter(about-step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2aa79c;
  color: #fff;
  font-weight: 900;
}
.c-about__steps strong {
  color: var(--color-heading);
  font-size: 14px;
}
.c-about__steps span {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 1280px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .dashboard-top { grid-template-columns: minmax(0, 1fr) minmax(310px, .88fr); }
}
@media (max-width: 1080px) {
  .l-dashboard-shell, .l-generic-shell, .app-shell { grid-template-columns: 1fr; }
  .l-sidebar { position: static; order: 2; }
  .dashboard-top, .info-grid { grid-template-columns: 1fr; }
  .category-grid, .c-grid, .c-info-panels { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .view-controls { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
  .l-container, .l-generic-shell, .l-dashboard-shell { width: min(100vw - 22px, var(--shell-max)); }
  .home-dashboard, .l-generic-main { padding-top: 18px; }
  .category-grid, .c-grid, .c-info-panels { grid-template-columns: 1fr; }
  .view-controls__buttons { width: 100%; overflow-x: auto; }
  .feature-row { grid-template-columns: 88px minmax(0,1fr); }
  .feature-row__thumb, .feature-row__thumb img { width: 88px; height: 66px; }
  .deadline-row { grid-template-columns: 56px minmax(0,1fr); }
  .deadline-row em { grid-column: 2; justify-self: start; }
  .c-about__steps li { grid-template-columns: 36px minmax(0,1fr); }
  .c-about__steps span { grid-column: 2; }
  .source-card li, .notice-card dl div, .c-search-panel, .c-ranking-list li { grid-template-columns: 1fr; }
  .c-calendar-grid { min-width: 640px; }
  .c-article { padding: 22px; }
}
