:root {
    --ink: #050505;
    --muted: #5f6065;
    --line: #dadada;
    --paper: #f4f4f1;
    --white: #ffffff;
    --accent: #ffe600;
    --accent-dark: #b79f00;
    --soft-accent: #fff7a8;
    --charcoal: #151515;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f9f9f9;
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
    padding: 10px clamp(20px, 4vw, 64px);
    border-bottom: 1px solid #e5e5e5;
    background: rgba(249, 249, 249, 0.96);
    backdrop-filter: blur(10px);
    color: var(--ink);
}

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

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    overflow: hidden;
    background: var(--accent);
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand small,
.eyebrow,
.output-cover small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar .brand small {
    color: #6e6e73;
}

.mobile-os-code {
    display: inline-flex;
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.topbar .brand-copy {
    display: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: #6e6e73;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.ghost,
.primary {
    min-height: 42px;
    border: 1px solid currentColor;
    padding: 0 16px;
    font-weight: 700;
}

.ghost {
    background: transparent;
    color: var(--ink);
}

.primary {
    width: 100%;
    margin-top: 8px;
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
}

main {
    width: min(1440px, calc(100% - 36px));
    margin: 0 auto;
}

main.home-shell {
    width: 100%;
    max-width: none;
}

.login-screen {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-panel {
    display: grid;
    width: min(560px, 100%);
    gap: 30px;
    border: 1px solid var(--line);
    background: var(--white);
    padding: clamp(26px, 5vw, 46px);
    box-shadow: 0 24px 70px rgba(5, 5, 5, 0.12);
}

.login-brand {
    color: var(--ink);
}

.login-panel h1 {
    font-size: clamp(38px, 7vw, 64px);
}

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

.form-error {
    margin-bottom: 0;
    color: #b91c1c;
    font-weight: 700;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: clamp(28px, 6vw, 80px);
    align-items: end;
    min-height: 430px;
    padding: 70px 0 48px;
    border-bottom: 1px solid var(--line);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 860px;
    margin-bottom: 0;
    font-size: clamp(44px, 7vw, 86px);
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: 0;
}

h3 {
    font-size: 24px;
    letter-spacing: 0;
}

.hero .eyebrow::before,
.section-heading .eyebrow::before,
.product-card .eyebrow::before,
.empty-state .eyebrow::before,
.output-cover .eyebrow::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    background: var(--accent);
    vertical-align: 1px;
}

.hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: flex-start;
}

.hero-note span {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    border: 1px solid var(--ink);
    padding: 0 10px;
    background: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-note p {
    flex-basis: 100%;
    margin-top: 12px;
    font-size: 18px;
}

.workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
    margin-bottom: 44px;
}

.saved-brandbooks {
    display: grid;
    gap: 18px;
    margin: 34px 0 22px;
    border: 1px solid var(--line);
    background: var(--white);
    padding: clamp(20px, 3vw, 34px);
    box-shadow: 0 18px 45px rgba(5, 5, 5, 0.05);
}

.brandbook-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.brandbook-item {
    display: grid;
    min-height: 92px;
    align-content: space-between;
    border: 1px solid var(--line);
    padding: 14px;
    color: var(--ink);
    text-decoration: none;
}

.brandbook-item:hover,
.brandbook-item.is-active {
    border-color: var(--accent);
    background: var(--soft-accent);
}

.brandbook-item span {
    color: var(--muted);
    font-size: 13px;
}

.brandbook-item em {
    color: var(--ink);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}

.panel,
.report-section,
.empty-state,
.output-cover {
    background: var(--white);
    border: 1px solid var(--line);
}

.panel,
.report-section,
.empty-state {
    box-shadow: 0 18px 45px rgba(5, 5, 5, 0.05);
}

.panel {
    padding: clamp(20px, 3vw, 34px);
}

.intake-form {
    display: grid;
    gap: 18px;
}

.quick-create {
    display: grid;
    grid-template-columns: repeat(2, minmax(230px, 0.9fr)) repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.dropzone {
    align-self: stretch;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.dropzone-frame {
    display: grid;
    min-height: 118px;
    align-content: center;
    gap: 8px;
    border: 1px dashed var(--ink);
    background: var(--accent);
    color: var(--ink);
    padding: 18px;
}

.dropzone-frame.is-reference {
    border-style: solid;
    background: var(--ink);
    color: var(--white);
}

.dropzone-frame strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
    text-transform: none;
}

.dropzone-frame small {
    color: rgba(5, 5, 5, 0.66);
    font-size: 12px;
}

.dropzone-frame.is-reference small {
    color: rgba(255, 255, 255, 0.64);
}

.advanced-brief {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.advanced-brief summary {
    cursor: pointer;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.advanced-brief[open] {
    display: grid;
    gap: 16px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.grid {
    display: grid;
    gap: 16px;
}

.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fbfbfa;
    color: var(--ink);
    padding: 12px 13px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
}

textarea {
    min-height: 92px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ink);
    outline: 3px solid rgba(255, 230, 0, 0.45);
}

.product-card {
    position: sticky;
    top: 92px;
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}

.product-card .eyebrow,
.product-card p {
    color: rgba(255, 255, 255, 0.72);
}

.product-card ul {
    margin: 20px 0 0;
    padding-left: 19px;
}

.product-card li {
    margin-bottom: 9px;
}

.home-hero {
    display: grid;
    min-height: auto;
    place-items: center;
    background: #f9f9f9;
    color: var(--ink);
    padding: clamp(72px, 8vw, 126px) clamp(20px, 5vw, 72px) clamp(52px, 7vw, 88px);
}

.home-hero-inner {
    display: grid;
    width: min(960px, 100%);
    justify-items: center;
    text-align: center;
}

.home-product-name {
    margin-bottom: clamp(16px, 2vw, 24px);
    color: #4c4546;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 920px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(58px, 7.4vw, 104px);
    line-height: 1.02;
    letter-spacing: 0;
}

.home-composer {
    display: grid;
    width: min(920px, 100%);
    gap: 12px;
    margin-top: clamp(30px, 4vw, 54px);
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 12px;
    box-shadow: none;
    text-align: left;
}

.home-composer label {
    color: #4c4546;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.composer-primary {
    position: relative;
    display: block;
}

.composer-url {
    display: block;
    position: relative;
    gap: 8px;
}

.composer-url input,
.composer-meta input,
.composer-meta select,
.composer-advanced input,
.composer-advanced select,
.composer-advanced textarea {
    border-color: #e5e5e5;
    background: #ffffff;
    color: var(--ink);
}

.composer-url input {
    min-height: 60px;
    border-radius: 4px;
    padding: 0 132px 0 18px;
    font-size: 18px;
}

.composer-url input::placeholder,
.composer-meta input::placeholder,
.composer-advanced input::placeholder,
.composer-advanced textarea::placeholder {
    color: rgba(76, 69, 70, 0.44);
}

.composer-submit {
    position: absolute;
    right: 6px;
    bottom: 6px;
    min-height: 48px;
    border: 0;
    border-radius: 4px;
    background: var(--ink);
    color: var(--white);
    padding: 0 20px;
    font-size: 15px;
    font-weight: 700;
}

.composer-submit:hover {
    background: #2f3131;
}

.composer-uploads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.composer-file {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    background: #f7f7f7;
    color: var(--ink);
    padding: 0 12px;
    font-size: 11px;
    cursor: pointer;
}

.composer-file span {
    max-width: 240px;
    overflow: hidden;
    color: #6e6e73;
    font-weight: 500;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.composer-file:hover {
    border-color: var(--ink);
}

.composer-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr);
    gap: 12px;
}

.composer-meta input,
.composer-meta select,
.composer-advanced input,
.composer-advanced select,
.composer-advanced textarea {
    border-radius: 4px;
}

.composer-advanced {
    border-top-color: #e5e5e5;
    color: #4c4546;
}

.composer-advanced summary {
    color: #4c4546;
}

.composer-advanced[open] {
    gap: 14px;
}

.home-composer .form-error {
    margin: 0;
    border: 1px solid #f1c6c6;
    border-radius: 4px;
    background: #fff7f7;
    padding: 12px 14px;
    color: #9f1239;
}

.home-chips {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.home-chips a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.84);
    padding: 0 15px;
    font-size: 14px;
    text-decoration: none;
}

.home-chips a:hover {
    border-color: var(--accent);
    color: var(--white);
}

.home-feed,
.home-system-grid {
    padding-right: clamp(18px, 4vw, 56px);
    padding-left: clamp(18px, 4vw, 56px);
}

.home-feed {
    background: #f9f9f9;
    padding-top: clamp(34px, 5vw, 62px);
    padding-bottom: clamp(36px, 5vw, 58px);
}

.home-section-head {
    display: flex;
    width: min(1180px, 100%);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto 26px;
}

.home-section-head h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
}

.home-section-head a {
    color: #4c4546;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: underline;
    text-transform: uppercase;
}

.home-brandbook-grid {
    display: grid;
    width: min(1180px, 100%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 auto;
}

.home-brand-card {
    display: grid;
    min-height: 0;
    grid-template-rows: auto auto;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
}

.home-brand-card:first-child {
    grid-column: auto;
}

.home-brand-card.is-active,
.home-brand-card:hover {
    border-color: var(--ink);
}

.brand-card-art {
    display: grid;
    aspect-ratio: 1 / 1;
    min-height: 0;
    place-items: center;
    background: var(--ink);
    color: var(--accent);
}

.brand-card-art[data-index="1"],
.brand-card-art[data-index="4"] {
    background: #e9e8e2;
    color: var(--ink);
}

.brand-card-art[data-index="2"],
.brand-card-art[data-index="5"] {
    background: var(--accent);
    color: var(--ink);
}

.brand-card-art strong {
    font-size: clamp(68px, 8vw, 118px);
    line-height: 0.8;
}

.brand-card-art.has-logo {
    background: #ffffff;
    padding: clamp(20px, 3vw, 34px);
}

.brand-card-art.has-logo img {
    display: block;
    width: min(78%, 240px);
    max-height: 58%;
    object-fit: contain;
}

.brand-card-copy {
    position: relative;
    display: grid;
    gap: 5px;
    padding: 14px 34px 14px 14px;
}

.brand-card-copy::after {
    content: "→";
    position: absolute;
    right: 14px;
    bottom: 15px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1;
}

.brand-card-copy em,
.brand-card-copy small {
    color: #6e6e73;
    font-size: 10px;
    font-style: normal;
}

.brand-card-copy strong {
    overflow: hidden;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-card-copy small {
    display: none;
}

.home-empty {
    display: grid;
    width: min(920px, 100%);
    gap: 12px;
    margin: 0 auto;
    border-top: 1px solid rgba(5, 5, 5, 0.18);
    border-bottom: 1px solid rgba(5, 5, 5, 0.18);
    padding: clamp(28px, 5vw, 64px) 0;
}

.home-empty h3 {
    max-width: 760px;
    font-size: clamp(32px, 5vw, 72px);
    line-height: 0.98;
}

.home-empty p {
    max-width: 560px;
    color: var(--muted);
    font-size: 18px;
}

.home-system-grid {
    display: grid;
    width: min(1180px, calc(100% - 48px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 auto clamp(72px, 8vw, 112px);
    background: #f9f9f9;
    padding: 0;
}

.home-system-grid article {
    display: grid;
    min-height: 220px;
    align-content: space-between;
    gap: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #ffffff;
    color: var(--ink);
    padding: clamp(22px, 3vw, 34px);
}

.home-system-grid article:first-child {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}

.home-system-grid span {
    color: #6e6e73;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.home-system-grid article:first-child span {
    color: #e2e2e2;
}

.home-system-grid h3 {
    max-width: 360px;
    margin: auto 0 0;
    font-size: clamp(28px, 3.3vw, 48px);
    line-height: 1;
}

.home-system-grid p {
    max-width: 420px;
    margin: 0;
    color: #4c4546;
    font-size: 15px;
}

.home-system-grid article:first-child p {
    color: rgba(255, 255, 255, 0.86);
}

.output {
    display: grid;
    gap: 16px;
    margin: 44px 0 80px;
}

.output-cover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
    align-items: center;
    min-height: 460px;
    padding: clamp(34px, 6vw, 70px);
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
    box-shadow: inset 0 -10px 0 var(--accent);
}

.output-cover .eyebrow,
.output-cover small {
    color: rgba(255, 255, 255, 0.72);
}

.output-cover h2 {
    margin-bottom: 8px;
    font-size: clamp(48px, 8vw, 104px);
}

.cover-url {
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
}

.cover-logo {
    display: grid;
    min-height: 220px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: var(--white);
    padding: 28px;
}

.cover-logo img {
    display: block;
    max-width: 100%;
    max-height: 190px;
    object-fit: contain;
}

.cover-logo-file {
    background: var(--accent);
    color: var(--ink);
    text-align: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 6px 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    padding: 0 10px;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pill.is-ai {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
}

.output-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.on-dark {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
}

.primary.compact {
    width: auto;
    margin-top: 0;
}

.executive-strip {
    border: 1px solid var(--line);
    background: var(--accent);
    padding: clamp(22px, 4vw, 38px);
}

.executive-strip .key-values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.executive-strip .kv {
    border-left-color: var(--ink);
}

.report-index {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border: 1px solid var(--line);
    background: var(--white);
}

.report-index span {
    min-height: 64px;
    border-right: 1px solid var(--line);
    padding: 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.report-index span:last-child {
    border-right: 0;
}

.report-grid {
    display: grid;
    gap: 16px;
}

.report-spread {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.report-section,
.empty-state {
    padding: clamp(22px, 4vw, 42px);
}

.report-section h3 {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.key-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.kv {
    min-width: 0;
    border-left: 3px solid var(--line);
    padding-left: 14px;
}

.kv strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
}

.kv {
    border-left-color: var(--accent);
}

.kv p,
.kv ul {
    margin-bottom: 0;
}

li + li {
    margin-top: 7px;
}

.brandbook-gui {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin: 44px 0 90px;
}

.brandbook-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
    min-height: calc(100vh - 118px);
    align-content: start;
    border: 1px solid rgba(255, 230, 0, 0.3);
    background: var(--ink);
    color: var(--white);
    padding: 18px;
}

.side-logo {
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
}

.side-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.side-logo span {
    font-size: 42px;
    font-weight: 700;
}

.side-meta {
    display: grid;
    gap: 4px;
}

.side-meta strong {
    font-size: 22px;
    line-height: 1;
}

.side-meta span,
.side-nav a {
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
}

.side-nav {
    display: grid;
    gap: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 12px;
}

.side-nav a {
    min-height: 34px;
    border-left: 3px solid transparent;
    padding: 8px 0 8px 10px;
    text-decoration: none;
}

.side-nav a:hover {
    border-left-color: var(--accent);
    color: var(--white);
}

.side-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.side-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
}

.brandbook-stage {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.brandbook-cover {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(28px, 5vw, 70px);
    align-items: stretch;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--white);
    padding: clamp(34px, 6vw, 76px);
}

.brandbook-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.5;
    pointer-events: none;
}

.brandbook-cover::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 38%;
    height: 10px;
    background: var(--accent);
}

.cover-brand,
.cover-identity {
    position: relative;
    z-index: 1;
}

.cover-brand {
    display: grid;
    align-content: space-between;
    gap: 32px;
}

.cover-brand h2 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(72px, 12vw, 170px);
    line-height: 0.82;
}

.cover-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 760px;
}

.cover-tags span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0 11px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.cover-identity {
    display: grid;
    gap: 16px;
    align-content: end;
}

.identity-card {
    display: grid;
    min-height: 320px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: var(--white);
    padding: 30px;
}

.identity-card img {
    display: block;
    width: min(240px, 100%);
    max-height: 240px;
    object-fit: contain;
}

.identity-card strong {
    color: var(--ink);
    font-size: 36px;
}

.identity-caption {
    display: grid;
    gap: 4px;
    border-left: 5px solid var(--accent);
    padding-left: 14px;
}

.identity-caption span {
    color: rgba(255, 255, 255, 0.54);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.gui-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
}

.overview-main,
.metric-card,
.visual-system-preview,
.gui-section {
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 18px 45px rgba(5, 5, 5, 0.05);
}

.overview-main {
    padding: clamp(24px, 4vw, 44px);
}

.overview-main .key-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid {
    display: grid;
    gap: 10px;
}

.metric-card {
    display: grid;
    min-height: 106px;
    align-content: space-between;
    padding: 18px;
}

.metric-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.metric-card strong {
    font-size: 28px;
    line-height: 1;
}

.visual-system-preview {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr) minmax(260px, 0.8fr);
    min-height: 260px;
    overflow: hidden;
}

.system-logo-board,
.system-type-board,
.system-swatches {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 28px;
}

.system-logo-board {
    background: var(--white);
}

.system-logo-board img {
    width: min(170px, 70%);
    max-height: 170px;
    object-fit: contain;
}

.system-type-board {
    justify-items: start;
    background: var(--ink);
    color: var(--white);
}

.system-type-board span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.system-type-board strong {
    display: block;
    font-size: clamp(86px, 12vw, 146px);
    line-height: 0.8;
}

.system-type-board p {
    max-width: 360px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.system-swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    background: #eeeeea;
}

.system-swatches span {
    display: grid;
    width: 100%;
    min-height: 186px;
    align-content: end;
    border: 1px solid rgba(5, 5, 5, 0.16);
    background: var(--swatch);
    color: var(--ink);
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
}

.system-swatches span:first-child {
    color: var(--white);
}

.brandbook-modules {
    display: grid;
    gap: 16px;
}

.gui-section {
    padding: clamp(22px, 3.5vw, 40px);
    scroll-margin-top: 110px;
}

.gui-section-head {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 26px;
}

.gui-section-head > span {
    color: var(--accent-dark);
    font-size: 46px;
    font-weight: 700;
    line-height: 0.9;
}

.gui-section-head h3 {
    margin: 0;
    font-size: clamp(32px, 4.5vw, 64px);
    line-height: 0.92;
}

.gui-section .key-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gui-section .kv {
    min-height: 116px;
    border-left: 0;
    border-top: 4px solid var(--accent);
    background: #fbfbfa;
    padding: 14px;
}

.gui-section .kv .key-values {
    grid-template-columns: 1fr;
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.application-tile {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    background: #fbfbfa;
    padding: 14px;
}

.application-preview {
    display: grid;
    min-height: 150px;
    place-items: end start;
    background: var(--ink);
    color: var(--accent);
    padding: 14px;
}

.application-preview span {
    font-size: 42px;
    font-weight: 700;
    line-height: 0.9;
}

.application-tile strong {
    font-size: 18px;
}

.application-tile p {
    color: var(--muted);
}

.brand-manual {
    --manual-bg: #f7f7f2;
    --manual-line: rgba(5, 5, 5, 0.18);
    --manual-line-soft: rgba(5, 5, 5, 0.1);
    display: block;
    max-width: 100%;
    margin: clamp(56px, 8vw, 96px) 0 120px;
    background: var(--manual-bg);
    color: var(--ink);
}

.manual-actions {
    position: sticky;
    top: 82px;
    z-index: 8;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--manual-line-soft);
    background: rgba(247, 247, 242, 0.92);
    backdrop-filter: blur(12px);
}

.manual-actions a,
.manual-actions button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.manual-actions button {
    background: var(--ink);
    color: var(--white);
}

.manual-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
    gap: clamp(44px, 8vw, 132px);
    align-items: stretch;
    min-height: min(820px, calc(100vh - 92px));
    border-top: 1px solid rgba(5, 5, 5, 0.28);
    padding: clamp(84px, 10vw, 148px) 0 clamp(56px, 7vw, 98px);
}

.manual-hero-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-end;
}

.manual-brand-name {
    margin-bottom: clamp(30px, 4vw, 62px);
    color: #222;
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.1;
}

.manual-hero h1 {
    max-width: 1100px;
    margin: 0;
    font-size: clamp(74px, 12vw, 176px);
    line-height: 0.88;
    letter-spacing: 0;
}

.manual-intro-copy {
    max-width: 860px;
    margin-top: clamp(34px, 5vw, 72px);
}

.manual-intro-copy p {
    color: #303030;
    font-size: clamp(21px, 2.45vw, 34px);
    line-height: 1.2;
}

.manual-hero-mark {
    display: grid;
    grid-template-rows: minmax(320px, 1fr) auto;
    min-height: min(660px, calc(100vh - 220px));
    align-self: stretch;
    border: 1px solid rgba(5, 5, 5, 0.24);
    background: var(--ink);
    color: var(--white);
    padding: clamp(18px, 2.5vw, 30px);
}

.manual-hero-logo {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--ink);
    padding: clamp(38px, 5vw, 72px);
}

.manual-hero-logo img {
    display: block;
    width: min(64%, 320px);
    max-height: 340px;
    object-fit: contain;
}

.manual-hero-logo strong {
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
}

.manual-hero-mark-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 18px;
}

.manual-hero-mark-meta span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.manual-hero-mark-meta strong {
    max-width: 240px;
    text-align: right;
    font-size: clamp(18px, 2vw, 28px);
    line-height: 1;
}

.manual-jumpnav {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 24px);
    border-top: 1px solid var(--manual-line);
    border-bottom: 1px solid var(--manual-line-soft);
    padding: 18px 0;
}

.manual-jumpnav a {
    color: var(--muted);
    font-size: 15px;
    text-decoration: none;
}

.manual-jumpnav a:hover {
    color: var(--ink);
}

.manual-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.31fr) minmax(0, 0.69fr);
    gap: clamp(32px, 7vw, 112px);
    border-top: 1px solid var(--manual-line);
    padding: clamp(66px, 9vw, 132px) 0;
    scroll-margin-top: 96px;
}

.manual-section-title h2 {
    position: sticky;
    top: 118px;
    margin: 0;
    font-size: clamp(34px, 5.3vw, 78px);
    line-height: 0.95;
}

.manual-section-body {
    min-width: 0;
}

.manual-section-body > h3 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(30px, 4.2vw, 64px);
    line-height: 0.98;
}

.manual-section-body > p {
    max-width: 860px;
    color: #292929;
    font-size: clamp(20px, 2.05vw, 30px);
    line-height: 1.26;
}

.brand-manual .key-values {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 920px;
    border-top: 1px solid var(--manual-line);
}

.brand-manual .kv {
    display: grid;
    grid-template-columns: minmax(150px, 0.32fr) minmax(0, 0.68fr);
    gap: 28px;
    border-left: 0;
    border-bottom: 1px solid var(--manual-line);
    padding: 24px 0;
}

.brand-manual .kv strong {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
}

.brand-manual .kv p,
.brand-manual .kv li {
    color: #303030;
    font-size: 17px;
}

.brand-manual .kv ul {
    margin: 0;
    padding-left: 18px;
}

.reference-source,
.reference-guidelines,
.reference-excerpt {
    display: grid;
    gap: 12px;
    max-width: 920px;
    border-top: 1px solid var(--manual-line);
    padding: 24px 0;
}

.reference-source {
    grid-template-columns: minmax(150px, 0.28fr) minmax(0, 0.72fr);
    align-items: start;
}

.reference-source span,
.reference-guidelines > span,
.reference-excerpt summary {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.reference-source a,
.reference-source strong {
    min-width: 0;
    color: var(--ink);
    font-size: clamp(22px, 3vw, 40px);
    line-height: 1;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.reference-source p,
.reference-guidelines p,
.reference-excerpt p {
    margin: 0;
    color: #303030;
    font-size: 17px;
}

.reference-guidelines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reference-guidelines > span {
    grid-column: 1 / -1;
}

.reference-guidelines article {
    display: grid;
    min-height: 176px;
    align-content: space-between;
    gap: 24px;
    border: 1px solid var(--manual-line);
    background: var(--white);
    padding: 18px;
}

.reference-guidelines article strong {
    max-width: 260px;
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 0.98;
}

.reference-guidelines article p {
    line-height: 1.32;
}

.reference-excerpt {
    border-bottom: 1px solid var(--manual-line);
}

.reference-excerpt summary {
    cursor: pointer;
}

.reference-excerpt p {
    margin-top: 16px;
}

.manual-logo-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 38px 0 42px;
}

.logo-canvas {
    position: relative;
    display: grid;
    min-height: 340px;
    place-items: center;
    border: 1px solid var(--manual-line);
    padding: clamp(28px, 5vw, 64px);
}

.logo-canvas img {
    display: block;
    width: min(240px, 78%);
    max-height: 240px;
    object-fit: contain;
}

.logo-canvas.is-light {
    background: var(--white);
}

.logo-canvas.is-light.is-monochrome-light img {
    filter: invert(1);
}

.logo-canvas.is-dark {
    background: var(--ink);
    color: var(--white);
}

.logo-clearspace {
    display: grid;
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
    gap: clamp(22px, 5vw, 72px);
    align-items: end;
    margin: 0 0 72px;
    border-top: 1px solid var(--manual-line);
    border-bottom: 1px solid var(--manual-line);
    padding: 22px 0;
}

.clearspace-mark {
    position: relative;
    display: grid;
    min-height: 260px;
    place-items: center;
    overflow: hidden;
    background: var(--ink);
    padding: 52px;
}

.clearspace-mark::before {
    content: "";
    position: absolute;
    inset: clamp(28px, 4vw, 46px);
    border: 1px dashed rgba(255, 230, 0, 0.66);
}

.clearspace-mark img,
.clearspace-mark strong {
    position: relative;
    z-index: 1;
}

.clearspace-mark img {
    width: min(160px, 52%);
    max-height: 160px;
    object-fit: contain;
}

.clearspace-mark strong {
    color: var(--white);
    font-size: 34px;
}

.logo-clearspace p {
    max-width: 520px;
    margin: 0;
    color: #303030;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.28;
}

.dos-donts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.rule-card {
    display: grid;
    min-height: 148px;
    align-content: space-between;
    border: 1px solid var(--manual-line);
    background: var(--white);
    padding: 16px;
}

.rule-card span {
    font-size: 12px;
    font-weight: 700;
}

.rule-card.is-do span {
    color: #0a7f3f;
}

.rule-card.is-dont span {
    color: #9f1d1d;
}

.rule-card p {
    margin: 0;
    font-size: 17px;
}

.manual-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    margin: 34px 0 18px;
    border: 1px solid var(--manual-line);
}

.manual-swatches div {
    display: grid;
    min-height: 280px;
    align-content: end;
    border-right: 1px solid rgba(5, 5, 5, 0.14);
    background: var(--swatch);
    padding: 18px;
}

.manual-swatches div:last-child {
    border-right: 0;
}

.manual-swatches .is-dark-swatch {
    color: var(--white);
}

.manual-swatches .is-light-swatch {
    color: var(--ink);
}

.manual-swatches span {
    font-size: 13px;
    font-weight: 700;
}

.manual-swatches strong {
    font-size: 28px;
}

.manual-visual-board {
    display: grid;
    grid-template-columns: minmax(240px, 0.45fr) minmax(0, 0.55fr);
    margin: 18px 0 48px;
    border: 1px solid var(--manual-line);
}

.visual-board-logo,
.visual-board-type {
    display: grid;
    min-height: 300px;
    place-items: center;
    padding: 34px;
}

.visual-board-logo {
    background: var(--ink);
}

.visual-board-logo img {
    width: min(210px, 72%);
    max-height: 210px;
    object-fit: contain;
}

.visual-board-type {
    justify-items: start;
    background: var(--ink);
    color: var(--white);
}

.visual-board-type span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.visual-board-type strong {
    font-size: clamp(88px, 12vw, 170px);
    line-height: 0.78;
}

.visual-board-type p {
    max-width: 360px;
    color: rgba(255, 255, 255, 0.72);
}

.manual-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.manual-gallery-item {
    min-width: 0;
    border-top: 1px solid var(--manual-line);
    padding-top: 16px;
}

.manual-gallery-item:first-child {
    grid-column: span 2;
}

.gallery-art {
    display: grid;
    aspect-ratio: 4 / 3;
    min-height: 0;
    place-items: end start;
    background: var(--ink);
    color: var(--accent);
    padding: 22px;
}

.manual-gallery-item:first-child .gallery-art {
    aspect-ratio: 16 / 9;
}

.manual-gallery-item:nth-child(3n + 2) .gallery-art {
    background: var(--accent);
    color: var(--ink);
}

.manual-gallery-item:nth-child(3n + 3) .gallery-art {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--manual-line);
}

.gallery-art span {
    font-size: clamp(54px, 8vw, 110px);
    font-weight: 700;
    line-height: 0.82;
}

.manual-gallery-item h4 {
    margin: 16px 0 8px;
    font-size: 24px;
}

.manual-gallery-item p {
    color: var(--muted);
}

.type-specimen {
    display: grid;
    gap: 24px;
    margin-top: 34px;
    border-top: 1px solid rgba(5, 5, 5, 0.18);
    border-bottom: 1px solid rgba(5, 5, 5, 0.18);
    padding: 30px 0;
}

.type-specimen > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.type-specimen span {
    color: var(--muted);
    font-size: 14px;
}

.type-specimen strong {
    display: block;
    font-size: clamp(58px, 8vw, 104px);
    line-height: 0.9;
    letter-spacing: 0;
}

.type-specimen p {
    font-size: 22px;
}

@media (max-width: 860px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        background: #f9f9f9;
    }

    .topbar,
    nav {
        align-items: center;
    }

    .topbar {
        position: sticky;
        flex-direction: row;
        gap: 12px;
        min-height: 56px;
        border-bottom-color: #e5e5e5;
        background: rgba(249, 249, 249, 0.96);
        color: var(--ink);
        padding: 8px 16px;
    }

    .topbar .brand {
        gap: 10px;
    }

    .topbar .brand-copy,
    .topbar .ghost,
    nav a:nth-of-type(3) {
        display: none;
    }

    .mobile-os-code {
        display: inline-flex;
        color: var(--ink);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px 13px;
    }

    nav a {
        color: var(--ink);
        font-size: 13px;
    }

    .hero,
    .composer-primary,
    .composer-meta,
    .home-brandbook-grid,
    .home-system-grid,
    .workspace,
    .manual-hero,
    .manual-section,
    .manual-logo-showcase,
    .logo-clearspace,
    .dos-donts,
    .manual-swatches,
    .manual-visual-board,
    .manual-gallery,
    .reference-source,
    .reference-guidelines,
    .brand-manual .kv,
    .brandbook-gui,
    .brandbook-cover,
    .gui-overview,
    .visual-system-preview,
    .system-swatches,
    .gui-section .key-values,
    .application-grid,
    .quick-create,
    .two,
    .key-values,
    .brandbook-list,
    .output-cover,
    .executive-strip .key-values,
    .report-index,
    .report-spread {
        grid-template-columns: 1fr;
    }

    .home-hero {
        background: #f9f9f9;
        color: var(--ink);
        min-height: auto;
        padding: 38px 20px 34px;
    }

    .home-hero-inner {
        width: min(430px, 100%);
    }

    .home-hero h1 {
        max-width: 350px;
        color: var(--ink);
        font-size: clamp(40px, 11vw, 48px);
        line-height: 1.04;
    }

    .home-product-name {
        margin-bottom: 15px;
        color: #4c4546;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .home-composer {
        width: 100%;
        gap: 10px;
        margin-top: 28px;
        border: 0;
        border-radius: 0;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .home-composer label {
        color: #4c4546;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .composer-primary {
        position: relative;
        display: block;
    }

    .composer-url {
        display: block;
        position: relative;
    }

    .composer-url input {
        min-height: 48px;
        border-color: #e5e5e5;
        border-radius: 4px;
        background: transparent;
        color: var(--ink);
        padding: 0 110px 0 16px;
        font-size: 14px;
    }

    .composer-submit {
        position: absolute;
        right: 6px;
        bottom: 6px;
        width: auto;
        min-height: 36px;
        border-radius: 4px;
        background: var(--ink);
        color: var(--white);
        padding: 0 14px;
        font-size: 13px;
    }

    .composer-file {
        width: auto;
        min-height: 25px;
        justify-content: center;
        gap: 7px;
        border-color: #e5e5e5;
        border-radius: 999px;
        background: #f7f7f7;
        color: var(--ink);
        padding: 0 10px;
        font-size: 10px;
        letter-spacing: 0;
        text-transform: none;
    }

    .composer-file span {
        max-width: 96px;
        color: #6e6e73;
        font-size: 10px;
    }

    .composer-uploads {
        justify-content: center;
        gap: 8px;
        padding-top: 2px;
    }

    .composer-url input,
    .composer-meta input,
    .composer-meta select,
    .composer-advanced input,
    .composer-advanced select,
    .composer-advanced textarea {
        border-color: #e5e5e5;
        background: #ffffff;
        color: var(--ink);
    }

    .composer-url input::placeholder,
    .composer-meta input::placeholder,
    .composer-advanced input::placeholder,
    .composer-advanced textarea::placeholder {
        color: rgba(76, 69, 70, 0.44);
    }

    .composer-advanced {
        border-top-color: #e5e5e5;
        color: #4c4546;
        padding-top: 12px;
    }

    .composer-advanced summary {
        color: #4c4546;
        font-size: 11px;
        letter-spacing: 0.07em;
    }

    .home-composer .form-error {
        border-color: #f1c6c6;
        border-radius: 4px;
        background: #fff7f7;
        color: #9f1239;
    }

    .home-chips {
        display: none;
    }

    .home-section-head {
        width: min(430px, 100%);
        align-items: center;
        flex-direction: row;
        gap: 16px;
        margin-bottom: 22px;
    }

    .home-section-head h2 {
        font-size: 24px;
        line-height: 1.2;
    }

    .home-section-head a {
        color: #4c4546;
        font-size: 10px;
        letter-spacing: 0.1em;
        text-decoration: underline;
        text-transform: uppercase;
    }

    .home-feed {
        background: #f9f9f9;
        padding: 34px 20px 52px;
    }

    .home-brandbook-grid {
        width: min(430px, 100%);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .home-brand-card:first-child {
        grid-column: auto;
    }

    .home-brand-card {
        min-height: 0;
        grid-template-rows: auto auto;
        border-color: #e5e5e5;
        background: #ffffff;
    }

    .brand-card-art {
        aspect-ratio: 1 / 1;
        min-height: 0;
    }

    .brand-card-art strong {
        font-size: clamp(54px, 15vw, 64px);
    }

    .brand-card-copy {
        position: relative;
        gap: 4px;
        padding: 12px 28px 12px 12px;
    }

    .brand-card-copy::after {
        content: "→";
        position: absolute;
        right: 12px;
        bottom: 13px;
        color: var(--ink);
        font-size: 15px;
        line-height: 1;
    }

    .brand-card-copy em {
        display: block;
        overflow: hidden;
        color: #6e6e73;
        font-size: 9px;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .brand-card-copy strong {
        display: block;
        overflow: hidden;
        font-size: 16px;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand-card-copy small {
        display: none;
    }

    .home-system-grid {
        width: min(430px, calc(100% - 40px));
        margin: 0 auto 56px;
        gap: 12px;
        background: #f9f9f9;
        padding: 0;
    }

    .home-system-grid article {
        display: grid;
        min-height: 0;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 16px;
        align-content: start;
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        background: #ffffff;
        color: var(--ink);
        padding: 20px;
    }

    .home-system-grid article:first-child {
        border-color: var(--ink);
        background: var(--ink);
        color: var(--white);
    }

    .home-system-grid span {
        color: #6e6e73;
        font-size: 11px;
        letter-spacing: 0.08em;
    }

    .home-system-grid article:first-child span {
        color: #e2e2e2;
    }

    .home-system-grid h3 {
        max-width: none;
        margin: 0 0 5px;
        font-size: 18px;
        line-height: 1.1;
    }

    .home-system-grid p {
        max-width: none;
        margin: 0;
        color: #4c4546;
        font-size: 12px;
        line-height: 1.4;
    }

    .home-system-grid article:first-child p {
        color: rgba(255, 255, 255, 0.86);
    }

    .hero {
        min-height: auto;
        padding-top: 44px;
    }

    h1 {
        font-size: 46px;
    }

    .product-card {
        position: static;
    }

    .brandbook-sidebar {
        position: static;
        min-height: auto;
    }

    .side-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manual-section-title h2 {
        position: static;
    }

    .manual-hero {
        min-height: auto;
    }

    .manual-hero-mark {
        min-height: auto;
    }

    .manual-hero-logo {
        min-height: 280px;
    }

    .manual-gallery-item:first-child {
        grid-column: auto;
    }

    .report-index span {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media print {
    * {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body {
        background: var(--white);
    }

    .topbar,
    .workspace,
    .empty-state,
    .saved-brandbooks,
    .home-hero,
    .home-feed,
    .home-system-grid,
    .manual-actions,
    .manual-jumpnav,
    .brandbook-sidebar,
    .output-actions {
        display: none;
    }

    main {
        width: 100%;
    }

    .hero {
        display: none;
    }

    .output {
        margin: 0;
        gap: 0;
    }

    .output-cover {
        min-height: 92vh;
    }

    .brandbook-gui,
    .brandbook-stage,
    .brandbook-modules,
    .brand-manual {
        display: block;
        margin: 0;
    }

    .manual-hero {
        min-height: 92vh;
        page-break-after: always;
    }

    .manual-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .brandbook-cover {
        min-height: 94vh;
        border: 0;
        page-break-after: always;
    }

    .gui-overview,
    .visual-system-preview,
    .gui-section {
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .gui-overview,
    .visual-system-preview {
        margin-bottom: 16px;
    }

    .output-cover,
    .executive-strip,
    .report-section {
        border: 0;
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-index {
        display: none;
    }

    .report-spread,
    .executive-strip .key-values {
        grid-template-columns: 1fr;
    }

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