/* ==========================================================================
   ASOIU Research & Conference Portal — design system
   Shared by the landing page, login page, dashboard and placeholder pages.
   Reuses the project's existing Outfit font and Tabler icon set.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --navy-900: #0d1533;
  --navy-800: #142048;
  --navy-700: #1a265c;   /* primary — matches the existing portal */
  --navy-600: #233272;
  --blue-600: #3046a8;   /* accent */
  --blue-500: #3d56c4;
  --blue-100: #e9edfb;
  --blue-050: #f4f6fd;

  /* Neutrals */
  --ink:      #111827;
  --ink-2:    #374151;
  --muted:    #5b6472;
  --subtle:   #667085;
  --line:     #e3e7f0;
  --line-2:   #eef1f7;
  --surface:  #ffffff;
  --bg:       #f6f8fc;

  /* Feedback */
  --ok:        #0f7b6c;
  --ok-bg:     #e7f6f2;
  --warn:      #92400e;
  --warn-bg:   #fdf3e3;
  --danger:    #b42318;
  --danger-bg: #fdeceb;
  --info:      #1f4d8f;
  --info-bg:   #eaf1fb;

  /* Shape & depth */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-md: 0 6px 18px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 48px rgba(13, 21, 51, .14);
  --ring:      0 0 0 3px rgba(61, 86, 196, .35);

  --header-h: 68px;
  --maxw: 1400px;
  --ease: cubic-bezier(.2, .6, .3, 1);
}

/* Inline status feedback (admin assignment/upload) */
.muted-note.worth-ok { color: #15803d; font-weight: 600; }
.muted-note.worth-warning { color: #b45309; }

/* Targeted: tighten admin console horizontal padding */
.page-main[data-admin] .container { padding-inline: clamp(12px, 3vw, 24px); }

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.05rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
ul { margin: 0; padding: 0; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy-700); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 10px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.page-main { flex: 1 0 auto; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 14px); }
.section--tint { background: linear-gradient(180deg, var(--blue-050), var(--bg)); }
.section--navy { background: var(--navy-800); color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section--navy .section-head p { color: rgba(255, 255, 255, .72); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 600;
  color: var(--blue-600); margin-bottom: .7rem;
}
.section--navy .eyebrow { color: #a9bbf3; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* ---------- 4. Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy-700); color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header__bar {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .4rem; color: #fff; text-decoration: none; flex: 1 1 auto; min-width: fit-content; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px;
  background: linear-gradient(160deg, var(--blue-500), var(--blue-600));
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: .82rem; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__logo { height: 32px; width: auto; max-width: 150px; flex: 0 0 auto; display: block; }
.brand__name { font-weight: 600; font-size: .92rem; line-height: 1.2; white-space: nowrap; }
.brand__sub { font-size: .74rem; color: rgba(255, 255, 255, .62); line-height: 1.2; }

.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  color: rgba(255, 255, 255, .82); padding: .5rem .78rem; border-radius: 9px;
  font-size: .93rem; font-weight: 400; white-space: nowrap;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .16);
}
.nav-toggle:hover { background: rgba(255, 255, 255, .16); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

/* Language selector — compact, sits first in the header actions. */
.lang-switch {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .45rem .3rem .55rem; border-radius: 10px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; flex: 0 0 auto;
}
.lang-switch > .ti { font-size: 1rem; opacity: .85; }
.lang-switch__select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background: transparent; border: 0; color: #fff; font: inherit; font-size: .86rem;
  font-weight: 500; line-height: 1.4; cursor: pointer; padding: 0 1.05rem 0 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .05rem center; background-size: .72rem;
}
.lang-switch__select option { color: var(--ink); background: var(--surface); }
.lang-switch:focus-within { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
.lang-switch__select:focus { outline: none; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--blue-600); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: 11px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 500; font-size: .95rem;
  cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }

.btn--primary { --btn-bg: var(--blue-600); }
.btn--primary:hover { --btn-bg: var(--blue-500); box-shadow: var(--shadow-md); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-700); --btn-bd: #dfe4f2; }
.btn--light:hover { --btn-bg: var(--blue-050); box-shadow: var(--shadow-sm); }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .3); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .12); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy-700); --btn-bd: var(--line); }
.btn--outline:hover { --btn-bg: var(--blue-050); --btn-bd: var(--blue-500); }
.btn--lg { padding: .9rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.btn--block { width: 100%; }

/* ---------- 6. Badges & tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 600;
  letter-spacing: .02em; background: var(--blue-100); color: var(--blue-600);
}
.badge--demo { background: var(--warn-bg); color: var(--warn); }
.badge--ok   { background: var(--ok-bg); color: var(--ok); }
.badge--soft { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 420px at 88% -8%, rgba(61, 86, 196, .45), transparent 62%),
    linear-gradient(180deg, var(--navy-800), var(--navy-700) 62%, var(--navy-700));
  color: #fff;
  padding: clamp(56px, 8vw, 104px) 0 clamp(52px, 7vw, 92px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.hero__inner { display: grid; gap: clamp(28px, 4vw, 52px); grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr); align-items: center; }
.hero__title { color: #fff; margin-bottom: .7rem; }
.hero__motto { font-size: clamp(1.02rem, .95rem + .5vw, 1.3rem); color: #c9d4f7; font-weight: 300; margin-bottom: 1.4rem; }
.hero__lede { color: rgba(255, 255, 255, .78); max-width: 56ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; margin: 0 0 1.7rem; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.2rem; }
.hero__note { font-size: .86rem; color: rgba(255, 255, 255, .6); max-width: 60ch; margin-bottom: 0; }

.hero__aside {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px);
  backdrop-filter: blur(2px);
}
.hero__aside h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: #b8c6f5; margin-bottom: 1.1rem; }
.hero__facts { display: grid; gap: .95rem; list-style: none; margin: 0; padding: 0; }
.hero__fact { display: flex; gap: .8rem; align-items: flex-start; }
.hero__fact > i { color: #b8c6f5; font-size: 1.15rem; line-height: 1.5; }
.hero__fact div { min-width: 0; }
.hero__fact-term { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(255, 255, 255, .68); }
.hero__fact-value { display: block; color: #fff; font-weight: 500; }
.hero__fact-value small { display: block; color: rgba(255, 255, 255, .72); font-weight: 400; font-size: .82rem; }

/* ---------- 8. Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 26px); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d5dcef; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .95rem; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600); font-size: 1.35rem; margin-bottom: 1rem;
}
.card__code { font-size: .74rem; font-weight: 600; letter-spacing: .1em; color: var(--subtle); text-transform: uppercase; }

.speaker-card { text-align: left; display: flex; flex-direction: column; }
.speaker-card__media {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden; margin-bottom: 1rem;
  border: 3px solid var(--blue-100); background: var(--blue-050); flex: 0 0 auto;
}
.speaker-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.speaker-card__name { font-size: 1.05rem; margin-bottom: .16rem; }
.speaker-card__role { font-size: .86rem; color: var(--blue-600); font-weight: 500; margin-bottom: .1rem; }
.speaker-card__affil { font-size: .84rem; color: var(--subtle); margin-bottom: .8rem; }
.speaker-card__talk { font-size: .9rem; color: var(--ink-2); font-style: italic; margin-bottom: 0; }

.stat-card { text-align: center; padding: clamp(20px, 2.4vw, 28px); }
.stat-card__value { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.7rem); font-weight: 600; color: var(--navy-700); line-height: 1; letter-spacing: -.02em; }
.stat-card__label { margin-top: .5rem; font-weight: 500; color: var(--ink-2); }
.stat-card__note { font-size: .82rem; color: var(--subtle); margin-top: .2rem; }
.section--navy .stat-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.section--navy .stat-card__value { color: #fff; }
.section--navy .stat-card__label { color: #dbe3f8; }
.section--navy .stat-card__note { color: rgba(255, 255, 255, .6); }

/* Dates timeline */
.dates { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.date-row { display: grid; grid-template-columns: 190px 1fr; gap: 1rem; padding: 1.05rem clamp(16px, 2.4vw, 26px); align-items: center; border-bottom: 1px solid var(--line-2); }
.date-row:last-child { border-bottom: 0; }
.date-row__date { font-weight: 600; color: var(--navy-700); font-variant-numeric: tabular-nums; }
.date-row__label { color: var(--ink-2); }
.date-row__label small { display: block; color: var(--subtle); font-size: .84rem; }

/* Overview list */
.checklist { display: grid; gap: .7rem; margin-top: 1.2rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-2); }
.checklist i { color: var(--ok); font-size: 1.15rem; line-height: 1.55; }

.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 52px); align-items: start; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 30px); box-shadow: var(--shadow-sm);
}
.panel--accent { background: var(--navy-700); color: #fff; border-color: transparent; }
.panel h2 { font-size: 1.12rem; margin-bottom: .7rem; }
.panel--accent h3, .panel--accent h2 { color: #fff; }
.panel--accent p { color: rgba(255, 255, 255, .78); }
.panel--accent .badge { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- 9. Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field__label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .4rem; color: var(--ink-2); }
.field__control { position: relative; display: flex; align-items: center; }
.field__input {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font-size: .98rem; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field__input::placeholder { color: var(--subtle); }
.field__input:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--ring); }
.field__input[aria-invalid="true"] { border-color: var(--danger); }
.field__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .28); }
.field__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer;
}
.field__toggle:hover { background: var(--blue-050); color: var(--navy-700); }
.field__input--has-toggle { padding-right: 3rem; }
.field__error { display: block; min-height: 1.1rem; margin-top: .35rem; font-size: .84rem; color: var(--danger); }
.field__hint { font-size: .82rem; color: var(--subtle); margin-top: .35rem; }

/* ---------- 10. Alerts ---------- */
.alert {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 1.1rem;
  border: 1px solid transparent;
}
.alert i { font-size: 1.15rem; line-height: 1.35; }
.alert p { margin: 0; }
.alert--error   { background: var(--danger-bg); color: var(--danger); border-color: #f3cdc9; }
.alert--info    { background: var(--info-bg);   color: var(--info);   border-color: #cfe0f6; }
.alert--ok      { background: var(--ok-bg);     color: var(--ok);     border-color: #c5e9e0; }
.alert--warn    { background: var(--warn-bg);   color: var(--warn);   border-color: #f2dcb6; }
.alert[hidden]  { display: none; }

/* ---------- 11. Auth layout ---------- */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); min-height: calc(100vh - var(--header-h)); }
.auth-aside {
  background:
    radial-gradient(760px 340px at 12% 6%, rgba(61, 86, 196, .5), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-700));
  color: #fff; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center;
}
.auth-aside h2 { color: #fff; }
.auth-aside p { color: rgba(255, 255, 255, .78); }
.auth-aside ul { display: grid; gap: .75rem; margin-top: 1.4rem; }
.auth-aside li { display: flex; gap: .6rem; align-items: flex-start; color: rgba(255, 255, 255, .85); }
.auth-aside li i { color: #a9bbf3; font-size: 1.15rem; line-height: 1.5; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 40px); }
.auth-card { width: 100%; max-width: 430px; }
.auth-card__intro { margin-bottom: 1.6rem; }
.auth-card__intro p { color: var(--muted); margin-bottom: 0; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.auth-links { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: .92rem; }
.auth-links a { display: inline-flex; align-items: center; gap: .45rem; }
.demo-note {
  margin-top: 1.4rem; padding: .9rem 1rem; border-radius: var(--radius-sm);
  background: var(--warn-bg); border: 1px solid #f2dcb6; color: var(--warn); font-size: .87rem;
}
.demo-note code { background: rgba(255, 255, 255, .6); padding: .05rem .35rem; border-radius: 5px; font-size: .85rem; }

/* ---------- 12. Dashboard ---------- */
.dashboard-head {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-700)); color: #fff;
  padding: clamp(30px, 5vw, 54px) 0;
}
.dashboard-head h1 { color: #fff; margin-bottom: .3rem; }
.dashboard-head p { color: rgba(255, 255, 255, .75); margin-bottom: 0; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.dl { display: grid; gap: .1rem; margin: 0; }
.dl dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--subtle); }
.dl dd { margin: 0 0 .9rem; font-weight: 500; color: var(--ink); }
.dl dd:last-child { margin-bottom: 0; }

.empty { text-align: center; padding: clamp(24px, 4vw, 40px); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--blue-050); }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); margin-top: auto; }
.site-footer__top { padding: clamp(38px, 5vw, 58px) 0 26px; display: grid; gap: clamp(26px, 4vw, 46px); grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); }
.site-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .11em; margin-bottom: .9rem; }
.site-footer__brandname { color: #fff; font-weight: 600; font-size: 1rem; margin-bottom: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .72); font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer__links { display: grid; gap: .5rem; }
.site-footer__brand p { font-size: .92rem; max-width: 40ch; color: rgba(255, 255, 255, .62); }
.footer-contact { display: grid; gap: .55rem; font-size: .92rem; }
.footer-contact span { display: inline-flex; align-items: flex-start; gap: .5rem; }
.footer-contact i { color: #a9bbf3; font-size: 1.05rem; line-height: 1.5; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem;
}
.site-footer__bottom p { margin: 0; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--navy-800); border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: .5rem clamp(16px, 4vw, 32px) 1rem; box-shadow: var(--shadow-lg);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .7rem .5rem; border-radius: 8px; }
  .header-actions .btn--topbar { display: none; }
}

@media (max-width: 620px) {
  .date-row { grid-template-columns: 1fr; gap: .2rem; }
  .site-footer__top { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .brand__sub { display: none; }
  .brand__logo { height: 26px; max-width: 110px; }
  .brand__name { white-space: normal; font-size: .85rem; }
}

/* ---------- 15. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .card:hover { transform: none; }
}

/* ---------- 16. Account & contributions ---------- */
.page-head {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-700)); color: #fff;
  padding: clamp(28px, 4.5vw, 48px) 0;
}
.page-head h1 { color: #fff; margin-bottom: .35rem; }
.page-head p { color: rgba(255, 255, 255, .75); margin-bottom: 0; }
.page-head__row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }

.toolbar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.toolbar__group { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.form-grid .field--full { grid-column: 1 / -1; }
.field__label .req { color: var(--danger); margin-left: .15rem; }
.field__label .opt { color: var(--subtle); font-weight: 400; font-size: .82rem; margin-left: .3rem; }
.field__select {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font-size: .98rem;
}
.field__select:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--ring); }
.field__select[aria-invalid="true"] { border-color: var(--danger); }
textarea.field__input { min-height: 120px; resize: vertical; line-height: 1.5; }
.char-count { display: block; margin-top: .35rem; font-size: .8rem; color: var(--subtle); text-align: right; }
.char-count[data-over="true"] { color: var(--danger); font-weight: 600; }

.check-row { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1.1rem; }
.check-row input { margin-top: .25rem; }
.check-row label { font-size: .92rem; color: var(--ink-2); }

.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .55rem; }
.option {
  display: flex; gap: .55rem; align-items: flex-start; padding: .7rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer;
}
.option:hover { border-color: var(--blue-500); background: var(--blue-050); }
.option input { margin-top: .2rem; }
.option__title { font-weight: 500; font-size: .92rem; }
.option__code { font-size: .74rem; color: var(--subtle); text-transform: uppercase; letter-spacing: .08em; }

.author-list { display: grid; gap: .8rem; }
.author-row {
  display: grid; grid-template-columns: 1fr 1fr 1.2fr auto auto; gap: .6rem; align-items: start;
  padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--blue-050);
}
.author-row .field { margin-bottom: 0; }
.author-row__corr { display: flex; gap: .4rem; align-items: center; font-size: .82rem; color: var(--ink-2); white-space: nowrap; }
.author-row__remove { align-self: center; }
.btn--icon { padding: .55rem .7rem; }

.file-drop {
  border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--blue-050);
  padding: 1.1rem; display: grid; gap: .5rem;
}
.file-drop input[type="file"] { font-size: .92rem; }
.file-name { font-size: .88rem; color: var(--ink-2); }

.status-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--info-bg); color: var(--info); }
.status-badge--submitted { background: var(--blue-100); color: var(--blue-600); }

.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line-2); font-size: .92rem; vertical-align: top; }
.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); background: var(--blue-050); }
.table tr:last-child td { border-bottom: 0; }
.table a { font-weight: 500; }
.table__wrap { overflow-x: auto; max-width: 100%; min-width: 0; position: relative; }

.stack { display: grid; gap: 1.2rem; }
.meta-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.meta-list dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--subtle); }
.meta-list dd { margin: .1rem 0 0; font-weight: 500; }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 999px; background: var(--blue-100); color: var(--blue-600); font-size: .8rem; font-weight: 500; }
.authors-list { display: grid; gap: .5rem; margin: 0; padding-left: 1.2rem; }
.authors-list li { color: var(--ink-2); }
.authors-list .corr { color: var(--blue-600); font-weight: 600; font-size: .8rem; margin-left: .35rem; }
.prose { color: var(--ink-2); white-space: pre-wrap; }
.progress-steps { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; padding: 0; list-style: none; font-size: .82rem; }
.progress-steps li { display: inline-flex; align-items: center; gap: .35rem; color: var(--subtle); }
.progress-steps li[aria-current="step"] { color: var(--blue-600); font-weight: 600; }

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .author-row { grid-template-columns: 1fr; }
  .author-row__remove { justify-self: start; }
}

/* ---------- 17. Prototype console (reviewer / administrator) ---------- */
.proto-note {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .9rem;
  background: var(--warn-bg); color: var(--warn); border: 1px solid #f2dcb6;
}
.proto-note .ti { font-size: 1.25rem; line-height: 1.3; flex: 0 0 auto; }
.proto-note strong { display: block; margin-bottom: .1rem; }
.proto-note p { margin: 0; }
.proto-note a { color: inherit; text-decoration: underline; }
.proto-note--stack { margin-bottom: 1.3rem; }

.badge--proto { background: var(--warn-bg); color: var(--warn); border: 1px solid #f2dcb6; }

/* Console shell: sticky side navigation + content */
.console { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: clamp(20px, 3vw, 34px); align-items: start; }
.console__nav {
  position: sticky; top: calc(var(--header-h) + 18px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem; box-shadow: var(--shadow-sm);
}
.console__nav-title {
  font-size: .71rem; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle);
  margin: .95rem .55rem .3rem; font-weight: 600;
}
.console__nav-title:first-child { margin-top: .25rem; }
.console__nav a {
  display: flex; align-items: center; gap: .6rem; padding: .52rem .6rem; border-radius: 9px;
  color: var(--ink-2); font-size: .92rem; line-height: 1.3;
}
.console__nav a:hover { background: var(--blue-050); color: var(--navy-700); text-decoration: none; }
.console__nav a[aria-current="page"] { background: var(--blue-100); color: var(--blue-600); font-weight: 600; }
.console__nav a .ti { font-size: 1.05rem; color: var(--subtle); flex: 0 0 auto; }
.console__nav a[aria-current="page"] .ti { color: var(--blue-600); }
.console__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2.6vw, 26px); min-width: 0; }
.console__body > * { min-width: 0; }

@media (max-width: 880px) {
  .console { grid-template-columns: 1fr; }
  .console__nav { position: static; }
}

/* KPI tiles */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(168px, 100%), 1fr)); gap: 14px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 17px; box-shadow: var(--shadow-sm);
}
.kpi__top { display: flex; align-items: center; gap: .45rem; color: var(--subtle); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.kpi__top .ti { font-size: 1rem; }
.kpi__value { font-size: 1.85rem; font-weight: 600; color: var(--navy-700); line-height: 1.1; margin-top: .35rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi__note { font-size: .81rem; color: var(--subtle); margin-top: .1rem; }
.kpi--ok .kpi__value { color: var(--ok); }
.kpi--warn .kpi__value { color: var(--warn); }
.kpi--danger .kpi__value { color: var(--danger); }
.kpi--info .kpi__value { color: var(--info); }

/* Status pills (demo statuses) */
.status-pill {
  display: inline-flex; align-items: center; gap: .35rem; padding: .24rem .62rem;
  border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent;
}
.status-pill .ti { font-size: .95rem; }
.status-pill--submitted { background: var(--blue-100); color: var(--blue-600); }
.status-pill--awaiting { background: var(--warn-bg); color: var(--warn); border-color: #f2dcb6; }
.status-pill--under-review { background: var(--info-bg); color: var(--info); border-color: #cfe0f6; }
.status-pill--revision { background: var(--warn-bg); color: var(--warn); border-color: #f2dcb6; }
.status-pill--accepted { background: var(--ok-bg); color: var(--ok); border-color: #c5e9e0; }
.status-pill--rejected { background: var(--danger-bg); color: var(--danger); border-color: #f3cdc9; }

/* Tables: compact modifier + numeric columns */
.table--compact th, .table--compact td { padding: .62rem .75rem; }
.table [data-numeric] { text-align: right; font-variant-numeric: tabular-nums; }
.table__rowlink { font-weight: 500; }
.table--rows-hover tbody tr:hover { background: var(--blue-050); }

/* Admin submissions table: keep the trailing "Manage" column reachable
   without horizontal scrolling on ordinary laptop/desktop widths.
   Long status labels and author details are allowed to wrap so the row can
   fit the available width instead of forcing the table wider than its box. */
.table--admin { table-layout: fixed; }
.table--admin th,
.table--admin td { overflow-wrap: anywhere; }
/* Let the status pill shrink with its column rather than hold the row wide. */
.table--admin .status-pill { white-space: normal; }
/* Fixed, predictable column widths. The paper/author columns take the flexible
   remainder; status is sized for its longest wrapped label; the action column
   stays as narrow as a single icon button. */
.table--admin th:nth-child(2), .table--admin td:nth-child(2) { width: 17%; }
.table--admin th:nth-child(3), .table--admin td:nth-child(3) { width: 12%; }
.table--admin th:nth-child(4), .table--admin td:nth-child(4) { width: 12%; }
.table--admin th:nth-child(5), .table--admin td:nth-child(5) { width: 16%; }
.table--admin th:nth-child(6), .table--admin td:nth-child(6) { width: 8%; }
.table--admin th:nth-child(7), .table--admin td:nth-child(7) { width: 56px; padding-inline: .5rem; }
.table--admin td:nth-child(7) { text-align: right; }

/* On narrower screens, trim padding and hide the least critical column
   (Track) so the Manage column remains visible without horizontal scroll. */
@media (max-width: 1080px) {
  .table--admin { table-layout: auto; }
  .table--admin th, .table--admin td { padding: .55rem .5rem; font-size: .86rem; }
  .table--admin th:nth-child(1), .table--admin td:nth-child(1) { min-width: 0; }
  .table--admin th:nth-child(2), .table--admin td:nth-child(2) { min-width: 0; }
  .table--admin th:nth-child(3), .table--admin td:nth-child(3) { display: none; }
  .table--admin th:nth-child(4), .table--admin td:nth-child(4) { min-width: 0; }
  .table--admin th:nth-child(5), .table--admin td:nth-child(5) { min-width: 0; }
  .table--admin th:nth-child(6), .table--admin td:nth-child(6) { min-width: 0; }
  .table--admin th:nth-child(7), .table--admin td:nth-child(7) { width: 1%; white-space: nowrap; }
}

/* Filter bar */
.filter-bar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; align-items: end; }
.filter-bar .field { margin-bottom: 0; }
.filter-bar .field__label { font-size: .82rem; }
@media (max-width: 760px) { .filter-bar { grid-template-columns: 1fr; } }

/* Review criteria + 5-point scale */
.criteria { display: grid; gap: .7rem; }
.criterion {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem 1.1rem; align-items: center;
  padding: .7rem .9rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface);
}
.criterion__label { font-size: .93rem; color: var(--ink-2); font-weight: 500; }
.criterion--invalid { border-color: var(--danger); background: var(--danger-bg); }
.scale { display: flex; gap: .3rem; flex-wrap: wrap; }
.scale__option { position: relative; }
.scale__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale__option span {
  display: grid; place-items: center; min-width: 2.5rem; padding: .38rem .5rem; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; font-size: .88rem; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.scale__option span small { display: block; font-weight: 400; font-size: .6rem; color: var(--subtle); letter-spacing: .02em; }
.scale__option input:checked + span { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.scale__option input:checked + span small { color: rgba(255, 255, 255, .85); }
.scale__option input:hover + span { border-color: var(--blue-500); }
.scale__option input:focus-visible + span { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.scale-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--subtle); margin-top: .2rem; }
.scale-legend b { color: var(--ink-2); }
.reviewer-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1rem; }
.review-print { display: none; }

@media (max-width: 680px) {
  .reviewer-details-grid { grid-template-columns: 1fr; }
}

@page review { size: A4; margin: 16mm; }
@media print {
  body.review-print-page { page: review; display: block; min-height: 0; }
  html, body { background: #fff !important; color: #111 !important; }
  body > :not([data-review-print]) { display: none !important; }
  body [data-review-print], body [data-review-print] * { visibility: visible !important; }
  body [data-review-print] {
    display: block !important;
    position: static;
    width: auto;
    color: #111 !important;
    font: 10.5pt/1.45 Arial, "Noto Sans", sans-serif;
  }
  body [data-review-print][hidden] { display: none !important; }
  .review-print h1 { margin: 0 0 5mm; font-size: 19pt; text-align: center; }
  .review-print h2 { margin: 5mm 0 2mm; font-size: 12pt; border-bottom: 1px solid #999; padding-bottom: 1.5mm; }
  .review-print__title { text-align: center; border: 0 !important; font-size: 14pt !important; }
  .review-print__author { text-align: center; margin: 0 0 5mm; }
  .review-print__criteria { padding-left: 7mm; margin: 0; }
  .review-print__criterion { display: grid; grid-template-columns: 1fr auto; gap: 5mm; padding: 2.4mm 0; border-bottom: 1px solid #ddd; break-inside: avoid; page-break-inside: avoid; }
  .review-print__criterion strong { white-space: nowrap; }
  .review-print__comments { white-space: pre-wrap; min-height: 12mm; }
  .review-print__signature { display: flex; align-items: end; gap: 4mm; margin: 5mm 0; break-inside: avoid; }
  .review-print__signature i { display: block; width: 65mm; border-bottom: 1px solid #222; height: 9mm; }
}
@media (max-width: 760px) { .criterion { grid-template-columns: 1fr; } }

/* Review page: main column + sticky score summary */
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(20px, 3vw, 30px); align-items: start; }
.review-aside { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 1rem; }
@media (max-width: 1020px) { .review-layout { grid-template-columns: 1fr; } .review-aside { position: static; } }
.mean-score { display: flex; align-items: baseline; gap: .45rem; }
.mean-score__value { font-size: 2.1rem; font-weight: 600; color: var(--navy-700); line-height: 1; font-variant-numeric: tabular-nums; }
.mean-score__of { color: var(--subtle); font-size: .9rem; }
.meter-list { display: grid; gap: .55rem; }
.meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .6rem; align-items: center; font-size: .84rem; color: var(--ink-2); }
.meter__val { font-variant-numeric: tabular-nums; color: var(--subtle); font-size: .8rem; }
.progress { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress__bar { height: 100%; background: var(--blue-600); border-radius: 999px; }

/* Reviewer / assignment cards */
.reviewer-list { display: grid; gap: .7rem; }
.reviewer-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .9rem; align-items: center;
  padding: .8rem .9rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface);
}
.reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600); font-weight: 600; font-size: .85rem;
}
.reviewer-item__name { font-weight: 500; }
.reviewer-item__meta { font-size: .84rem; color: var(--subtle); }
.avail { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.avail__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.avail--off .avail__dot { background: var(--subtle); }
@media (max-width: 700px) { .reviewer-item { grid-template-columns: auto minmax(0, 1fr); } }

/* Decision panel */
.decision-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; background: var(--blue-050); display: grid; gap: .8rem; }
.decision-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.btn--accept { --btn-bg: var(--ok); }
.btn--reject { --btn-bg: var(--danger); }
.btn--revision { --btn-bg: var(--warn); }
.btn--accept:hover { --btn-bg: #0d6a5d; box-shadow: var(--shadow-md); }
.btn--reject:hover { --btn-bg: #9a1c12; box-shadow: var(--shadow-md); }
.btn--revision:hover { --btn-bg: #7a350b; box-shadow: var(--shadow-md); }

/* Inline prototype notice (used for demo actions) */
.notice-inline {
  display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; border-radius: var(--radius-sm);
  font-size: .9rem; border: 1px dashed var(--blue-500); background: var(--blue-050); color: var(--navy-700);
}
.notice-inline .ti { font-size: 1.15rem; line-height: 1.35; flex: 0 0 auto; }
.notice-inline p { margin: 0; }
.notice-inline[hidden] { display: none; }
.notice-inline--ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.notice-inline--warn { border-color: #f2dcb6; background: var(--warn-bg); color: var(--warn); }

/* Stacked reviewer comparison */
.compare { display: grid; gap: .8rem; }
.compare__row { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: .7rem 1rem; align-items: start; padding: .8rem .9rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }
.compare__who { font-weight: 500; }
.compare__who small { display: block; color: var(--subtle); font-weight: 400; }
@media (max-width: 760px) { .compare__row { grid-template-columns: 1fr; } }

/* Misc */
.data-provenance { font-size: .82rem; color: var(--subtle); border-top: 1px dashed var(--line); margin-top: 1.2rem; padding-top: .8rem; display: flex; gap: .5rem; align-items: flex-start; }
.muted-note { font-size: .85rem; color: var(--subtle); }
.stack--tight { gap: .8rem; }
.list-plain { list-style: none; display: grid; gap: .5rem; }
.list-plain li { display: flex; gap: .55rem; align-items: flex-start; color: var(--ink-2); }
.list-plain .ti { color: var(--blue-600); font-size: 1.05rem; line-height: 1.5; }
/* Status pills carry their own colour; keep it inside list items too. */
.list-plain .status-pill .ti { color: inherit; font-size: .95rem; }
.tag--code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74rem; }
.criteria-ref { list-style: decimal; padding-left: 1.3rem; display: grid; gap: .5rem; margin: .5rem 0 0; }
.criteria-ref li { color: var(--ink-2); }
.section-head--sm { margin-bottom: 1rem; }
.panel--flat { box-shadow: none; }
.row-split { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }

/* ---------- 18. Print ---------- */
@media print {
  .site-header, .site-footer, .hero__actions, .nav-toggle, .toolbar { display: none !important; }
}

/* ==========================================================================
   19. Call for Papers (CFP)
   ========================================================================== */

.btn--sm { padding: .48rem .8rem; font-size: .84rem; border-radius: 9px; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.page-head__actions [data-cfp-admin-link] { --btn-fg: #fff; }
.page-head__actions [data-cfp-admin-link]:hover { --btn-fg: var(--navy-700); }

/* --- Public listing ------------------------------------------------------ */
.cfp-filters { padding: clamp(16px, 2vw, 22px); margin-bottom: 1rem; }
.cfp-filters__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)) auto;
  gap: .8rem;
  align-items: end;
}
.cfp-filters .field { margin-bottom: 0; }
.cfp-filters .field__label { font-size: .8rem; }
.cfp-filters__reset { display: flex; align-items: end; }
.cfp-filters__reset .btn { width: 100%; justify-content: center; }
.cfp-toolbar { margin: 0 0 1rem; }
.cfp-watch-toggle { margin: 0; white-space: nowrap; }
.cfp-watch-note:not([hidden]) { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0 0 1rem; }
.cfp-watch-note .ti { color: var(--blue-600); }

.cfp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 1.1rem;
}
.cfp-card {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 24px);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.cfp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cfd8ee; }
.cfp-card__head { display: flex; gap: .85rem; align-items: flex-start; }
.cfp-card__logo,
.cfp-card__logo--monogram {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--blue-050);
  object-fit: contain;
  padding: 5px;
}
.cfp-card__logo--monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--blue-600);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
}
.cfp-card__identity { min-width: 0; flex: 1 1 auto; }
.cfp-card__acronym {
  margin: 0 0 .15rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.cfp-card__title { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.cfp-card__title a { color: var(--navy-700); text-decoration: none; }
.cfp-card__title a:hover { text-decoration: underline; }
.cfp-card__description { margin: 0; color: var(--ink-2); font-size: .93rem; line-height: 1.6; }
.cfp-card__topics { margin: 0; }
.cfp-card__meta { display: grid; gap: .35rem; color: var(--subtle); font-size: .84rem; }
.cfp-card__meta > span { display: flex; gap: .45rem; align-items: flex-start; }
.cfp-card__meta .ti { color: var(--blue-600); font-size: 1rem; line-height: 1.4; }
.cfp-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-top: auto;
  padding-top: .7rem;
  border-top: 1px solid var(--line-2);
}
.cfp-card__closed { margin-left: auto; }
.cfp-watch-btn.is-active { border-color: var(--blue-500); color: var(--blue-600); background: var(--blue-050); }

/* --- Status pills -------------------------------------------------------- */
.status-pill--cfp-open { background: var(--ok-bg); color: var(--ok); border-color: #c5e9e0; }
.status-pill--cfp-approaching { background: var(--warn-bg); color: var(--warn); border-color: #f2dcb6; }
.status-pill--cfp-passed { background: var(--danger-bg); color: var(--danger); border-color: #f3cdc9; }
.status-pill--cfp-draft { background: var(--blue-050); color: var(--muted); border-color: var(--line); }
.status-pill--cfp-published { background: var(--ok-bg); color: var(--ok); border-color: #c5e9e0; }
.status-pill--cfp-archived { background: var(--blue-050); color: var(--subtle); border-color: var(--line); }
.status-pill--cfp-conf-upcoming { background: var(--blue-100); color: var(--blue-600); }
.status-pill--cfp-conf-ongoing { background: var(--info-bg); color: var(--info); border-color: #cfe0f6; }
.status-pill--cfp-conf-past { background: var(--blue-050); color: var(--subtle); border-color: var(--line); }

/* --- Detail page --------------------------------------------------------- */
.cfp-detail__header { display: grid; gap: 1rem; margin-bottom: 1.1rem; }
.cfp-detail__identity { display: flex; gap: 1rem; align-items: flex-start; }
.cfp-detail__logo,
.cfp-detail__logo--monogram {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--blue-050);
  object-fit: contain;
  padding: 7px;
}
.cfp-detail__logo--monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--blue-600);
  font-weight: 700;
  font-size: 1.1rem;
}
.cfp-detail__acronym {
  margin: 0 0 .2rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.cfp-detail__header h1 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
.cfp-detail__description { margin: 0; color: var(--ink-2); max-width: 70ch; }
.cfp-detail__badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.cfp-detail__quick { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--subtle); font-size: .88rem; border-top: 1px solid var(--line-2); padding-top: .8rem; }
.cfp-detail__quick > span { display: inline-flex; gap: .4rem; align-items: center; }
.cfp-detail__quick .ti { color: var(--blue-600); }
.cfp-detail__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .9fr); gap: 1.1rem; align-items: start; }
.cfp-detail__main, .cfp-detail__aside { display: grid; gap: 1.1rem; }
.cfp-prose { white-space: pre-wrap; color: var(--ink-2); line-height: 1.75; margin: 0; overflow-wrap: anywhere; }
.cfp-detail__stat { margin: 0 0 .35rem; font-size: 1.35rem; font-weight: 600; color: var(--navy-700); font-variant-numeric: tabular-nums; }
.cfp-detail__watch { margin-top: .9rem; }
.cfp-date-list { list-style: none; display: grid; gap: .55rem; margin: 0; padding: 0; }
.cfp-date-list li {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .65rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--blue-050);
}
.cfp-date-list__label { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; color: var(--subtle); font-size: .86rem; }
.cfp-date-list strong { color: var(--navy-700); font-weight: 600; }
.cfp-contact-list li { overflow-wrap: anywhere; }

/* --- Admin console ------------------------------------------------------- */
.cfp-fieldset { border: 0; padding: 0; margin: 1.1rem 0 0; }
.cfp-fieldset legend {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: .7rem;
}
.cfp-admin-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.cfp-admin-form .field--full { grid-column: 1 / -1; }
.cfp-admin-form .field__error { display: block; margin-top: .25rem; }
.cfp-admin-form .field__error:empty { display: none; }
.cfp-admin-actions { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }

@media (max-width: 1100px) {
  .cfp-filters__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cfp-filters__search { grid-column: 1 / -1; }
  .cfp-filters__reset { align-items: stretch; }
}
@media (max-width: 860px) {
  .cfp-detail__grid { grid-template-columns: 1fr; }
  .cfp-admin-form .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cfp-filters__grid { grid-template-columns: 1fr; }
  .cfp-filters__search { grid-column: auto; }
  .cfp-card__head { flex-wrap: wrap; }
  .cfp-card__footer .btn { flex: 1 1 auto; justify-content: center; }
  .cfp-detail__identity { flex-direction: column; }
  .cfp-admin-actions { justify-content: flex-start; }
}
