:root {
    --bg: #f6f3ef;
    --surface: #ffffff;
    --ink: #17201d;
    --muted: #68736f;
    --line: #d8ded8;
    --accent: #0c6b5e;
    --accent-strong: #094d44;
    --gold: #ba8a18;
    --danger: #9f2d20;
    --radius: 8px;
    --shadow: 0 18px 42px rgba(25, 35, 31, 0.11);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px clamp(20px, 6vw, 72px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(246, 243, 239, 0.93);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.site-footer {
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.brand {
    font-weight: 800;
    font-size: 1.2rem;
}

.site-nav,
.hero-actions,
.public-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.site-nav form {
    margin: 0;
}

.site-nav a,
.site-nav .link-button {
    font: inherit;
    font-size: 1rem;
    line-height: 1.2;
}

main {
    overflow-x: hidden;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: var(--radius);
    padding: 0 18px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.button:hover,
button:hover {
    background: var(--accent-strong);
}

.button:disabled,
button:disabled {
    background: #b9c2bd;
    color: #f5f7f6;
    cursor: not-allowed;
}

.button:disabled:hover,
button:disabled:hover {
    background: #b9c2bd;
}

.button-secondary {
    background: #e8ece8;
    color: var(--ink);
}

.button-secondary:hover {
    background: #dce4dd;
}

.preview-button {
    background: #b7791f;
    color: #ffffff;
}

.preview-button:hover {
    background: #8a5d17;
}

.button-small {
    min-height: 36px;
    padding: 0 14px;
}

.link-button {
    background: transparent;
    color: var(--ink);
    padding: 0;
    min-height: 0;
    font-weight: 500;
}

.link-button:hover {
    background: transparent;
    color: var(--accent);
}

.icon-button {
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    background: #f2dfdc;
    color: var(--danger);
}

.hero,
.page-hero {
    min-height: 78vh;
    display: grid;
    align-items: center;
    padding: clamp(48px, 8vw, 96px) clamp(20px, 6vw, 72px);
    background:
        linear-gradient(rgba(23, 32, 29, 0.68), rgba(23, 32, 29, 0.64)),
        url("../img/portfolio-workspace.png");
    background-size: cover;
    background-position: center;
    color: white;
}

.page-hero {
    min-height: 42vh;
}

.hero-content,
.page-hero > * {
    max-width: 760px;
}

.eyebrow {
    text-transform: uppercase;
    font-weight: 800;
    color: var(--gold);
    margin: 0 0 10px;
}

.hero .eyebrow,
.page-hero .eyebrow {
    color: #f1ce82;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    margin: 0 0 20px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1;
    margin: 0 0 16px;
}

h3 {
    margin: 0 0 12px;
}

.hero-copy,
.page-hero p {
    font-size: 1.2rem;
    max-width: 660px;
}

.section {
    padding: clamp(44px, 7vw, 88px) clamp(20px, 6vw, 72px);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.feature-grid,
.pricing-cards,
.testimonial-grid,
.section-grid,
.stats-grid {
    display: grid;
    gap: 18px;
}

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

.testimonial-grid,
.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.testimonial,
.panel,
.stat-box,
.price-panel,
.form-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-card,
.testimonial,
.panel,
.form-panel {
    padding: 24px;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #dfeee9;
    color: var(--accent);
    font-weight: 900;
    margin-bottom: 18px;
}

.status-pill {
    display: inline-flex;
    border: 1px solid #d1b05a;
    color: #795b12;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 0.85rem;
}

.pricing-band,
.contact-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: center;
    background: #17201d;
    color: white;
}

.contact-band {
    grid-template-columns: minmax(0, 760px);
}

.price-panel {
    display: grid;
    gap: 12px;
    padding: 24px;
    color: var(--ink);
}

.price {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
}

.featured-card {
    border-color: var(--accent);
}

.auth-layout {
    min-height: 72vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 32px;
    align-items: center;
    padding: clamp(44px, 7vw, 88px) clamp(20px, 6vw, 72px);
}

.auth-layout h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.stacked-form p,
.form-panel p {
    display: grid;
    gap: 7px;
    margin: 0 0 14px;
}

label {
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #c8d1ca;
    border-radius: var(--radius);
    padding: 11px 12px;
    font: inherit;
    background: white;
}

textarea {
    resize: vertical;
}

.helptext,
.muted,
.form-note {
    color: var(--muted);
    font-size: 0.92rem;
}

.messages {
    padding: 16px clamp(20px, 6vw, 72px) 0;
}

.message {
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #e9f3ef;
    color: #0f4d42;
    border: 1px solid #badbd0;
}

.message-error,
.message-warning {
    background: #fbefde;
    color: #7a4411;
    border-color: #edc789;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: calc(100vh - 162px);
    overflow-x: hidden;
}

.dashboard-sidebar {
    padding: 28px;
    border-right: 1px solid var(--line);
    background: #eef1ed;
}

.dashboard-sidebar h1 {
    font-size: 2rem;
}

.dashboard-tabs {
    display: grid;
    gap: 8px;
}

.dashboard-tabs a {
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--muted);
    font-weight: 800;
}

.dashboard-tabs a.active,
.dashboard-tabs a:hover {
    background: var(--surface);
    color: var(--ink);
}

.dashboard-content {
    padding: 28px;
    display: grid;
    gap: 22px;
    min-width: 0;
    overflow-x: hidden;
}

.profile-dashboard-content {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.is-saving {
    opacity: 0.72;
    pointer-events: none;
}

.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-heading h2 {
    margin: 0;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-heading h3,
.panel-heading p {
    margin-top: 0;
}

.stat-box {
    padding: 18px;
    display: grid;
    gap: 8px;
}

.stat-box span {
    color: var(--muted);
}

.stat-box strong {
    font-size: 1.45rem;
}

.payment-panel {
    display: grid;
    gap: 18px;
    max-width: 680px;
}

.payment-details {
    display: grid;
    gap: 10px;
    margin: 0;
}

.payment-details div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.payment-details dt {
    color: var(--muted);
    font-weight: 700;
}

.payment-details dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.payment-qr {
    display: grid;
    place-items: center;
    width: min(100%, 340px);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.payment-qr img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.editable-fields {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.editable-fields:disabled {
    opacity: 1;
}

.editable-fields:disabled input,
.editable-fields:disabled select,
.editable-fields:disabled textarea {
    background: #f4f6f4;
    color: #66736c;
    border-color: #dbe1dc;
    cursor: not-allowed;
}

.save-button:disabled {
    background: #c3ccc6;
    color: #f7faf7;
    cursor: not-allowed;
}

.hidden-action {
    display: none !important;
}

.collapsed-form {
    display: none !important;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.edit-toggle.is-editing {
    background: var(--accent);
    color: white;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.profile-image-panel {
    display: grid;
    gap: 12px;
}

.dashboard-profile-image,
.dashboard-profile-placeholder {
    width: min(100%, 260px);
    aspect-ratio: 1;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.dashboard-profile-image {
    object-fit: cover;
    background: #eef1ed;
}

.dashboard-profile-placeholder {
    display: grid;
    place-items: center;
    background: #e8ece8;
    color: var(--accent);
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-fields,
.compact-fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.profile-fields p,
.compact-fieldset p,
.dashboard-form-grid p,
.single-column-fieldset p {
    margin: 0;
}

.profile-fields p:nth-child(3) {
    grid-column: 1 / -1;
}

.profile-section-stack {
    display: grid;
    gap: 18px;
}

.dashboard-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.single-column-fieldset {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.field-full {
    grid-column: 1 / -1;
}

.field-checkbox {
    align-self: end;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 10px !important;
    min-height: 44px;
}

.field-checkbox input,
input[type="checkbox"] {
    width: auto;
}

.date-present-field {
    display: grid;
    gap: 7px;
}

.date-present-control {
    position: relative;
    display: block;
}

.date-present-control input[type="date"] {
    padding-right: 96px;
}

.date-present-control input[name="present"] {
    display: none;
}

.present-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    min-height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    background: #dce4dd;
    color: var(--ink);
    font-size: 0.86rem;
}

.present-toggle:hover,
.present-toggle.is-on {
    background: var(--accent);
    color: #ffffff;
}

.compact-form {
    display: grid;
    gap: 12px;
    align-items: end;
}

.compact-form p {
    margin: 0;
}

.compact-form button {
    grid-column: 1 / -1;
}

.chart-panel {
    min-height: 480px;
}

.chart-canvas {
    display: block;
    width: 100%;
    height: 360px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcfb;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-weight: 700;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.chart-legend i {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

.legend-total {
    background: var(--accent);
}

.legend-unique {
    background: var(--gold);
}

.item-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.list-row {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.list-row div {
    display: grid;
    gap: 4px;
}

.list-row span {
    color: var(--muted);
    font-size: 0.9rem;
}

.detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: start;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.inline-edit-form {
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8faf8;
}

.compact-detail-row {
    align-items: center;
}

.detail-content {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.detail-content p {
    margin: 0;
}

.description-content {
    display: grid;
    gap: 8px;
}

.description-text,
.description-list {
    margin: 0;
}

.description-list {
    padding-left: 22px;
}

.description-list li + li {
    margin-top: 5px;
}

.detail-title-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-title-line strong {
    font-size: 1.05rem;
}

.detail-title-line span,
.detail-meta {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.delete-icon-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: var(--radius);
    background: #f7e5e2;
    color: var(--danger);
    border: 1px solid #edcbc5;
}

.delete-icon-button:hover {
    background: #f0d4ce;
}

.delete-icon-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.public-url {
    background: #eef1ed;
    border-radius: var(--radius);
    padding: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
    margin: 0;
}

.public-url-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.copy-button {
    min-width: 76px;
}

.toggle-field {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin: 0 0 16px;
    cursor: pointer;
}

.toggle-field input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-track {
    width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #aeb8b1;
    padding: 3px;
    transition: background 0.18s ease;
}

.toggle-thumb {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease;
}

.toggle-field.is-on .toggle-track {
    background: var(--accent);
}

.toggle-field.is-on .toggle-thumb {
    transform: translateX(24px);
}

.toggle-field:has(input:disabled) {
    cursor: not-allowed;
}

.toggle-text {
    font-weight: 800;
}

.portfolio-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 72px);
}

.portfolio-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 30px;
    align-items: center;
    min-height: 56vh;
}

.portfolio-hero h1 {
    font-size: clamp(3rem, 7vw, 6.4rem);
}

.portfolio-title {
    font-size: 1.35rem;
    font-weight: 800;
}

.profile-photo {
    width: 240px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
}

.portfolio-section {
    border-top: 1px solid currentColor;
    padding: 34px 0;
}

.timeline-item,
.project-tile {
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid currentColor;
    border-radius: var(--radius);
}

.timeline-item span,
.project-tile span {
    color: var(--muted);
}

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

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-cloud span {
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 8px 12px;
}

.portfolio-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px solid currentColor;
}

.theme-classic {
    --bg: #f7f4ee;
    --ink: #16201b;
    --accent: #0c6b5e;
}

.theme-executive {
    --bg: #f3f4f6;
    --ink: #111827;
    --accent: #31525b;
    --gold: #8a6c2f;
}

.theme-creative {
    --bg: #fbf4f0;
    --ink: #281b2f;
    --accent: #b33a3a;
    --gold: #0b7285;
}

.theme-minimal {
    --bg: #ffffff;
    --ink: #151515;
    --accent: #444444;
    --line: #e8e8e8;
}

.theme-studio {
    --bg: #eff7f5;
    --ink: #122522;
    --accent: #0f766e;
    --gold: #b7791f;
}

.theme-editorial {
    --bg: #f8f0e5;
    --ink: #251d18;
    --accent: #8f3d2f;
    --gold: #1c6b7a;
}

.theme-momentum {
    --bg: #f4f7fb;
    --ink: #121a26;
    --accent: #245f73;
    --gold: #b5632b;
}

.theme-signal {
    --bg: #eef5f1;
    --ink: #12231c;
    --accent: #256b42;
    --gold: #5d6f9b;
}

.theme-warm {
    --bg: #fbf1e8;
    --ink: #2f2118;
    --accent: #98623c;
    --gold: #266c5a;
}

.theme-mono {
    --bg: #f6f6f6;
    --ink: #101010;
    --accent: #2f2f2f;
    --gold: #5d5d5d;
}

.public-page {
    background: var(--bg);
    color: var(--ink);
}

.public-page .button {
    background: var(--accent);
}

/* Public portfolio theme systems */
.theme-classic {
    font-family: Georgia, "Times New Roman", serif;
}

.theme-classic .portfolio-page {
    max-width: 1080px;
}

.theme-classic .portfolio-section {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
}

.theme-classic .portfolio-section > h2 {
    font-size: 2.1rem;
}

.theme-classic .timeline-item,
.theme-classic .project-tile {
    background: rgba(255, 255, 255, 0.66);
}

.theme-executive {
    --bg: #f4f6f8;
    --ink: #111827;
    --accent: #25364a;
    --accent-strong: #172235;
    --gold: #8a6c2f;
    --line: #c7ced8;
    font-family: "Times New Roman", Times, serif;
}

.theme-executive .portfolio-page {
    max-width: 1180px;
    padding-top: 42px;
}

.theme-executive .portfolio-hero {
    min-height: 42vh;
    grid-template-columns: minmax(0, 1fr) 210px;
    padding: 34px;
    border: 8px double #25364a;
    background: #ffffff;
}

.theme-executive .portfolio-hero h1 {
    letter-spacing: 0;
    font-size: clamp(3rem, 6vw, 5.4rem);
}

.theme-executive .portfolio-title {
    color: #25364a;
}

.theme-executive .profile-photo {
    border-radius: 0;
    border: 8px solid #e7ebef;
}

.theme-executive .portfolio-section {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    background: #ffffff;
    padding: 28px;
    margin-top: 22px;
    border: 1px solid #c7ced8;
}

.theme-executive .timeline-item,
.theme-executive .project-tile {
    border: 0;
    border-left: 4px solid #25364a;
    border-radius: 0;
    padding: 0 0 0 18px;
}

.theme-creative {
    --bg: #071426;
    --ink: #d8fbff;
    --accent: #22d3ee;
    --accent-strong: #0ea5c8;
    --gold: #f472b6;
    --line: rgba(34, 211, 238, 0.34);
    --surface: #0e223b;
    font-family: "Bahnschrift", "Segoe UI", Consolas, monospace;
}

.theme-creative .portfolio-page {
    max-width: 1240px;
    padding-top: 34px;
}

.theme-creative .portfolio-hero {
    min-height: 68vh;
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.6fr);
    padding: clamp(26px, 5vw, 56px);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(244, 114, 182, 0.12)),
        #0e223b;
    border: 1px solid rgba(34, 211, 238, 0.46);
    clip-path: polygon(0 0, 96% 0, 100% 12%, 100% 100%, 4% 100%, 0 88%);
}

.theme-creative .portfolio-hero h1 {
    text-transform: uppercase;
    font-size: clamp(3rem, 8vw, 7.2rem);
    text-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}

.theme-creative .profile-photo {
    border-radius: 28px 4px 28px 4px;
    border: 2px solid #22d3ee;
    box-shadow: 0 0 35px rgba(34, 211, 238, 0.35);
}

.theme-creative .portfolio-section {
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: rgba(14, 34, 59, 0.76);
    margin-top: 20px;
    padding: 28px;
}

.theme-creative .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-creative .timeline-item,
.theme-creative .project-tile,
.theme-creative .skill-cloud span {
    border-color: rgba(34, 211, 238, 0.42);
    background: rgba(7, 20, 38, 0.74);
    box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.12);
}

.theme-minimal {
    --bg: #ffffff;
    --ink: #161616;
    --accent: #2f2f2f;
    --accent-strong: #111111;
    --gold: #6f6f6f;
    --line: #e9e9e9;
    font-family: Arial, Helvetica, sans-serif;
}

.theme-minimal .portfolio-page {
    max-width: 820px;
}

.theme-minimal .portfolio-hero {
    display: block;
    min-height: auto;
    padding: 72px 0 48px;
}

.theme-minimal .profile-photo {
    width: 132px;
    margin-top: 26px;
    border-radius: 50%;
    filter: grayscale(1);
}

.theme-minimal .portfolio-section {
    padding: 26px 0;
}

.theme-minimal .timeline-item,
.theme-minimal .project-tile {
    border: 0;
    border-radius: 0;
    padding: 0;
}

.theme-minimal .portfolio-grid {
    grid-template-columns: 1fr;
}

.theme-studio {
    --bg: #edf7f4;
    --ink: #10241f;
    --accent: #0f766e;
    --accent-strong: #0b5c55;
    --gold: #b7791f;
    --line: #9fcac1;
    font-family: "Trebuchet MS", Verdana, sans-serif;
}

.theme-studio .portfolio-page {
    max-width: 1280px;
}

.theme-studio .portfolio-hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    min-height: 58vh;
    background: #dceee9;
    border-radius: 0 0 80px 80px;
    padding: 52px;
}

.theme-studio .profile-photo {
    order: -1;
    width: 180px;
    border-radius: 50%;
    border: 10px solid #ffffff;
}

.theme-studio .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-studio .project-tile {
    min-height: 240px;
    display: grid;
    align-content: space-between;
    background: #ffffff;
}

.theme-studio .skill-cloud span {
    background: #ffffff;
}

.theme-editorial {
    --bg: #f8f0e5;
    --ink: #251d18;
    --accent: #8f3d2f;
    --accent-strong: #6d2c22;
    --gold: #1c6b7a;
    --line: #d8c7ad;
    font-family: Georgia, "Times New Roman", serif;
}

.theme-editorial .portfolio-page {
    max-width: 1180px;
}

.theme-editorial .portfolio-hero {
    min-height: 54vh;
    grid-template-columns: minmax(0, 1fr) 300px;
    border-bottom: 6px solid #251d18;
}

.theme-editorial .portfolio-hero h1 {
    font-size: clamp(4rem, 9vw, 8rem);
    line-height: 0.9;
}

.theme-editorial .profile-photo {
    width: 300px;
    border-radius: 0;
}

.theme-editorial .portfolio-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.theme-editorial .portfolio-section > h2 {
    grid-column: 1 / -1;
    border-bottom: 2px solid #251d18;
}

.theme-editorial .timeline-item,
.theme-editorial .project-tile {
    background: rgba(255, 255, 255, 0.34);
    border-radius: 0;
}

.theme-momentum {
    --bg: #f4f7fb;
    --ink: #121a26;
    --accent: #245f73;
    --accent-strong: #173f4d;
    --gold: #b5632b;
    --line: #bfd0dc;
    font-family: "Segoe UI", Arial, sans-serif;
}

.theme-momentum .portfolio-page {
    max-width: 1200px;
}

.theme-momentum .portfolio-hero {
    min-height: 62vh;
    padding: 48px;
    background: linear-gradient(120deg, #245f73 0%, #121a26 72%);
    color: #ffffff;
    border-radius: 28px;
}

.theme-momentum .portfolio-hero .eyebrow,
.theme-momentum .portfolio-hero .portfolio-title {
    color: #f2b46d;
}

.theme-momentum .profile-photo {
    border-radius: 18px;
    transform: rotate(2deg);
    box-shadow: 18px 18px 0 #b5632b;
}

.theme-momentum .portfolio-section {
    border: 0;
    padding: 44px 0 0;
}

.theme-momentum .timeline-item,
.theme-momentum .project-tile {
    background: #ffffff;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(18, 26, 38, 0.1);
}

.theme-signal {
    --bg: #07110d;
    --ink: #d9ffe9;
    --accent: #38d878;
    --accent-strong: #25a85a;
    --gold: #8ed7ff;
    --line: rgba(56, 216, 120, 0.38);
    font-family: Consolas, "Courier New", monospace;
}

.theme-signal .portfolio-page {
    max-width: 1160px;
}

.theme-signal .portfolio-hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    padding: 38px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.theme-signal .portfolio-hero h1::before {
    content: "> ";
    color: #38d878;
}

.theme-signal .profile-photo {
    width: 150px;
    border-radius: 0;
    border: 1px solid #38d878;
}

.theme-signal .portfolio-section {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
}

.theme-signal .timeline-item,
.theme-signal .project-tile,
.theme-signal .skill-cloud span {
    border-radius: 0;
    background: rgba(56, 216, 120, 0.06);
}

.theme-warm {
    --bg: #fbf1e8;
    --ink: #2f2118;
    --accent: #98623c;
    --accent-strong: #74482b;
    --gold: #266c5a;
    --line: #e0bf9e;
    font-family: "Segoe UI", Verdana, sans-serif;
}

.theme-warm .portfolio-page {
    max-width: 1060px;
}

.theme-warm .portfolio-hero {
    min-height: 56vh;
    background: #fff8f0;
    padding: 38px;
    border-radius: 40px;
}

.theme-warm .profile-photo {
    border-radius: 40px;
    box-shadow: 0 16px 0 #e0bf9e;
}

.theme-warm .portfolio-section {
    background: #fff8f0;
    border: 0;
    border-radius: 28px;
    padding: 28px;
    margin-top: 22px;
}

.theme-warm .timeline-item,
.theme-warm .project-tile {
    border: 1px solid #e0bf9e;
    background: #ffffff;
}

.theme-mono {
    --bg: #f6f6f6;
    --ink: #101010;
    --accent: #2f2f2f;
    --accent-strong: #000000;
    --gold: #5d5d5d;
    --line: #101010;
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
}

.theme-mono .portfolio-page {
    max-width: 960px;
}

.theme-mono .portfolio-hero {
    min-height: auto;
    grid-template-columns: 180px minmax(0, 1fr);
    padding: 28px 0;
    border-top: 4px solid #101010;
    border-bottom: 4px solid #101010;
}

.theme-mono .portfolio-hero > div {
    grid-column: 2;
}

.theme-mono .profile-photo {
    grid-column: 1;
    grid-row: 1;
    width: 150px;
    border-radius: 0;
    filter: grayscale(1) contrast(1.15);
}

.theme-mono .portfolio-section {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0;
}

.theme-mono .portfolio-section > h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
}

.theme-mono .timeline-item,
.theme-mono .project-tile,
.theme-mono .skill-cloud span {
    border-radius: 0;
    border-width: 2px;
    background: transparent;
}

@media (max-width: 900px) {
    .site-header,
    .site-footer,
    .dashboard-heading,
    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .two-columns,
    .pricing-cards,
    .section-grid,
    .testimonial-grid,
    .stats-grid,
    .auth-layout,
    .pricing-band,
    .dashboard-shell,
    .portfolio-hero,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .dashboard-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-tabs a {
        text-align: center;
    }

    .theme-classic .portfolio-section,
    .theme-executive .portfolio-section,
    .theme-editorial .portfolio-section,
    .theme-signal .portfolio-section,
    .theme-mono .portfolio-section,
    .theme-creative .portfolio-grid,
    .theme-studio .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .theme-executive .portfolio-hero,
    .theme-editorial .portfolio-hero,
    .theme-creative .portfolio-hero,
    .theme-mono .portfolio-hero {
        grid-template-columns: 1fr;
    }

    .theme-mono .portfolio-hero > div,
    .theme-mono .profile-photo {
        grid-column: auto;
        grid-row: auto;
    }

    .theme-creative .portfolio-hero {
        clip-path: none;
    }

    .compact-fieldset,
    .dashboard-form-grid,
    .profile-details-grid,
    .profile-fields,
    .public-url-row {
        grid-template-columns: 1fr;
    }

    .profile-photo {
        width: min(240px, 100%);
    }
}

@media (max-width: 560px) {
    .site-nav,
    .dashboard-tabs {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .dashboard-content,
    .dashboard-sidebar,
    .panel,
    .feature-card,
    .testimonial,
    .form-panel {
        padding: 18px;
    }

    h1 {
        font-size: 2.7rem;
    }
}
