
            :root {
                --paper: #f6f4ef;
                --ink: #20251f;
                --muted: #75796f;
                --line: #d7d9d0;
                --accent: #436654;
            }
            * {
                box-sizing: border-box;
            }
            body {
                margin: 0;
                background: var(--paper);
                color: var(--ink);
                font-family: Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
                line-height: 1.6;
            }
            button,
            input,
            select,
            textarea {
                font: inherit;
            }
            button,
            a {
                touch-action: manipulation;
            }
            a {
                color: inherit;
                text-decoration: none;
            }
            button {
                cursor: pointer;
            }
            header {
                padding: 22px 5vw;
                display: flex;
                justify-content: space-between;
                border-bottom: 1px solid var(--line);
            }
            .brand {
                font-family: Georgia, serif;
                font-size: 24px;
                letter-spacing: 2px;
            }
            .tiny {
                font-size: 12px;
                letter-spacing: 1px;
            }
            .wrap {
                max-width: 1440px;
                margin: auto;
                padding: 0 6vw;
            }
            .hero {
                padding-top: 72px;
                padding-bottom: 44px;
            }
            .eyebrow {
                font-size: 13px;
                color: var(--accent);
                display: flex;
                gap: 14px;
                align-items: center;
            }
            .pill {
                border: 1px solid var(--line);
                border-radius: 30px;
                padding: 4px 12px;
            }
            h1 {
                font-size: clamp(36px, 5vw, 76px);
                letter-spacing: -3px;
                line-height: 1.15;
                margin: 24px 0;
            }
            h2 {
                font-size: clamp(24px, 3vw, 38px);
                line-height: 1.3;
                letter-spacing: -1px;
                margin: 0;
            }
            p {
                margin: 0;
            }
            .intro {
                font-size: 18px;
                color: var(--muted);
                max-width: 700px;
            }
            .meta {
                display: grid;
                grid-template-columns: 1fr 1fr 2fr;
                gap: 28px;
                border-top: 1px solid var(--line);
                margin-top: 42px;
                padding-top: 22px;
            }
            .label {
                font-size: 12px;
                color: var(--muted);
                display: block;
                margin-bottom: 8px;
            }
            .stage {
                background: #e3e8df;
                padding: 4vw 6vw;
                margin: 0 0 80px;
            }
            .stage img {
                display: block;
                width: 100%;
                max-width: 1320px;
                margin: auto;
                box-shadow: 0 24px 60px #17281b18;
            }
            .section {
                margin-bottom: 88px;
            }
            .section-head {
                display: flex;
                justify-content: space-between;
                align-items: end;
                gap: 24px;
                margin-bottom: 30px;
            }
            .section-head p {
                max-width: 380px;
                color: var(--muted);
                font-size: 14px;
            }
            .screens {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 26px;
            }
            .frame {
                background: #e9e9e2;
                padding: 18px;
            }
            .frame img {
                width: 100%;
                display: block;
                max-height: 680px;
                object-fit: contain;
                object-position: top;
            }
            .caption {
                font-size: 13px;
                margin-top: 12px;
            }
            .mobile-row {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 50px;
                align-items: center;
            }
            .phone {
                max-width: 320px;
                margin: auto;
                background: #e9e9e2;
                padding: 14px;
                border-radius: 28px;
            }
            .phone img {
                width: 100%;
                max-height: 640px;
                object-fit: contain;
                border-radius: 16px;
                display: block;
            }
            .actions {
                border-top: 1px solid var(--line);
                padding-top: 28px;
                display: flex;
                justify-content: space-between;
                gap: 16px;
            }
            .button {
                display: inline-block;
                background: var(--ink);
                color: white;
                padding: 13px 22px;
                border: 0;
                border-radius: 3px;
            }
            .outline {
                background: transparent;
                border: 1px solid var(--line);
                color: var(--ink);
            }
            footer {
                background: #20291f;
                color: #f6f4ef;
                padding: 55px 6vw;
                display: flex;
                justify-content: space-between;
                gap: 20px;
            }
            footer h2 {
                font-size: 30px;
            }
            footer a {
                border-bottom: 1px solid #87917f;
            }
            .edit-toggle {
                border: 0;
                background: none;
                color: var(--muted);
                font-size: 13px;
            }
            .editor {
                position: fixed;
                inset: 0 0 0 auto;
                width: min(440px, 100%);
                background: white;
                padding: 24px;
                overflow: auto;
                z-index: 10;
                box-shadow: -20px 0 70px #0002;
            }
            .editor[hidden] {
                display: none;
            }
            .editor label {
                display: block;
                font-size: 13px;
                margin-top: 17px;
            }
            .editor input,
            .editor textarea,
            .editor select {
                width: 100%;
                padding: 9px;
                border: 1px solid #ddd;
                border-radius: 4px;
                margin-top: 5px;
            }
            .editor h2 {
                font-size: 24px;
            }
            .editor small {
                display: block;
                color: var(--muted);
                font-size: 12px;
                margin-top: 12px;
            }
            .editor .button {
                margin-top: 18px;
            }
            .notice {
                font-size: 12px;
                color: var(--muted);
                padding: 12px 6vw;
                border-bottom: 1px solid var(--line);
            }
            .preview-types {
                display: flex;
                gap: 8px;
                margin-top: 14px;
            }
            .preview-types button {
                padding: 6px 12px;
                border: 1px solid var(--line);
                background: white;
                border-radius: 20px;
            }
            .close {
                float: right;
                background: none;
                border: 0;
                font-size: 24px;
            }
            :focus-visible {
                outline: 3px solid #789b83;
                outline-offset: 4px;
            }
            @media (max-width: 700px) {
                .hero {
                    padding-top: 40px;
                }
                h1 {
                    letter-spacing: -1.5px;
                }
                .meta {
                    grid-template-columns: 1fr 1fr;
                    gap: 20px;
                }
                .meta > div:last-child {
                    grid-column: 1/-1;
                }
                .stage {
                    padding: 20px;
                    margin-bottom: 50px;
                }
                .section {
                    margin-bottom: 55px;
                }
                .screens,
                .mobile-row {
                    grid-template-columns: 1fr;
                }
                .section-head {
                    display: block;
                }
                .section-head p {
                    margin-top: 14px;
                }
                .mobile-row {
                    gap: 25px;
                }
                .actions,
                footer {
                    flex-direction: column;
                }
                .frame {
                    padding: 10px;
                }
            }
            @media print {
                .editor,
                .edit-toggle,
                .notice {
                    display: none;
                }
            }

            .screens {
                grid-template-columns: 1fr;
                gap: 50px;
            }
            .frame {
                padding: 0;
                background: transparent;
                border: 0;
                width: 100%;
                text-align: left;
                cursor: zoom-in;
            }
            .frame img {
                max-height: none;
                object-fit: contain;
            }
            .caption {
                display: flex;
                justify-content: space-between;
                padding-top: 12px;
                border-top: 1px solid var(--line);
            }
            .stage img {
                max-height: 900px;
                object-fit: contain;
            }
            .stage button {
                display: block;
                border: 0;
                background: none;
                padding: 0;
                width: 100%;
                cursor: zoom-in;
            }
            .gallery-hint {
                font-size: 12px;
                color: var(--muted);
            }
            dialog {
                border: 0;
                padding: 0;
                width: 94vw;
                max-width: 1500px;
                height: 92vh;
                background: var(--paper);
            }
            dialog::backdrop {
                background: #141a17cc;
            }
            .viewer-bar {
                position: sticky;
                top: 0;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 15px 24px;
                background: var(--paper);
                border-bottom: 1px solid var(--line);
                z-index: 1;
            }
            .viewer-body {
                padding: 24px;
            }
            .viewer-body img {
                width: 100%;
                height: auto;
                display: block;
            }
            .viewer-bar button {
                border: 1px solid var(--line);
                background: white;
                padding: 8px 14px;
            }
            .sample-block {
                min-height: 400px;
            }
            #full-section .frame {
                max-height: 650px;
                overflow: hidden;
            }
            #full-section .caption {
                margin-top: 14px;
            }
            @media (max-width: 700px) {
                .screens {
                    gap: 30px;
                }
                .stage {
                    padding: 18px;
                }
                .viewer-body {
                    padding: 10px;
                }
                .viewer-bar {
                    padding: 10px;
                }
                .meta > div {
                    min-width: 0;
                }
                h1,
                .meta {
                    overflow-wrap: anywhere;
                }
            }
            [hidden] {
                display: none !important;
            }

            /* Modal controls remain readable regardless of inherited theme colors. */
            #viewer {
                color: #20251f;
                background: #f6f4ef;
                color-scheme: light;
            }
            #viewer .viewer-bar {
                background: #f6f4ef;
                color: #20251f;
                gap: 16px;
                isolation: isolate;
            }
            #viewer-title {
                color: #20251f;
                font-size: 15px;
                font-weight: 600;
                line-height: 1.5;
                min-width: 0;
                overflow-wrap: anywhere;
            }
            #viewer-close {
                color: #ffffff;
                background: #20251f;
                border: 1px solid #20251f;
                font-size: 14px;
                font-weight: 600;
                line-height: 1.4;
                min-height: 44px;
                padding: 10px 18px;
                flex-shrink: 0;
                white-space: nowrap;
                opacity: 1;
            }
            #viewer-close:hover {
                background: #436654;
                border-color: #436654;
                color: #ffffff;
            }
            #viewer-close:focus-visible {
                outline: 3px solid #789b83;
                outline-offset: 3px;
            }
            #editor {
                color: #20251f;
                background: #ffffff;
                color-scheme: light;
            }
            #editor .close {
                color: #20251f;
                background: #ffffff;
                border: 1px solid #d7d9d0;
                width: 44px;
                height: 44px;
                line-height: 1;
            }
            #editor input,
            #editor select,
            #editor textarea {
                color: #20251f;
                background: #ffffff;
            }
            #editor .preview-types button {
                color: #20251f;
                background: #ffffff;
            }
            #editor #download {
                color: #ffffff;
                background: #20251f;
            }

            /* Long-form project showcase */
            body {
                background: #faf9f6;
            }
            .hero {
                padding-top: 80px;
                padding-bottom: 60px;
            }
            .stage {
                padding: 0;
                background: #e3e8df;
                margin-bottom: 90px;
            }
            .stage button {
                padding: 5vw 6vw;
            }
            .stage img {
                max-height: none;
                box-shadow: 0 22px 60px #0002;
            }
            .section {
                margin-bottom: 110px;
            }
            #full-section {
                max-width: none;
                padding: 80px 6vw 100px;
                background: #eeeae4;
            }
            #full-section .section-head {
                max-width: 1160px;
                margin: 0 auto 40px;
            }
            #full-section .frame {
                max-height: none;
                overflow: visible;
                max-width: 920px;
                display: block;
                margin: auto;
                background: #fff;
                box-shadow: 0 24px 55px #0002;
            }
            #full-section .frame img {
                max-height: none;
                width: 100%;
            }
            #full-section .caption {
                max-width: 920px;
                margin: 18px auto 0;
            }
            #detail-section {
                max-width: 1600px;
            }
            .screens {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 70px 50px;
                align-items: start;
            }
            .screens > div:first-child {
                grid-column: auto;
                width: 100%;
                margin: 0;
            }
            .screens > div:nth-child(even) {
                margin-top: 100px;
            }
            .screens > div:nth-child(2n + 3) {
                margin-top: 0;
            }
            .screens .frame {
                background: #ebe8e2;
                padding: 20px;
            }
            .screens .frame img {
                box-shadow: 0 14px 30px #0002;
            }
            .screens .caption {
                border: 0;
            }
            #mobile-section {
                max-width: none;
                background: var(--project-accent, #436654);
                color: #fff;
                padding: 100px 8vw;
                margin-bottom: 100px;
                overflow: hidden;
            }
            #mobile-section .mobile-row {
                max-width: 1200px;
                margin: auto;
                gap: 8vw;
            }
            #mobile-section .label,
            #mobile-section p {
                color: #ffffffb3 !important;
            }
            #mobile-section h2 {
                font-size: clamp(32px, 4vw, 60px);
                line-height: 1.25;
            }
            .phone {
                max-width: 340px;
                width: 100%;
                transform: rotate(-5deg);
                box-shadow: 24px 32px 65px #0003;
                background: #fff;
                padding: 10px;
            }
            .phone img {
                max-height: none;
                border-radius: 16px;
            }
            @media (max-width: 700px) {
                .hero {
                    padding-top: 45px;
                    padding-bottom: 32px;
                }
                .stage {
                    margin-bottom: 55px;
                }
                .stage button {
                    padding: 25px 18px;
                }
                .section {
                    margin-bottom: 65px;
                }
                #full-section {
                    padding: 45px 6vw 55px;
                }
                .screens {
                    grid-template-columns: 1fr;
                    gap: 35px;
                }
                .screens > div:first-child {
                    grid-column: auto;
                    margin: 0;
                }
                .screens > div:nth-child(n) {
                    margin-top: 0;
                }
                .screens .frame {
                    padding: 10px;
                }
                #mobile-section {
                    padding: 55px 7vw;
                    margin-bottom: 60px;
                }
                .phone {
                    transform: rotate(-3deg);
                    max-width: 270px;
                    margin: 15px auto;
                }
                .mobile-row {
                    grid-template-columns: 1fr;
                }
                .section-head {
                    margin-bottom: 24px;
                }
            }

            .mobile-pair {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 24px;
                align-items: start;
            }
            .mobile-pair .phone {
                max-width: 270px;
                transform: rotate(-4deg);
            }
            .mobile-pair .phone:nth-child(2) {
                margin-top: 100px;
                transform: rotate(4deg);
            }
            #mobile-section .mobile-row {
                grid-template-columns: 0.8fr 1.2fr;
            }
            .mobile-pair button {
                border: 0;
                cursor: zoom-in;
            }
            .mobile-pair img {
                width: 100%;
                height: auto;
                display: block;
            }
            .editor .upload-count {
                padding: 12px;
                background: #f1f4ee;
                color: #436654;
                margin-top: 14px;
                font-size: 13px;
            }
            @media (max-width: 700px) {
                #mobile-section .mobile-row {
                    grid-template-columns: 1fr;
                }
                .mobile-pair {
                    gap: 14px;
                }
                .mobile-pair .phone {
                    padding: 6px;
                    border-radius: 18px;
                }
                .mobile-pair .phone:nth-child(2) {
                    margin-top: 55px;
                }
                .mobile-pair img {
                    border-radius: 12px;
                }
            }

            /* Seven subpages: wide opening, staggered pairs, wide closing. */
            .screens > div:first-child {
                grid-column: 1/-1;
                max-width: 1100px;
                margin: 0 auto 20px;
            }
            .screens > div:nth-child(2),
            .screens > div:nth-child(4),
            .screens > div:nth-child(6) {
                margin-top: 0;
            }
            .screens > div:nth-child(3),
            .screens > div:nth-child(5) {
                margin-top: 120px;
            }
            .screens > div:last-child:nth-child(7) {
                grid-column: 1/-1;
                max-width: 1100px;
                width: 100%;
                margin: 30px auto 0;
            }
            @media (max-width: 700px) {
                .screens > div:nth-child(n) {
                    grid-column: auto;
                    max-width: none;
                    margin: 0;
                }
            }

            #mobile-section .mobile-row {
                display: block;
            }
            #mobile-section .mobile-pair {
                margin-top: 55px;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 50px 35px;
            }
            .mobile-pair > div {
                min-width: 0;
            }
            .mobile-pair > div:nth-child(3n + 2) {
                padding-top: 80px;
            }
            .mobile-pair .phone {
                display: block;
                margin: auto;
                width: 100%;
                max-width: 310px;
            }
            .mobile-pair > div:nth-child(even) .phone {
                transform: rotate(4deg);
            }
            .mobile-pair .caption {
                border: 0;
                justify-content: center;
                font-size: 13px;
                margin-top: 22px;
                text-align: center;
            }
            .image-setting {
                padding: 8px 12px 12px;
                background: #f6f4ef;
                margin-top: 12px;
            }
            .image-setting input[type='color'] {
                height: 42px;
                width: 100%;
            }
            #editor input[type='color'] {
                height: 42px;
                padding: 4px;
            }
            @media (max-width: 900px) {
                #mobile-section .mobile-pair {
                    grid-template-columns: repeat(2, minmax(0, 1fr));
                }
                .mobile-pair > div:nth-child(3n + 2) {
                    padding-top: 0;
                }
            }
            @media (max-width: 500px) {
                #mobile-section .mobile-pair {
                    grid-template-columns: 1fr;
                    gap: 45px;
                }
                .mobile-pair .phone {
                    max-width: 260px;
                }
                .mobile-pair > div:nth-child(n) {
                    padding-top: 0;
                }
            }

            .site-header .brand {
                display: flex;
                align-items: center;
                gap: 10px;
            }
            .site-header .brand img {
                height: 55px;
                width: auto;
                mix-blend-mode: multiply;
            }
            .site-header .brand-label {
                font-size: 21px;
                letter-spacing: 0.035em;
            }
            .site-header .header-note {
                display: none;
            }
            .template-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 22px;
                flex-wrap: wrap;
            }
            .template-brand {
                display: flex;
                align-items: center;
                gap: 12px;
                font-size: 21px;
            }
            .template-brand img {
                height: 60px;
                width: auto;
                mix-blend-mode: multiply;
            }
            .template-nav {
                display: flex;
                align-items: center;
                gap: 25px;
                font-size: 13px;
            }
            .template-controls {
                margin: 15px 6vw;
                text-align: right;
            }
            @media (max-width: 760px) {
                .template-nav {
                    gap: 16px;
                    font-size: 12px;
                    flex-wrap: wrap;
                }
                .template-header {
                    padding: 15px 6vw;
                }
                .template-brand img {
                    height: 48px;
                }
                .site-header .brand img {
                    height: 44px;
                }
            }

            .story-grid {
                display: grid;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 24px;
            }
            .story-card {
                padding: 28px;
                border-top: 1px solid var(--line);
                background: #f1f2ec;
            }
            .story-card h3 {
                font-size: 20px;
                margin: 12px 0;
            }
            .story-card p,
            .story-body {
                color: var(--muted);
                white-space: pre-line;
                overflow-wrap: anywhere;
            }
            .story-body {
                max-width: 850px;
                font-size: 17px;
                margin-top: 24px;
            }
            .collab-box {
                background: #e9eee6;
                padding: 40px;
            }
            .collab-tag {
                display: inline-block;
                border: 1px solid var(--line);
                border-radius: 24px;
                padding: 5px 14px;
                font-size: 13px;
                margin-bottom: 24px;
            }
            .role-list {
                display: grid;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 24px;
                margin-top: 32px;
            }
            .role-list div {
                border-top: 1px solid #c6cec1;
                padding-top: 18px;
            }
            .role-list strong {
                display: block;
                margin-bottom: 8px;
            }
            .role-list p {
                white-space: pre-line;
                overflow-wrap: anywhere;
                color: var(--muted);
                font-size: 14px;
            }
            .editor .check-row {
                display: flex;
                align-items: center;
                gap: 10px;
                padding: 12px;
                background: #eef2e9;
            }
            .editor input[type='checkbox'] {
                width: 18px;
                height: 18px;
                margin: 0;
                flex-shrink: 0;
            }
            .editor fieldset {
                border: 1px solid var(--line);
                margin: 22px 0 0;
                padding: 14px;
            }
            .editor legend {
                font-size: 14px;
                font-weight: bold;
            }
            .editor fieldset label:first-of-type {
                margin-top: 0;
            }
            @media (max-width: 700px) {
                .story-grid,
                .role-list {
                    grid-template-columns: 1fr;
                }
                .collab-box {
                    padding: 24px;
                }
                .story-card {
                    padding: 22px;
                }
            }
        
/* Online managed content */
:root { --accent: var(--project-accent, #436654); }
.preview-banner { padding:12px 6vw; background:#20251f; color:white; text-align:center; }
.intro, .screen-description, .mobile-description, .mobile-copy, #note, .meta { white-space:pre-line; overflow-wrap:anywhere; }
.screen-description { margin-top:12px; font-size:14px; color:var(--muted); }
.mobile-description { margin:16px auto 0; max-width:310px; font-size:14px; }
.mobile-copy { margin-top:18px; }
.work-credit { margin-top:22px; font-size:13px; color:var(--muted); }
.frame, .phone { color:inherit; }
.stage button { width:100%; display:block; border:0; background:transparent; }
.stage img { max-height:var(--preview-height,700px); object-fit:contain; object-position:top; }
.screens .frame { width:100%; display:block; border:0; }
.screens .frame img { max-height:var(--preview-height,600px); object-fit:contain; object-position:top; }
#full-section .frame { width:100%; border:0; }
#full-section .frame img { height:auto; max-height:none; }
.phone { border:0; }
.mobile-pair { display:grid; }
.mobile-pair .phone img { height:auto; }
button:focus-visible, a:focus-visible { outline:3px solid #789b83; outline-offset:5px; }
body.viewer-open { overflow:hidden; }
@media(max-width:700px) { .screens { grid-template-columns:1fr; } .meta { grid-template-columns:1fr; } footer { flex-direction:column; } .section-head { align-items:start; flex-direction:column; } .actions { flex-wrap:wrap; } }

.story-body, .collab-box h2, #overview-section h2, #approach-section h2, #outcome-section h2, #mobile-section h2 { white-space:pre-line; }
