:root {
    --paper: #faf9f6;
    --surface: #fff;
    --ink: #252c29;
    --muted: #858a84;
    --line: #e8e9e2;
    --green: #2f6256;
    --soft: #eaf0eb;
    --sidebar: #f1f2ec;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font:
        13px -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
button:disabled {
    opacity: 0.35;
    cursor: default;
}
button {
    transition:
        background 0.16s,
        color 0.16s;
}
button:hover:not(:disabled) {
    filter: brightness(0.96);
}
button:focus-visible,
a:focus-visible,
svg:focus-visible {
    outline: 3px solid #82aa9b;
    outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #82aa9b;
    outline-offset: 1px;
}
input,
select,
textarea {
    color: var(--ink);
}
.app-header {
    height: 76px;
    display: flex;
    align-items: center;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    gap: 38px;
    background: #fff;
}
.brand {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 23px;
    letter-spacing: -1px;
    font-weight: 650;
    color: var(--ink);
    text-decoration: none;
}
.brand > span:last-child {
    font-weight: 400;
}
.brand-mark {
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    margin-right: 7px;
    font-size: 27px;
}
.workspace-tag {
    font-size: 9px;
    letter-spacing: 1.7px;
    color: var(--muted);
    border-left: 1px solid var(--line);
    padding-left: 30px;
}
.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    color: #747c75;
}
.local-dot {
    width: 6px;
    height: 6px;
    background: #70a383;
    border-radius: 50%;
}
.avatar {
    margin-left: 20px;
    border-radius: 50%;
    background: #e9eee5;
    color: #5c725f;
    font-size: 11px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
}
.app-layout {
    display: grid;
    grid-template-columns: 212px minmax(0, 1fr);
    min-height: calc(100vh - 76px);
}
.sidebar {
    background: var(--sidebar);
    border-right: 1px solid var(--line);
    padding: 27px 17px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.primary {
    background: var(--green) !important;
    color: white !important;
    border-color: var(--green) !important;
}
.new-project {
    padding: 12px 14px;
    display: flex;
    gap: 16px;
    border: 0;
    border-radius: 7px;
    width: 100%;
    text-align: left;
    font-weight: 550;
    margin-bottom: 18px;
}
.nav-button {
    border: 0;
    border-radius: 6px;
    background: transparent;
    padding: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    color: #5f6861;
}
.nav-button.active {
    background: #e3e9df;
    color: var(--green);
    font-weight: 600;
}
.nav-button .count {
    margin-left: auto;
    font-size: 10px;
    font-weight: 400;
}
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 1.35px;
    font-size: 9px;
    font-weight: 600;
    color: #858b82;
    min-height: 34px;
    margin-top: 14px;
}
.icon-button {
    border: 0;
    background: transparent;
    border-radius: 5px;
    font-size: 21px;
    min-width: 29px;
    min-height: 29px;
    color: #727d73;
    line-height: 1;
}
.sidebar-divider {
    border-top: 1px solid #e0e4d9;
    margin-top: 16px;
}
.quiet-button {
    background: transparent;
    border: 0;
    color: #6f7b70;
    text-align: left;
    padding: 10px 4px;
    font-size: 11px;
}
.sidebar-bottom {
    margin-top: auto;
    padding: 50px 8px 8px;
    color: #7f8c7a;
}
.small-logo {
    display: block;
    font-size: 28px;
    color: #96a48b;
    margin-bottom: 15px;
}
.sidebar-bottom strong {
    font-size: 11px;
    font-weight: 500;
}
.sidebar-bottom p {
    font-size: 10px;
    line-height: 1.7;
    max-width: 140px;
}
.local-badge {
    font-size: 8px;
    letter-spacing: 1.2px;
    display: block;
    margin-top: 25px;
}
main {
    padding: 33px 34px 14px;
    min-width: 0;
    max-width: 1800px;
    width: 100%;
    margin: auto;
}
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 27px;
}
.eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
    color: #7f8a7c;
    margin-bottom: 9px;
}
.project-title {
    font-size: 28px;
    letter-spacing: -0.8px;
    border: 0;
    background: transparent;
    font-weight: 550;
    width: 100%;
    max-width: 490px;
    padding: 0;
    margin-bottom: 10px;
}
.project-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
}
.project-meta select {
    border: 0;
    background: transparent;
    font-size: 11px;
    color: #747c73;
    max-width: 150px;
}
.project-actions {
    display: flex;
    gap: 8px;
}
.button {
    background: white;
    border: 1px solid #dfe3db;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 11px;
    white-space: nowrap;
    font-weight: 500;
}
.editor-shell {
    border: 1px solid #e0e3da;
    border-radius: 10px;
    background: white;
    overflow: hidden;
    box-shadow: 0 3px 10px #25302204;
}
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 17px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
}
.toolbar-left {
    display: flex;
    align-items: center;
    gap: 5px;
}
.toolbar-divider {
    width: 1px;
    height: 22px;
    background: var(--line);
    margin: 0 9px;
}
.tool {
    border: 0;
    background: transparent;
    padding: 8px 11px;
    border-radius: 5px;
    color: #7a827b;
    font-size: 11px;
}
.tool.active {
    background: var(--soft);
    color: var(--green);
}
.export-button {
    background: #f5f7f2;
    color: #46624c;
}
.editor-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
}
.canvas-area {
    background: #f4f4ef;
    padding: 23px 25px 12px;
    min-width: 0;
}
.canvas-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.badge {
    font-size: 8px;
    letter-spacing: 1.2px;
    color: #7a8a75;
}
.canvas-size {
    font-size: 9px;
    color: #a0a59b;
}
.artboard {
    background: white;
    border: 1px solid #e9eae3;
    box-shadow: 0 3px 12px #29342c04;
    border-radius: 3px;
    overflow: hidden;
}
#graph {
    display: block;
    width: 100%;
    height: auto;
    touch-action: none;
    user-select: none;
}
.canvas-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 16px;
    font-size: 9px;
    color: #8a9285;
    min-height: 25px;
}
.canvas-scale {
    white-space: nowrap;
    display: flex;
    gap: 17px;
}
.inspector {
    border-left: 1px solid var(--line);
    padding: 21px 18px;
    font-size: 10px;
    max-height: 800px;
    overflow: auto;
}
.inspector-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 23px;
}
.inspector-heading span {
    color: #9aa594;
}
label {
    display: block;
    color: #7c857a;
    font-size: 10px;
}
label input:not([type="checkbox"]) {
    display: block;
    margin-top: 7px;
    margin-bottom: 15px;
    width: 100%;
    border: 1px solid #e3e6df;
    border-radius: 5px;
    padding: 9px 10px;
    font-size: 11px;
    background: #fdfdfb;
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 11px 0;
}
.toggle-row input {
    accent-color: var(--green);
}
.inspector-section {
    border-top: 1px solid var(--line);
    margin-top: 20px;
}
.curve-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e7eae2;
    background: white;
    padding: 10px;
    margin: 6px 0;
    border-radius: 6px;
    width: 100%;
    text-align: left;
    color: #677363;
    font-size: 11px;
}
.curve-row.active {
    background: #f0f4ed;
    border-color: #cbd8c6;
}
.curve-dot {
    height: 9px;
    width: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.curve-row .tail {
    margin-left: auto;
    color: #9ba593;
}
.helper {
    font-size: 10px;
    line-height: 1.6;
    color: #929b8c;
}
.full-width {
    width: 100%;
    margin-top: 20px;
}
.danger {
    color: #a27263;
}
.notes-panel {
    margin-top: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 17px 20px;
}
.notes-panel > div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.notes-icon {
    color: #7a8f77;
    font-size: 20px;
}
.notes-panel strong {
    font-size: 11px;
    font-weight: 600;
}
.muted {
    color: #99a08f;
    font-size: 10px;
}
.notes-panel button {
    margin-left: auto;
    padding: 0;
    font-size: 10px;
}
.notes-panel textarea {
    display: block;
    border: 0;
    resize: vertical;
    width: 100%;
    min-height: 57px;
    background: transparent;
    padding: 13px 0 0;
    line-height: 1.7;
    font-size: 11px;
}
.notes-panel textarea::placeholder {
    color: #a3aa9a;
}
.page-footer {
    display: flex;
    justify-content: space-between;
    color: #a0a596;
    font-size: 9px;
    margin-top: 20px;
    gap: 16px;
}
dialog {
    border: 1px solid #dce3d6;
    border-radius: 14px;
    padding: 25px;
    width: min(660px, 92vw);
    max-height: 85vh;
    box-shadow: 0 30px 100px #21332530;
}
dialog::backdrop {
    background: #26392f40;
    backdrop-filter: blur(4px);
}
.modal-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}
.modal-heading h2 {
    font-size: 22px;
    letter-spacing: -0.6px;
    margin: 0;
    font-weight: 550;
}
.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.template-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 12px;
    background: #fafbf7;
    text-align: left;
}
.template-card svg {
    width: 100%;
    margin-bottom: 13px;
}
.template-card strong {
    display: block;
    font-size: 12px;
}
.template-card p {
    color: #8c9785;
    font-size: 10px;
    line-height: 1.6;
}
.library-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 15px 0;
    gap: 15px;
}
.library-row strong {
    display: block;
    font-weight: 550;
}
.library-row small {
    color: #939d8a;
    display: block;
    margin-top: 6px;
}
.empty-state {
    padding: 30px 15px;
    text-align: center;
    color: #8b9586;
    line-height: 1.8;
}
.modal-input {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    width: 100%;
    margin-bottom: 15px;
}
.label-item {
    display: flex;
    gap: 5px;
    margin: 8px 0;
}
.label-item input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 7px;
    font-size: 11px;
}
.label-item button {
    font-size: 16px;
}
.selected-label {
    border-color: var(--green) !important;
}
.settings-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}
.settings-actions input[type="color"] {
    width: 35px;
    height: 29px;
    border: 1px solid var(--line);
    background: white;
    padding: 3px;
    border-radius: 5px;
}
.settings-actions label {
    display: flex;
    gap: 3px;
    align-items: center;
}
.settings-actions button {
    margin-left: auto;
    font-size: 10px;
}
#curve-settings > label {
    margin-top: 12px;
}
#toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: #253c32;
    color: white;
    padding: 13px 23px;
    border-radius: 8px;
    box-shadow: 0 6px 24px #293d2520;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    max-width: 90vw;
    font-size: 12px;
    z-index: 10;
}
#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.folder-button {
    font-size: 11px;
}
.diagram-button {
    font-size: 11px;
    line-height: 1.5;
}
.diagram-button span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-input {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 10px;
}
.nudge-controls {
    display: flex;
    gap: 3px;
    margin: 10px 0;
}
.nudge-controls button {
    flex: 1;
    font-size: 14px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #f7f9f4;
    color: #63775b;
}
@media (min-width: 1600px) {
    .canvas-area {
        padding: 30px 55px 18px;
    }
    .editor-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}
@media (max-width: 1150px) {
    .app-layout {
        grid-template-columns: 175px minmax(0, 1fr);
    }
    main {
        padding: 25px 20px;
    }
    .editor-content {
        grid-template-columns: minmax(0, 1fr) 215px;
    }
    .canvas-area {
        padding: 17px 15px 10px;
    }
    .inspector {
        padding: 18px 12px;
    }
    .project-title {
        font-size: 25px;
    }
    .project-actions {
        flex-direction: column;
    }
    .workspace-tag {
        display: none;
    }
    .muted {
        display: none;
    }
}
@media (max-width: 800px) {
    .app-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
    .app-header {
        height: 64px;
        padding: 0 18px;
    }
    .header-right > span:not(.avatar) {
        display: none;
    }
    main {
        padding: 22px 13px;
    }
    .editor-content {
        grid-template-columns: 1fr;
    }
    .inspector {
        border-left: 0;
        border-top: 1px solid var(--line);
        max-height: none;
        display: block;
    }
    .canvas-area {
        padding: 15px;
    }
    .toolbar {
        padding: 10px 7px;
    }
    .tool {
        padding: 8px 6px;
    }
    .toolbar-divider {
        margin: 0 3px;
    }
    .project-title {
        font-size: 23px;
    }
    .project-header {
        align-items: flex-start;
    }
    .project-actions .button {
        padding: 8px 10px;
    }
    .page-footer {
        display: none;
    }
    .template-grid {
        grid-template-columns: 1fr;
    }
    .template-card svg {
        height: 90px;
    }
    .canvas-size {
        display: none;
    }
    .notes-panel > div {
        flex-wrap: wrap;
    }
    .notes-panel button {
        margin-left: auto;
    }
    .app-header .brand {
        font-size: 20px;
    }
    .notes-panel {
        margin-bottom: 25px;
    }
    .header-right .avatar {
        cursor: pointer;
    }
    .canvas-footer {
        font-size: 9px;
    }
}

.mobile-nav {
    display: none;
}
.project-header > div:first-child {
    min-width: 0;
}
.project-title {
    text-overflow: ellipsis;
}
.project-actions {
    flex-shrink: 0;
}
@media (max-width: 800px) {
    .mobile-nav {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        margin-bottom: 22px;
    }
    .mobile-nav .button {
        font-size: 10px;
        padding: 8px;
    }
    .toolbar {
        flex-wrap: wrap;
    }
    .toolbar-left {
        flex-wrap: wrap;
    }
    .export-button {
        margin-left: auto;
    }
    .project-header {
        gap: 8px;
    }
    .canvas-footer {
        align-items: flex-start;
    }
    .brand {
        flex-shrink: 0;
    }
}

/* Diagram library and drawing tools */
.toolbar {
    flex-wrap: wrap;
}
.draw-controls {
    display: flex;
    gap: 7px;
    margin-left: auto;
    align-items: center;
}
.draw-controls select,
#curve-style,
#curve-type {
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fafbf7;
    font-size: 11px;
    color: var(--green);
}
.workspace-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    color: var(--muted);
    font-size: 10px;
}
.wide {
    width: min(1060px, 95vw);
}
.theme-filters {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: 12px 0 20px;
}
.theme-chip {
    border: 1px solid var(--line);
    background: #f7f8f3;
    border-radius: 20px;
    padding: 8px 13px;
    font-size: 11px;
    color: #73806c;
}
.theme-chip.active {
    background: var(--green);
    color: #fff;
}
.template-card svg {
    height: auto;
    background: #fff;
    border: 1px solid #edf0e8;
    border-radius: 4px;
}
.template-theme {
    display: block;
    font-size: 8px;
    letter-spacing: 1px;
    color: #8a9782;
    margin: 5px 0 9px;
}
.template-card p {
    line-height: 1.6;
}
.template-card {
    transition:
        transform 0.15s,
        border-color 0.15s;
}
.template-card:hover {
    transform: translateY(-2px);
    border-color: #a2b498;
}
.library-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.library-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}
.library-actions .button {
    padding: 8px 10px;
}
.library-row > div:first-child {
    min-width: 0;
}
.library-row strong {
    overflow-wrap: anywhere;
}
#region-opacity {
    width: 68px;
}
.inspector {
    max-height: 850px;
}
.modal-heading {
    position: sticky;
    top: -25px;
    background: #fff;
    z-index: 2;
    padding: 10px 0;
}
.template-grid {
    align-items: stretch;
}
.template-card strong {
    line-height: 1.4;
}
.template-card:focus-visible {
    outline: 3px solid #82aa9b;
}
#graph:focus {
    outline: none;
}
.draw-controls select:focus-visible {
    outline: 2px solid #82aa9b;
}
@media (max-width: 800px) {
    .library-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .library-actions {
        flex-wrap: wrap;
    }
    .draw-controls {
        margin-left: 0;
    }
    .template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .template-card {
        padding: 10px;
    }
    .template-card svg {
        height: auto;
    }
    .template-card p {
        font-size: 10px;
    }
    .workspace-footer > span {
        display: none;
    }
}
@media (max-width: 420px) {
    .template-grid {
        grid-template-columns: 1fr;
    }
    .toolbar-left {
        gap: 2px;
    }
    .draw-controls {
        width: 100%;
    }
    .draw-controls select {
        flex: 1;
    }
    .export-button {
        margin-left: 0 !important;
    }
    .template-card svg {
        max-height: 150px;
    }
    .library-actions .button {
        font-size: 10px;
    }
}

#curve-type {
    display: block;
    width: 100%;
    margin: 7px 0 15px;
}

/* A canvas-first workspace, with setup and editing within reach. */
.studio-redesign {
    --paper: #f5f7f4;
    --ink: #14231f;
    --muted: #73817b;
    --line: #e4e9e5;
    --green: #14775f;
    --soft: #e8f4ef;
}
.studio-redesign .app-header {
    height: 66px;
    gap: 24px;
}
.studio-redesign .brand {
    font-size: 21px;
}
.studio-redesign .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 25px;
}
.studio-redesign .header-right {
    gap: 10px;
}
.studio-redesign .button {
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 550;
    white-space: nowrap;
}
.studio-redesign .count {
    margin-left: 5px;
}
.studio-redesign .studio-main {
    width: 100%;
    max-width: 1600px;
    padding: 26px 28px;
    margin: 0 auto;
}
.studio-redesign .project-header {
    margin-bottom: 22px;
    gap: 20px;
}
.studio-redesign .title-group {
    min-width: 0;
    flex: 1;
}
.studio-redesign .project-title {
    font-size: 25px;
    letter-spacing: -0.7px;
    width: 100%;
    max-width: 650px;
}
.studio-redesign .project-meta {
    font-size: 12px;
    margin-top: 6px;
}
.studio-workspace {
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr) 248px;
    gap: 16px;
    align-items: start;
}
.studio-panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 17px;
    min-width: 0;
    box-shadow: 0 8px 28px #233d3008;
}
.studio-panel h2 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #73817b;
    margin: 0 0 17px;
    font-weight: 650;
}
.studio-panel h3,
.studio-panel label {
    font-size: 12px;
    color: #45584f;
    font-weight: 550;
    margin: 0 0 7px;
}
.setup-section {
    padding-bottom: 17px;
    margin-bottom: 17px;
    border-bottom: 1px solid #edf0ed;
}
.setup-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border: 0;
}
.studio-select {
    width: 100%;
    border: 1px solid #dfe6e1;
    border-radius: 8px;
    padding: 9px 8px;
    background: white;
    font-size: 12px;
}
.axis-fields {
    margin-top: 14px;
}
.studio-panel label input:not([type="checkbox"]) {
    font-size: 12px;
    padding: 9px;
    border-radius: 7px;
    margin-bottom: 10px;
}
.drawing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}
.drawing-grid .tool {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 3px;
    color: #586760;
    font-size: 11px;
    background: white;
}
.drawing-grid .tool.active {
    background: var(--soft);
    border-color: #8bb8a6;
    color: #0c684f;
}
.studio-panel .more-tools-label {
    font-size: 10px;
    font-weight: 400;
    margin: 13px 0 6px;
    color: var(--muted);
}
.studio-redesign #draw-tool {
    font-size: 11px;
}
.new-colour {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
}
.new-colour input {
    width: 38px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: white;
    padding: 3px;
}
.studio-panel .toggle-row {
    margin: 10px 0;
}
.studio-panel .toggle-row label {
    font-size: 11px;
    margin: 0;
    font-weight: 400;
}
.studio-redesign .canvas-area {
    background: white;
    padding: 17px;
}
.studio-redesign .canvas-heading {
    margin-bottom: 13px;
    gap: 8px;
}
.studio-redesign .canvas-heading h2 {
    color: var(--ink);
    text-transform: none;
    font-size: 13px;
    letter-spacing: 0;
    margin: 0 0 4px;
}
#axis-summary {
    font-size: 11px;
    color: var(--muted);
}
.grid-control {
    display: flex;
    align-items: center;
    gap: 7px;
}
.grid-control label {
    margin: 0;
    font-size: 11px;
}
.studio-redesign .artboard {
    border-radius: 8px;
    box-shadow: none;
}
.studio-redesign #graph {
    width: 100%;
    height: auto;
    min-height: 340px;
}
.studio-redesign .canvas-footer {
    font-size: 11px;
    margin-top: 10px;
    line-height: 1.5;
    align-items: start;
}
#object-count {
    white-space: nowrap;
}
.canvas-bottom {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf0ed;
    font-size: 9px;
    color: var(--muted);
}
.canvas-bottom .badge {
    letter-spacing: 0.3px;
    line-height: 1.5;
}
.quick-templates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 9px;
}
.quick-templates button {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: left;
    color: var(--ink);
}
.quick-templates button:hover {
    border-color: #8bb8a6;
    background: #f7fbf8;
}
.quick-templates b {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}
.quick-templates span {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.4;
}
.studio-redesign .full-width {
    margin-top: 8px;
}
.history-row {
    display: flex;
    gap: 5px;
}
.studio-redesign .history-row .button {
    padding: 8px 7px;
    flex: 1;
    font-size: 11px;
}
.studio-redesign .section-heading {
    margin: 14px 0 9px;
    font-size: 10px;
}
.studio-redesign .curve-row {
    font-size: 11px;
}
.studio-redesign #curve-type {
    font-size: 11px;
    background: white;
}
.studio-redesign .helper {
    font-size: 11px;
    line-height: 1.5;
}
.project-navigation summary,
.folder-navigation summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 550;
    padding: 5px 0 10px;
    color: #45584f;
}
.folder-navigation {
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding-top: 12px;
}
.studio-redesign .diagram-button {
    width: 100%;
    font-size: 11px;
    padding: 9px;
}
.studio-redesign .workspace-footer {
    font-size: 11px;
    margin-top: 16px;
}
@media (min-width: 1500px) {
    .studio-workspace {
        grid-template-columns: 240px minmax(0, 1fr) 265px;
    }
}
@media (max-width: 1100px) {
    .studio-redesign .studio-main {
        padding: 22px 18px;
    }
    .studio-workspace {
        grid-template-columns: 205px minmax(0, 1fr);
    }
    .editing-panel {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
    .editing-panel > h2 {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }
    .editing-panel .setup-section {
        margin: 0;
    }
}
@media (max-width: 720px) {
    .studio-redesign .app-header {
        padding: 0 14px;
        gap: 10px;
    }
    .studio-redesign .brand {
        font-size: 16px;
        gap: 3px;
    }
    .studio-redesign .brand-mark {
        margin-right: 5px;
    }
    .studio-redesign .workspace-tag,
    .studio-redesign .avatar {
        display: none;
    }
    .studio-redesign .header-right {
        gap: 5px;
    }
    .studio-redesign .header-right .button {
        padding: 8px;
        font-size: 10px;
    }
    .studio-redesign .studio-main {
        padding: 18px 12px;
    }
    .studio-redesign .project-header {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }
    .studio-redesign .project-title {
        font-size: 23px;
    }
    .studio-redesign .project-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .studio-workspace {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .studio-redesign .canvas-area {
        grid-row: 1;
        padding: 12px;
    }
    .studio-redesign #graph {
        min-height: 0;
    }
    .setup-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
    .setup-panel > h2 {
        grid-column: 1 / -1;
        margin: 0;
    }
    .setup-panel .setup-section {
        margin: 0;
    }
    .editing-panel {
        grid-column: auto;
        grid-template-columns: minmax(0, 1fr);
    }
    .studio-redesign .canvas-footer {
        font-size: 10px;
    }
    .studio-redesign .canvas-bottom {
        flex-wrap: wrap;
    }
}

.studio-redesign .header-menu {
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--ink);
}
.studio-redesign .header-menu > summary {
    list-style: none;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    font-size: 12px;
    font-weight: 550;
    cursor: pointer;
    white-space: nowrap;
}
.header-menu > summary::-webkit-details-marker {
    display: none;
}
.header-menu > summary::after {
    content: "⌄";
    margin-left: 9px;
    color: var(--muted);
}
.studio-redesign .header-menu[open] > summary {
    background: var(--soft);
    border-color: #8bb8a6;
}
.header-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 290px;
    max-height: min(70vh, 550px);
    overflow: auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 35px #14231f20;
    padding: 16px;
    z-index: 30;
}
.header-popover h3 {
    font-size: 12px;
    margin: 0 0 12px;
    color: var(--ink);
}
.header-popover .quick-templates {
    margin-bottom: 10px;
}
.header-popover .quiet-button {
    margin-top: 8px;
}
@media (max-width: 1100px) {
    .studio-redesign .workspace-tag {
        display: none;
    }
}
@media (max-width: 720px) {
    .studio-redesign .app-header {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 12px;
    }
    .studio-redesign .header-right {
        margin-left: 0;
        flex-wrap: wrap;
        width: 100%;
        gap: 6px;
    }
    .studio-redesign .header-menu > summary {
        font-size: 11px;
        padding: 8px;
    }
    .header-popover {
        position: fixed;
        top: 113px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100dvh - 140px);
    }
}

.clipboard-row {
    margin-top: 8px;
}

.auth-link {
    text-decoration: none;
    color: var(--ink);
}
.auth-header-note {
    font-size: 12px;
    color: var(--muted);
}
.auth-layout {
    max-width: 1120px;
    margin: 0 auto;
    padding: 70px 28px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 90px;
    align-items: center;
}
.auth-eyebrow {
    font-size: 10px;
    letter-spacing: 1.7px;
    font-weight: 650;
    color: var(--green);
}
.auth-intro h1 {
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.15;
    letter-spacing: -1.8px;
    font-weight: 600;
    margin: 20px 0 18px;
}
.auth-intro > p {
    color: #73817b;
    font-size: 14px;
    line-height: 1.8;
}
.auth-preview {
    margin-top: 34px;
    padding: 19px 20px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 30px #233d3006;
}
.auth-preview-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
}
.auth-preview-pill {
    font-size: 10px;
    font-weight: 400;
    padding: 6px 9px;
    background: var(--soft);
    color: var(--green);
    border-radius: 20px;
}
.auth-preview svg {
    width: 100%;
    display: block;
}
.auth-preview-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding: 16px 0;
    font-size: 10px;
    color: var(--muted);
}
.auth-card {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px #233d3008;
}
.auth-card h2 {
    font-size: 26px;
    letter-spacing: -0.8px;
    margin: 16px 0 10px;
    font-weight: 600;
}
.auth-subtitle {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 25px;
}
.auth-card form > label {
    font-size: 12px;
    color: #45584f;
    font-weight: 550;
    margin-bottom: 8px;
}
.auth-card form > input {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #dfe6e1;
    border-radius: 8px;
    background: #fdfefc;
    margin-bottom: 18px;
    font-size: 14px;
}
.auth-card .auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    font-weight: 400;
}
.auth-card input[type="checkbox"] {
    accent-color: var(--green);
}
.auth-card .auth-submit {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 13px;
    font-size: 13px;
}
.auth-switch {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 22px;
}
.auth-switch a {
    color: var(--green);
    text-underline-offset: 3px;
}
.auth-note {
    border-top: 1px solid var(--line);
    padding-top: 19px;
    margin-top: 22px;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
}
.auth-errors {
    background: #fff3ee;
    color: #9a4432;
    border: 1px solid #efd8cf;
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    margin-bottom: 18px;
}
.auth-errors ul {
    margin: 0;
    padding-left: 16px;
    line-height: 1.7;
}
.auth-password-note {
    color: var(--muted);
    font-size: 11px;
    margin: -10px 0 18px;
}
.account-menu form {
    margin: 0;
}
.account-menu summary {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 900px) {
    .auth-layout {
        gap: 35px;
        padding: 40px 24px;
    }
    .auth-card {
        padding: 25px;
    }
}
@media (max-width: 720px) {
    .auth-layout {
        display: flex;
        flex-direction: column;
        padding: 35px 20px;
        gap: 28px;
    }
    .auth-intro {
        width: 100%;
    }
    .auth-intro h1 {
        font-size: 32px;
    }
    .auth-preview {
        display: none;
    }
    .auth-card {
        width: 100%;
        max-width: 440px;
    }
    .auth-header-note {
        display: none;
    }
    .auth-page .header-right {
        width: auto;
        margin-left: auto;
    }
}
.auth-forgot { text-align: right; margin: -7px 0 18px; font-size: 12px; }
.auth-forgot a { color: var(--green); text-underline-offset: 3px; }
.auth-success { padding: 13px; margin-bottom: 20px; border-radius: 8px; background: var(--soft); color: #25604b; font-size: 12px; line-height: 1.6; border: 1px solid #cce2d5; }
.auth-local-note { margin: 17px 0 0; font-size: 11px; color: var(--muted); line-height: 1.6; }
.auth-card form > input[type="hidden"] { display: none; }
