.studio-page { --studio-gold: #a36a08; --studio-muted: #8a795f; min-height: 100vh; }
.studio-page [hidden] { display: none !important; }
.studio-header, .studio-main, .studio-footer { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.studio-header { display: flex; align-items: center; justify-content: space-between; padding-block: 26px; border-bottom: 1px solid var(--line); }
.studio-header .brand { font-size: 21px; }
.studio-header .brand-caption { font-size: 8px; letter-spacing: 1.3px; margin-top: 2px; }
.studio-header .brand-icon { width: 42px; height: 42px; }
.studio-home { font-size: 12px; color: #8e7955; font-weight: 700; padding: 10px; }
.studio-main { padding-block: 44px 24px; }
.studio-intro { margin-bottom: 28px; }
.studio-eyebrow, .studio-section-kicker { color: #a9894e; font-weight: 800; font-size: 10px; letter-spacing: 1.6px; }
.studio-eyebrow span { margin-left: 9px; color: #c59129; }
.studio-intro h1 { font-size: clamp(36px, 5.1vw, 58px); line-height: 1.08; letter-spacing: -2px; font-weight: 850; margin: 15px 0 18px; }
.studio-intro h1 span { color: #bd8a29; }
.studio-intro > p:last-child { font-size: 14px; color: var(--studio-muted); max-width: 480px; line-height: 1.85; }
.studio-panel { border: 1px solid #eddfc4; border-radius: 24px; background: #fffdf8; box-shadow: 0 8px 24px #a5771906; }
.studio-notice { border: 1px solid #eadab5; background: #fff4d8; color: #80602a; border-radius: 15px; padding: 15px 18px; font-size: 13px; line-height: 1.8; margin-bottom: 22px; overflow-wrap: anywhere; }
.studio-notice[data-tone="error"] { background: #fff0e8; border-color: #eecbb5; color: #9a4b32; }
.studio-notice[data-tone="success"] { background: #f0f6e8; border-color: #d7e3c6; color: #56733c; }
.studio-connect { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; padding: 35px; max-width: 900px; }
.studio-connect h2, .studio-section-heading h2 { font-size: 21px; letter-spacing: -.6px; line-height: 1.4; margin-top: 8px; }
.studio-connect-copy > p { color: var(--studio-muted); font-size: 13px; line-height: 1.9; margin-top: 13px; }
.studio-connect form { display: grid; align-content: start; gap: 9px; }
.studio-connect label { font-size: 12px; font-weight: 800; color: #7b6240; }
.studio-connect input { background: #fffcf4; border: 1px solid #e5d5b6; border-radius: 12px; padding: 14px; min-width: 0; width: 100%; font-size: 16px; color: #533d1a; }
.studio-connect input:focus { outline: 3px solid #f4d18166; border-color: #c99434; }
.studio-connect form p { font-size: 11px; color: var(--studio-muted); line-height: 1.7; margin-bottom: 7px; }
.studio-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 13px; min-height: 46px; padding: 12px 17px; font-size: 12px; line-height: 1.5; font-weight: 800; transition: background .15s, box-shadow .15s; }
.studio-button-primary { background: #edba40; color: #65420b; box-shadow: 0 4px 10px #b3801714; border-color: #e6b234; }
.studio-button-primary:hover:enabled { background: #e7ad29; }
.studio-button-secondary { background: #fff6df; color: #917035; border-color: #eedeBA; }
.studio-button-secondary:hover:enabled { background: #ffedc0; }
.studio-button-quiet { background: #fffaf0; border-color: #ebdfc7; color: #8e7751; min-height: 39px; padding: 9px 12px; font-size: 11px; }
.studio-page button:disabled { opacity: .5; }
.studio-page button:focus-visible, .studio-page a:focus-visible { outline-color: #c9902b; }
.studio-account { display: flex; align-items: center; gap: 16px; padding: 20px 24px; margin-bottom: 22px; }
.studio-account-icon { width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid #f1dca5; background: #fff2cc; color: #bb8e31; border-radius: 15px; font-size: 26px; flex-shrink: 0; }
.studio-account h2 { font-size: 18px; margin-top: 4px; overflow-wrap: anywhere; }
.studio-account .studio-section-kicker { font-size: 8px; letter-spacing: 1.2px; }
.studio-account-copy > p { font-size: 11px; color: var(--studio-muted); margin-top: 4px; }
.studio-account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; flex-shrink: 0; }
.studio-device { padding: 25px; margin-bottom: 22px; background: linear-gradient(120deg, #fffdf8, #faf5ff); }
.studio-device-badge { border-radius: 20px; background: #f1e7fc; color: #8c67a9; font-size: 10px; font-weight: 800; padding: 7px 11px; white-space: nowrap; }
.studio-device[data-linked="true"] .studio-device-badge { background: #e8f1dc; color: #5f7b40; }
.studio-device-message { margin-top: 13px; border-radius: 12px; padding: 11px 13px; font-size: 12px; line-height: 1.8; color: #80602a; background: #fff3d6; }
.studio-device-message[data-tone="error"] { color: #9a4b32; background: #fff0e8; }
.studio-device-message[data-tone="success"] { color: #56733c; background: #edf5e5; }
.studio-device-instructions { margin-top: 17px; border-top: 1px solid #eadff0; padding-top: 15px; }
.studio-device-instructions ol { list-style: decimal; padding-left: 22px; color: #806e57; font-size: 12px; line-height: 1.9; }
.studio-device-instructions li { padding-left: 4px; margin-bottom: 7px; }
.studio-device-instructions a { color: #8964a4; text-decoration: underline; text-underline-offset: 3px; }
.studio-device-session { display: flex; flex-wrap: wrap; gap: 10px 24px; color: #997546; font-size: 11px; font-weight: 700; margin: 16px 0; }
.studio-device-form { max-width: 460px; }
.studio-device-form label { color: #7b6240; font-size: 12px; font-weight: 800; }
.studio-device-code-row { display: flex; gap: 10px; margin-top: 8px; }
.studio-device-code-row input { min-width: 0; width: 100%; background: #fffdf8; border: 1px solid #decee9; border-radius: 12px; padding: 12px 14px; font-size: 20px; font-weight: 700; letter-spacing: 3px; color: #6d4e80; }
.studio-device-code-row input:focus { outline: 3px solid #e1cfef66; border-color: #ad8ac8; }
.studio-device-form > p { font-size: 10px; line-height: 1.8; color: #99856c; margin-top: 8px; }
.studio-device-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
@media (max-width: 650px) { .studio-device { padding: 21px; } .studio-device .studio-section-heading { align-items: flex-start; flex-wrap: wrap; } .studio-device-code-row { flex-wrap: wrap; } .studio-device-code-row .studio-button { width: 100%; } .studio-device-actions .studio-button { flex: 1 1 auto; } }
.studio-workbench { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.studio-library, .studio-draft { padding: 26px; min-width: 0; }
.studio-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.studio-section-heading .studio-section-kicker { font-size: 9px; letter-spacing: 1.2px; }
.studio-section-heading h2 { font-size: 19px; margin-top: 6px; }
.studio-count { color: #a58750; border: 1px solid #eeddbb; border-radius: 20px; padding: 5px 9px; font-size: 10px; white-space: nowrap; }
.studio-helper { color: var(--studio-muted); font-size: 12px; line-height: 1.8; }
.studio-frame-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 21px; }
.studio-frame-card { border: 1px solid #ebdfc7; background: #fffcf4; border-radius: 16px; padding: 9px; text-align: left; min-width: 0; color: #806742; position: relative; }
.studio-frame-card[aria-pressed="true"] { border-color: #d49a2a; background: #fff4d1; box-shadow: 0 0 0 2px #ebc66944; }
.studio-frame-card[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 12px; right: 12px; border: 2px solid #fff8e7; width: 20px; height: 20px; border-radius: 50%; background: #b98119; display: grid; place-items: center; color: white; font-size: 10px; }
.studio-frame-swatch { display: grid; place-items: center; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: radial-gradient(circle at 63% 28%, #f7d989 0 14%, transparent 14.5%), linear-gradient(145deg, #f5e9c9, #e5dbb9); position: relative; }
.studio-frame-swatch img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.studio-frame-card-name { display: block; font-size: 11px; font-weight: 800; margin: 10px 1px 3px; overflow-wrap: anywhere; }
.studio-frame-card-note { font-size: 9px; color: #a38c65; margin-left: 1px; }
.studio-empty { padding: 30px 10px; color: #a08a65; font-size: 13px; text-align: center; line-height: 1.8; }
.studio-draft { position: sticky; top: 22px; }
.studio-draft-dot { width: 8px; height: 8px; border-radius: 50%; background: #e1b559; box-shadow: 0 0 0 5px #fff2d2; margin-right: 5px; }
.studio-preview-stage { border-radius: 18px; background: repeating-linear-gradient(45deg, #faf4e4 0 8px, #f8f0dc 8px 16px); display: grid; place-items: center; padding: 24px; margin: 20px 0; border: 1px solid #efe1c1; }
.studio-photo { position: relative; width: min(100%, 235px); aspect-ratio: 1; border-radius: 25%; overflow: hidden; background: linear-gradient(160deg, #e8cfa8, #f2e4c6 53%, #ccc49f); box-shadow: 0 8px 18px #8d6e2826; isolation: isolate; }
.studio-photo-sun { position: absolute; width: 29%; aspect-ratio: 1; left: 45%; top: 16%; border-radius: 50%; background: #ffefb5; }
.studio-photo-hill { width: 120%; height: 58%; position: absolute; left: -35%; bottom: -12%; background: #a6ad83; border-radius: 50% 50% 0 0; transform: rotate(17deg); }
.studio-photo-hill-back { background: #c1bf99; left: 30%; bottom: 2%; transform: rotate(-12deg); }
.studio-photo-caption { position: absolute; inset: auto 0 20%; text-align: center; z-index: 1; color: #fff9dd; font-size: 13px; font-style: italic; letter-spacing: .3px; }
.studio-frame-overlay { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; }
.studio-draft h3 { text-align: center; font-size: 16px; color: #745b31; margin-bottom: 7px; overflow-wrap: anywhere; }
.studio-draft > .studio-helper { text-align: center; min-height: 43px; }
.studio-draft-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 19px; }
.studio-draft-actions .studio-button { font-size: 11px; padding-inline: 10px; }
.studio-inherit { display: block; width: 100%; border: 0; background: transparent; color: #96784a; text-decoration: underline; text-underline-offset: 4px; padding: 17px 10px 10px; font-size: 11px; font-weight: 700; }
.studio-small { font-size: 10px; color: #a08f72; text-align: center; line-height: 1.8; }
.studio-preview-result { margin-top: 12px; border-radius: 11px; padding: 11px; background: #fff6df; color: #98723a; font-size: 11px; line-height: 1.8; }
.studio-state-section { margin-top: 32px; }
.studio-state-section > .studio-section-heading { margin-bottom: 17px; }
.studio-state-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.studio-state-card { display: flex; align-items: center; gap: 16px; padding: 20px; min-width: 0; }
.studio-state-card > div:last-child { min-width: 0; }
.studio-state-thumb { flex: 0 0 66px; height: 66px; position: relative; display: grid; place-items: center; overflow: hidden; background: #f7eed8; color: #cfb374; border-radius: 18px; font-size: 24px; }
.studio-state-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.studio-state-label { font-size: 9px; letter-spacing: .6px; text-transform: uppercase; font-weight: 800; color: #ae9161; margin-bottom: 5px; }
.studio-state-card h3 { color: #755c36; font-size: 14px; overflow-wrap: anywhere; }
.studio-state-card p:last-child { color: var(--studio-muted); font-size: 11px; line-height: 1.7; margin-top: 4px; }
.studio-runtime-note { font-size: 11px; line-height: 1.9; color: #a18d69; max-width: 750px; margin-top: 14px; }
.studio-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding-block: 23px 30px; font-size: 10px; color: #aa946e; }
.studio-footer a { font-weight: 800; color: #927342; }
@media (max-width: 900px) { .studio-workbench { grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr); gap: 16px; } .studio-library, .studio-draft { padding: 21px; } .studio-frame-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .studio-account { flex-wrap: wrap; } .studio-account-actions { margin-left: 61px; } .studio-connect { gap: 30px; } .studio-draft-actions { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .studio-header, .studio-main, .studio-footer { width: calc(100% - 36px); } .studio-header { padding-block: 20px; } .studio-header .brand { font-size: 19px; } .studio-header .brand-caption { font-size: 6px; } .studio-header .brand-icon { width: 36px; height: 36px; } .studio-home { font-size: 10px; padding-right: 0; } .studio-main { padding-top: 29px; } .studio-intro h1 { font-size: 41px; letter-spacing: -1.7px; } .studio-intro > p:last-child { font-size: 12px; max-width: 320px; } .studio-connect { grid-template-columns: 1fr; padding: 24px; gap: 24px; } .studio-workbench { display: flex; flex-direction: column; } .studio-library, .studio-draft { width: 100%; padding: 22px; } .studio-draft { position: static; order: -1; } .studio-preview-stage { padding: 20px; } .studio-photo { width: 200px; } .studio-draft > .studio-helper { min-height: 0; } .studio-draft-actions { grid-template-columns: 1fr 1fr; } .studio-frame-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; } .studio-frame-card { padding: 6px; border-radius: 12px; } .studio-frame-card-name { font-size: 10px; margin-top: 7px; } .studio-frame-card-note { font-size: 8px; } .studio-frame-card[aria-pressed="true"]::after { top: 8px; right: 8px; width: 18px; height: 18px; } .studio-account { padding: 18px; gap: 12px; } .studio-account-copy { flex: 1; min-width: 0; } .studio-account-actions { margin-left: 0; width: 100%; padding-top: 4px; } .studio-account-actions .studio-button { flex: 1; } .studio-state-grid { grid-template-columns: 1fr; gap: 12px; } .studio-state-card { padding: 18px; } .studio-state-section { margin-top: 26px; } .studio-footer { font-size: 9px; flex-wrap: wrap; gap: 9px; } .studio-notice { font-size: 12px; padding: 13px 15px; } }
@media (max-width: 360px) { .studio-frame-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .studio-intro h1 { font-size: 35px; } .studio-section-heading h2 { font-size: 17px; } .studio-library, .studio-draft { padding: 18px; } }
