:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #152744;
  background: #f4f7fb;
  --line: #d7e1ed;
  --muted: #4a5d75;
  --accent: #2258a4;
  --accent-dark: #163d78;
  --paper: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
button:focus-visible, a:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1060px; min-height: 64px; margin: auto; padding: 10px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: inherit; text-decoration: none; font-size: 1.18rem; font-weight: 760; letter-spacing: -.045em; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand-mark { display: block; width: 34px; height: 34px; flex: none; }
.brand-emphasis { color: var(--accent-dark); }
main { max-width: 1060px; margin: auto; padding: 36px 28px 52px; }
.page-heading { margin-bottom: 24px; }
h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 670; line-height: 1.16; letter-spacing: -.035em; margin: 0; }
.page-heading p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.review-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.edits, .preview-pane { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
textarea { display: block; width: 100%; min-height: 230px; resize: vertical; background: #fbfdff; border: 1px solid var(--line); border-radius: 6px; padding: 12px; font-size: 15px; line-height: 1.55; color: inherit; }
textarea::placeholder { color: #60738c; }
.field-note { color: var(--muted); margin: 8px 0 0; font-size: .825rem; line-height: 1.5; overflow-wrap: anywhere; }
.export-bar, .review-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.export-bar .field-note { margin: 0; }
.primary, .secondary { border-radius: 6px; padding: 8px 13px; min-height: 36px; border: 1px solid var(--line); background: var(--paper); color: inherit; font-weight: 620; font-size: .875rem; white-space: nowrap; }
.primary { min-height: 42px; padding-inline: 16px; border-color: var(--accent); background: var(--accent); color: white; }
.primary:not(:disabled):hover { background: var(--accent-dark); }
.secondary:not(:disabled):hover { background: #eef4fc; }
.notice, #status { margin: 0 0 16px; padding: 11px 14px; border-radius: 6px; border: 1px solid #cdddf2; background: #eef5ff; font-size: .875rem; line-height: 1.45; }
#status.error { background: #fff0ed; border-color: #e6c5bf; color: #802d23; }
.section-bar { min-height: 52px; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 8px; border-bottom: 1px solid var(--line); }
h2 { font-size: 1rem; margin: 0; font-weight: 670; }
#count { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.suggestion { padding: 16px; border-bottom: 1px solid var(--line); }
.suggestion:last-child { border-bottom: 0; }
.comparison { display: grid; gap: 8px; }
.comparison-section { padding: 9px 10px; background: #f4f7fb; border-radius: 5px; }
.comparison-section.proposed { background: #eef4fc; }
.comparison-section strong { font-size: .75rem; }
.change-copy { margin: 4px 0 0; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.suggestion-footer { display: flex; justify-content: flex-end; margin-top: 10px; }
.apply-change[aria-pressed="true"] { color: var(--accent-dark); background: #e4efff; border-color: #a5c0e6; }
#suggestions > p, #gaps { padding: 14px 16px; margin: 0; line-height: 1.5; }
#gaps { border-top: 1px solid var(--line); font-size: .875rem; }
summary { cursor: pointer; font-weight: 620; }
#gaps ul { margin-bottom: 0; padding-left: 20px; }
.preview-pane { position: sticky; top: 16px; }
.template-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 5px 12px 10px; border: 0; border-bottom: 1px solid var(--line); }
.template-picker legend { padding: 8px 0 0; font-size: .8rem; font-weight: 650; }
.template-option { position: relative; display: grid; justify-items: center; gap: 5px; padding: 7px 4px; border: 1px solid var(--line); border-radius: 6px; font-size: .76rem; cursor: pointer; }
.template-option input { position: absolute; top: 6px; left: 6px; margin: 0; accent-color: var(--accent); }
.template-option img { width: min(59px, 66%); height: auto; border: 1px solid #d8e2ee; background: white; }
.template-option:has(input:checked) { background: #eef4ff; border-color: #95ace0; }
.template-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.template-label { display: grid; text-align: center; line-height: 1.35; }
.template-label small { color: var(--muted); }
#preview { overflow-y: auto; max-height: 60vh; }
.resume-row { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.resume-rule { border-bottom: 1px solid #c8d6ee; padding-bottom: 2px; }
#preview mark { background: #dcecff; color: inherit; }
.export-bar { position: sticky; bottom: 0; background: var(--paper); margin-top: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 740px) {
  .review-layout { grid-template-columns: 1fr; }
  .topbar-inner { padding-inline: 16px; }
  main { padding: 24px 16px 30px; }
  textarea { min-height: 135px; font-size: 16px; }
  .preview-pane { position: static; }
  .review-heading { align-items: flex-start; }
}
@media (max-width: 460px) {
  .export-bar, .review-heading { display: grid; }
  .export-bar button { width: 100%; }
  .export-bar { position: static; }
}

:root {
  background: #f7f8fd;
  --line: #dbe1f0;
  --accent: #354fbe;
  --accent-dark: #263a91;
}
.topbar { background: #fff; }
.setup {
  display: grid;
  grid-template-columns: minmax(205px, .38fr) minmax(0, 1fr);
  min-height: 548px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d5dff4;
  background: white;
}
.setup-rail { background: #203778; color: #e1e9ff; padding: 32px 23px; }
.setup-rail ol { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.setup-rail li { display: flex; align-items: center; gap: 10px; padding: 8px; font-size: .87rem; }
.setup-rail li span {
  display: grid; place-items: center; width: 25px; height: 25px;
  flex: 0 0 auto; border: 1px solid #8198d3; border-radius: 50%;
  font-size: .77rem; font-weight: 650;
}
.setup-rail li[aria-current="step"] { background: #324b96; color: #fff; border-radius: 7px; font-weight: 700; }
.setup-rail li[aria-current="step"] span { background: #d8e8ff; color: #223b77; border-color: transparent; }
#form.setup-form { border: 0; border-radius: 0; padding: clamp(24px, 5vw, 56px); }
.setup-form h1 { font-size: clamp(29px, 4vw, 44px); letter-spacing: -.05em; }
.setup-description { color: var(--muted); margin: 8px 0 20px; }
.upload-zone {
  display: grid; justify-items: center; gap: 7px; padding: 24px 14px;
  background: #f1f5ff; border: 1px dashed #7896df; border-radius: 12px;
  cursor: pointer; text-align: center; color: #233e84;
}
.upload-zone:hover, .upload-zone.dragging { background: #e9efff; border-color: #3757b4; }
.upload-zone:focus-within { outline: 2px solid #3556b9; outline-offset: 3px; }
.upload-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: #dce6ff; font-size: 1.35rem; }
.upload-zone span:last-of-type { font-size: .8rem; }
.paste-option { margin-top: 17px; }
.paste-option summary { color: #28478f; font-size: .88rem; }
.setup-form textarea { margin-top: 10px; min-height: 145px; }
.setup-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.setup-form .notice { font-size: .8rem; }
@media (max-width: 700px) {
  .setup { grid-template-columns: 1fr; min-height: 0; }
  .setup-rail { padding: 10px; }
  .setup-rail ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .setup-rail li { font-size: .72rem; gap: 5px; padding: 5px; }
  .setup-rail li span { width: 19px; height: 19px; font-size: .65rem; }
  #form.setup-form { padding: 19px; }
}

#preview { padding: 12px; background: #e9eef8; }
#preview canvas { display: block; width: 100%; height: auto; background: #fff; border: 1px solid #d7e1ed; }
#preview canvas + canvas { margin-top: 12px; }
#preview-status { margin: 7px 12px; min-height: 1.3em; }
.export-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.resource-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.resource-nav a { color: var(--muted); font-size: .875rem; font-weight: 620; text-decoration: none; }
.resource-nav a:hover, .resource-nav a[aria-current="page"] { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 5px; }
.resource-panel { padding: clamp(16px, 4vw, 32px); border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.resource-panel h2 { font-size: 1.35rem; }
.resource-panel p { color: var(--muted); line-height: 1.55; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.resource-grid textarea { min-height: 170px; margin-top: 8px; }
.resource-grid label { font-weight: 620; }
#keyword-form .primary { margin-top: 20px; }
#keyword-status:empty { display: none; }
#keyword-results ul { padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
#keyword-results li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: #f4f7fb; overflow-wrap: anywhere; }
.template-feature { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 32px; align-items: center; }
.template-feature img { display: block; width: 100%; border: 1px solid var(--line); }
.download-link { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 600px) {
  .topbar-inner { flex-wrap: wrap; }
  .resource-nav { order: 1; flex-basis: 100%; }
  .resource-grid, .template-feature { grid-template-columns: 1fr; }
  .template-feature img { max-width: 230px; }
}

/* Home */
.home-page {
  background: #fff;
  color: #1a2338;
  --accent: #2846bb;
  --accent-dark: #203696;
  --muted: #4b5467;
  --line: #e1e4ef;
  overflow-x: clip;
}
.home-page .topbar { background: #fff; border-color: #eae9f7; }
.home-page .topbar-inner, .home-page main { max-width: 1256px; }
.home-page .topbar-inner { min-height: 73px; }
.home-nav-action { color: var(--accent-dark); font-size: .88rem; font-weight: 680; text-decoration: none; }
.home-nav-action:hover, .hero-example:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-page main { padding-top: 0; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .99fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(40px, 6vw, 86px) 0 50px;
  position: relative;
  isolation: isolate;
}
.home-hero::before, .home-hero::after {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  pointer-events: none;
}
.home-hero::before {
  background:
    radial-gradient(ellipse at 87% 20%, #ead8ff 0%, transparent 52%),
    radial-gradient(ellipse at 72% 78%, #d8eeff 0%, transparent 54%),
    radial-gradient(ellipse at 104% 83%, #ffddea 0%, transparent 48%),
    linear-gradient(115deg, #fff 8%, #f8f5ff 48%, #eee5ff 100%);
  mask-image: linear-gradient(#000 78%, transparent);
}
.home-hero::after {
  background: repeating-radial-gradient(
    ellipse 53% 108% at 100% 10%,
    transparent 0 23px,
    #6550aa1c 24px 25px,
    transparent 26px 42px
  );
  mask-image: radial-gradient(ellipse at 92% 42%, #000 4%, transparent 58%);
  animation: hero-contours 16s ease-in-out infinite alternate;
}
@keyframes hero-contours {
  from { opacity: .55; background-position: 0 0; }
  to { opacity: 1; background-position: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero::after { animation: none; }
}
.hero-copy h1 {
  font: 400 clamp(49px, 5.85vw, 87px)/.99 Georgia, serif;
  letter-spacing: -.066em;
}
.hero-copy em { color: var(--accent); font-weight: inherit; }
.hero-copy > p { max-width: 440px; margin: 24px 0 28px; font-size: 1.06rem; line-height: 1.65; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.hero-start { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; text-decoration: none; }
.hero-example { min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font-weight: 660; font-size: .9rem; }
.hero-example span, .home-nav-action span { margin-inline-start: 4px; }
.hero-demo { margin: 0; background: #f9f8ffbf; border: 1px solid #fff; border-radius: 16px; box-shadow: 0 22px 58px #34246e26; padding: 18px clamp(15px, 2.1vw, 28px) 21px; }
.hero-demo figcaption { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; color: #404c70; font-size: .74rem; font-weight: 650; }
.demo-paper { min-width: 0; padding: 25px 8% 22px; background: #fff; border: 1px solid #d8dbe5; box-shadow: 0 6px 18px #16265313; }
.demo-name { margin: 0; font: 400 2.1rem/1 Georgia, serif; letter-spacing: -.045em; }
.demo-role { margin: 6px 0 18px; color: #4b5467; font-size: .84rem; }
.demo-experience > p:first-child { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid #dfe2eb; font-size: .72rem; font-weight: 720; text-transform: uppercase; letter-spacing: .09em; }
.demo-experience > strong, .demo-experience > span { font-size: .77rem; }
.demo-experience > span { float: right; color: #4b5467; }
.demo-bullet { position: relative; padding-left: 11px; margin: 7px 0 0; font-size: .79rem; line-height: 1.5; }
.demo-bullet::before { content: "•"; position: absolute; left: 0; }
.demo-bullet mark { background: #e0e8ff; color: #203696; box-shadow: 2px 0 #e0e8ff, -2px 0 #e0e8ff; }
.demo-note { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; padding: 12px 14px; border-left: 2px solid #3654cb; background: #f5f6fc; }
.demo-note span { color: #435277; font-size: .7rem; font-weight: 710; }
.demo-note p { margin: 4px 0 0; font-size: .79rem; line-height: 1.42; }
.home-resources { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 46px; border-block: 1px solid var(--line); }
.home-resources a { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding: 21px 26px; color: inherit; text-decoration: none; }
.home-resources a:first-child { border-right: 1px solid var(--line); padding-left: 0; }
.home-resources a:hover strong { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.home-resources a span { grid-column: 1; font-size: .82rem; color: var(--muted); }
.home-resources a strong { grid-column: 1; font-size: 1.08rem; }
.home-resources a b { grid-column: 2; grid-row: 2; color: var(--accent); }
.home-page #input { scroll-margin-top: 24px; }
.home-page .setup { grid-template-columns: minmax(0, 1fr); min-height: auto; }
.home-page .setup-rail { background: #fff; color: var(--muted); border-bottom: 1px solid var(--line); padding: 12px clamp(15px, 4vw, 40px); }
.home-page .setup-rail ol { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.home-page .setup-rail li[aria-current="step"] { background: #e9edfb; color: var(--accent-dark); }
.home-page #form.setup-form { padding: clamp(20px, 4vw, 44px); }
.home-page .review-layout .suggestion { padding: 18px; }
.home-page .comparison-section.proposed { background: #eef1fc; }
@media (max-width: 850px) {
  .home-hero { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .hero-copy h1 { font-size: clamp(45px, 9vw, 74px); }
  .hero-demo { max-width: 610px; }
}
@media (max-width: 480px) {
  .home-hero { padding-top: 30px; }
  .hero-copy > p { margin-block: 18px 20px; }
  .home-resources { grid-template-columns: 1fr; margin-bottom: 28px; }
  .home-resources a, .home-resources a:first-child { border-right: 0; padding: 15px 0; }
  .home-resources a + a { border-top: 1px solid var(--line); }
  .demo-note { gap: 9px; padding-inline: 9px; }
}

.home-guides { margin-top: clamp(52px, 8vw, 104px); }
#review:not([hidden]) ~ .home-guides { display: none; }
.guide-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 7vw, 94px);
  padding: clamp(30px, 5.5vw, 72px) clamp(22px, 5vw, 68px);
}
.guide-copy h2 {
  max-width: 18ch;
  color: inherit;
  font: 400 clamp(32px, 4.25vw, 59px)/1.04 Georgia, serif;
  letter-spacing: -.05em;
}
.guide-copy p { max-width: 44ch; margin: 16px 0 22px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.guide-link { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.guide-workflow { background: #f4f1ff; border-radius: 18px; }
.guide-steps { counter-reset: guide-step; list-style: none; margin: 0; padding: 0; }
.guide-steps li { counter-increment: guide-step; position: relative; padding: 15px 0 15px 47px; border-bottom: 1px solid #dfd8f3; }
.guide-steps li:first-child { border-top: 1px solid #dfd8f3; }
.guide-steps li::before { content: counter(guide-step); position: absolute; left: 0; top: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e6ddfb; color: #45337f; font-size: .82rem; font-weight: 750; }
.guide-steps p { margin: 4px 0 0; color: var(--muted); font-size: .91rem; line-height: 1.5; }
.guide-scan-example { margin: 0; padding: clamp(18px, 3vw, 32px); background: #fff; border: 1px solid #e1e4ef; border-radius: 16px; box-shadow: 0 14px 45px #293b7912; }
.guide-scan-example figcaption { margin-bottom: 16px; font-weight: 750; font-size: .95rem; }
.scan-job { padding: 12px 14px; margin: 0; background: #f4f6fc; border-radius: 8px; font-size: .9rem; line-height: 1.5; }
.scan-job span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .76rem; font-weight: 650; }
.scan-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; }
.scan-results dt { font-size: .77rem; font-weight: 690; }
.scan-results dd { margin: 8px 0 0; }
.scan-results dd span { display: inline-block; padding: 5px 9px; border-radius: 5px; font-size: .82rem; font-weight: 690; }
.scan-found { background: #e1f3e9; color: #1e6242; }
.scan-missing { background: #fff1d7; color: #745008; }
.guide-template { background: #ecf3fc; border-radius: 18px; }
.guide-template-art { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 0; margin: 0; }
.guide-template-art img { display: block; width: min(100%, 205px); height: auto; background: white; border: 1px solid #d6deed; box-shadow: 0 16px 32px #1e375627; }
.guide-template-art figcaption { padding: 13px 16px; margin: 0 0 15px -12px; z-index: 1; background: #2443b5; color: #fff; border-radius: 7px; font-size: .9rem; font-weight: 700; }
.guide-template-art figcaption span { display: block; margin-top: 4px; font-size: .72rem; font-weight: 500; color: #ebefff; }
@media (max-width: 730px) {
  .guide-section { grid-template-columns: 1fr; }
  .guide-scanner .guide-copy { grid-row: 1; }
  .guide-template-art { justify-content: flex-start; }
}

.templates-page { background: #fff; }
.templates-page main, .templates-page .topbar-inner { max-width: 1256px; }
.gallery-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 6vw, 76px); margin-bottom: 60px; }
.gallery-intro h1 { font: 400 clamp(42px, 6vw, 78px)/.98 Georgia, serif; letter-spacing: -.06em; }
.gallery-intro h1 em { color: var(--accent); }
.gallery-intro p { max-width: 42ch; color: var(--muted); line-height: 1.6; }
.gallery-picker { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 24px; }
.gallery-picker:empty { display: none; }
.gallery-picker button { border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; color: inherit; background: white; font-size: .87rem; }
.gallery-picker button[aria-pressed="true"] { color: #fff; background: #2846bb; border-color: #2846bb; }
#featured-title { font-size: 1.15rem; }
#featured-description { margin-block: 6px 16px; }
#featured-download span { margin-left: 12px; }
.gallery-stage { margin: 0; padding: 16px clamp(12px, 3vw, 38px) 25px; border: 1px solid #e8dff7; border-radius: 19px; background: radial-gradient(ellipse at 85% 18%, #e6d3ff, transparent 57%), linear-gradient(145deg, #f4edff, #e0efff); }
.gallery-stage figcaption { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: .8rem; font-weight: 700; }
.gallery-stage figcaption a { color: var(--accent-dark); }
.gallery-paper { --paper-accent: #202b3c; min-width: 0; width: 100%; max-width: 475px; margin: auto; padding: clamp(15px, 4vw, 40px); border: 1px solid #d8dce9; background: white; color: #202b3c; box-shadow: 0 12px 28px #30234c28; font: .79rem/1.43 Arial, sans-serif; }
.paper-name { color: var(--paper-accent); font-size: 2.05em; line-height: 1.03; font-weight: 700; }
.paper-contact { margin-top: .46em; color: #545e6c; }
.paper-heading { margin: 1.12em 0 .31em; color: var(--paper-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.gallery-paper p, .gallery-paper ul { margin: .28em 0; }
.gallery-paper ul { padding-left: 1.25em; }
.paper-modern { --paper-accent: #244aa1; font-family: Calibri, Arial, sans-serif; }
.paper-modern .paper-name { font-size: 2.45em; }
.paper-compact { padding: clamp(15px, 2.8vw, 29px); line-height: 1.23; }
.paper-compact .paper-name { font-size: 1.75em; }
.paper-compact .paper-heading { margin-top: .85em; }
.paper-editorial { --paper-accent: #285b4a; font-family: Georgia, serif; }
.paper-executive { --paper-accent: #743d51; font-family: Cambria, Georgia, serif; }
:is(.paper-modern,.paper-editorial,.paper-executive) .paper-heading { padding-bottom: .18em; border-bottom: 1px solid var(--paper-accent); }
#collection-title { font: 400 clamp(28px, 4vw, 44px)/1.1 Georgia, serif; margin-bottom: 18px; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gallery-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gallery-card-art { padding: 12px; background: #f2eff9; }
.gallery-card[data-template="modern"] .gallery-card-art { background: #e9efff; }
.gallery-card[data-template="compact"] .gallery-card-art { background: #edf0f5; }
.gallery-card[data-template="editorial"] .gallery-card-art { background: #e8f2ed; }
.gallery-card[data-template="executive"] .gallery-card-art { background: #f8edf0; }
.gallery-card-art .gallery-paper { min-height: 150px; padding: 10px; font-size: .44rem; }
.gallery-card-copy { padding: 14px; }
.gallery-card h3 { margin: 0; }
.gallery-card-copy p { color: var(--muted); font-size: .83rem; line-height: 1.48; }
.gallery-card a { font-size: .83rem; color: var(--accent-dark); font-weight: 700; }
@media (max-width: 950px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .gallery-hero { grid-template-columns: 1fr; margin-bottom: 40px; } }
@media (max-width: 530px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.paper-masthead { margin-bottom: .72em; }
.paper-modern .paper-masthead { padding: .92em .8em; background: #244aa1; text-align: center; }
.paper-modern .paper-masthead .paper-name, .paper-modern .paper-masthead .paper-contact { color: #fff; }
.paper-editorial .paper-masthead { padding-block: .28em .72em; text-align: center; border-block: 1px solid #285b4a; }
.paper-editorial .paper-heading { border-bottom: 0; border-left: 3px solid #285b4a; padding: 0 0 0 .55em; }
.paper-executive .paper-heading { padding: .22em .5em; border: 0; background: #f3e9ed; }
.paper-compact .paper-masthead { margin-bottom: .4em; padding-bottom: .35em; border-bottom: 1px solid #bbc3d0; }
.paper-compact .paper-contact { margin-top: .16em; }

.account-panel { max-width: 460px; margin: 32px auto; }
.account-panel h1 { margin-top: 18px; }
.account-panel form { display: grid; gap: 9px; margin: 20px 0 14px; }
.account-panel input { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }

#role-templates, .template-detail { max-width: 1120px; margin: 48px auto; padding: 0 20px; }
#template-search { margin: 16px 0; }
#template-search label { display: block; margin-bottom: 6px; }
#template-query { width: min(100%, 440px); padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.role-template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 12px; padding: 0; list-style: none; }
.role-template-grid a { display: grid; gap: 6px; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.role-template-grid a:hover { text-decoration: underline; }
.role-template-grid span { color: var(--muted); font-size: .85rem; }
.template-detail { max-width: 780px; }
.template-detail .resource-panel { margin-top: 24px; }
