:root {
    color-scheme: light;
    --navy: #111332;
    --navy-soft: #1b1b49;
    --purple: #742cff;
    --purple-light: #9c67ff;
    --ink: #171a39;
    --muted: #656b85;
    --line: #e2e4f2;
    --surface: rgba(255, 255, 255, .86);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

button,
input {
    font: inherit;
}

button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(148, 97, 255, .55);
    outline-offset: 3px;
}

body {
    color: var(--ink);
    background:
        radial-gradient(ellipse at 75% 0%, rgba(222, 220, 255, .7), transparent 38%),
        #f4f4ff;
}

#authGate[hidden],
#dashboardView[hidden],
#builderView[hidden],
#adminPanel[hidden] {
    display: none !important;
}

.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 20px;
    color: #e7ecf8;
    background:
        radial-gradient(ellipse at 75% 10%, rgba(104, 78, 196, .2), transparent 38%),
        radial-gradient(ellipse at 15% 90%, rgba(52, 94, 146, .16), transparent 34%),
        #0a1020;
}

.auth-card {
    width: min(100%, 430px);
    padding: 32px;
    border: 1px solid #26314a;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(20, 29, 49, .98), rgba(13, 20, 36, .98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; color: #fff; }
.auth-eyebrow { color: #a78bfa; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.auth-card h1 { margin-top: 9px; color: #fff; font-size: 26px; letter-spacing: -.6px; }
.auth-description { margin: 9px 0 24px; color: #a0abc1; font-size: 13px; line-height: 1.6; }
.auth-card label { display: block; margin: 14px 0 7px; color: #c1cadd; font-size: 12px; font-weight: 600; }
.auth-card input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #34415d;
    border-radius: 9px;
    color: #fff;
    background: #0a1223;
}
.auth-card input:focus { border-color: #8d78fa; outline: 3px solid rgba(141, 120, 250, .2); }
.auth-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 22px;
    border: 1px solid #7864ed;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(110deg, #725ce8, #5943c6);
    font-weight: 700;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease;
}
.auth-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }
.auth-submit:disabled { cursor: wait; opacity: .7; transform: none; }
.auth-message { min-height: 18px; margin-top: 12px; color: #ff9da7; font-size: 12px; }

.workspace-logout {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: 11px;
    cursor: pointer;
}

.app-header {
    min-height: 46px;
    display: grid;
    grid-template-columns: 184px minmax(180px, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 5px 16px 5px 0;
    color: #fff;
    background: linear-gradient(105deg, #111332, #191744 72%, #291263);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.header-brand {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding-left: 18px;
    border-right: 1px solid rgba(255, 255, 255, .2);
    white-space: nowrap;
}

.header-brand strong {
    font-size: 15px;
    letter-spacing: -.3px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(145deg, #b785ff, #742cff 70%);
    font-size: 18px;
    font-weight: 800;
}

.breadcrumb,
.header-actions {
    display: flex;
    align-items: center;
}

.breadcrumb {
    gap: 9px;
    color: #d7d6ef;
    font-size: 12px;
}

.breadcrumb > span:first-child {
    color: #fff;
    display: grid;
    place-items: center;
}

.breadcrumb svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.breadcrumb-divider {
    color: #8885ab;
}

.breadcrumb strong {
    color: #fff;
}

.header-actions {
    gap: 12px;
}

.search-box {
    width: min(300px, 30vw);
    height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #dedcf3;
}

.search-box > span {
    display: grid;
    place-items: center;
}

.search-box svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: 11px;
}

.search-box input::placeholder {
    color: #cbc9e2;
}

.notification-button,
.header-avatar {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
}

.notification-button {
    position: relative;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.notification-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border: 1px solid #21154b;
    border-radius: 50%;
    background: #c28bff;
}

.header-avatar {
    color: #fff;
    background: linear-gradient(145deg, #a766ff, #6d27ff);
    font-size: 13px;
    font-weight: 700;
}

.container {
    display: flex;
}

.sidebar {
    width: 184px;
    flex: 0 0 184px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 8px 12px;
    color: #fff;
    background: linear-gradient(180deg, #121431, #10122e);
}

.sidebar-nav,
.sidebar-footer {
    min-width: 0;
}

.menu {
    list-style: none;
}

.menu li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    padding: 10px 11px;
    border-radius: 8px;
    color: #eeedff;
    cursor: pointer;
    font-size: 12px;
    transition: background .2s ease, transform .2s ease;
    white-space: nowrap;
}

.menu li svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
    opacity: .9;
}

.menu li:hover {
    background: rgba(255, 255, 255, .1);
}

.menu .active {
    color: #fff;
    background: linear-gradient(100deg, #8a45ff, #6b20ff);
    box-shadow: 0 5px 14px rgba(111, 42, 255, .28);
}

.menu-settings {
    margin-bottom: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.menu-settings li {
    margin-bottom: 0;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border-radius: 10px;
}

.avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #a766ff, #6d27ff);
    font-weight: 700;
}

.profile-card h4 {
    font-size: 12px;
}

.profile-card p {
    margin-top: 2px;
    color: #b7b7d2;
    font-size: 10px;
    white-space: nowrap;
}

.admin-panel {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    grid-template-rows: 72px minmax(0, 1fr);
    color: #dfe7f7;
    background: #0b1020;
}

.admin-panel[hidden] { display: none; }

.admin-topbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid #202941;
    background: rgba(11, 16, 32, .96);
}

.admin-eyebrow { color: #8290ad; font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; }
.admin-topbar h1 { margin-top: 2px; color: #fff; font-size: 21px; }
.admin-top-actions { display: flex; align-items: center; gap: 12px; }
.admin-security-pill { padding: 7px 10px; border: 1px solid #275943; border-radius: 999px; color: #79dda7; background: #10271f; font-size: 11px; }
.admin-clock { color: #9aa7bf; font-size: 12px; }
.admin-close, .admin-action, .admin-nav-logout {
    border: 1px solid #303b55;
    border-radius: 9px;
    color: #edf3ff;
    background: #151d31;
    cursor: pointer;
}
.admin-close { padding: 8px 12px; }

.admin-sidebar {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 18px 12px;
    border-right: 1px solid #202941;
    background: #0d1426;
}

.admin-brand { display: flex; align-items: center; gap: 9px; margin: 0 8px 18px; color: #fff; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav button {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    color: #9faac0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.admin-nav button:hover, .admin-nav button.active { color: #fff; background: #202b45; }
.admin-nav button.active { box-shadow: inset 3px 0 #7c66ff; }
.admin-nav-logout { margin-top: auto; padding: 10px 12px; color: #ff9da7; border-color: #542837; background: #251724; }

.admin-content {
    grid-column: 2;
    grid-row: 2;
    overflow: auto;
    padding: 24px;
    background:
        radial-gradient(circle at 85% 5%, rgba(91, 77, 166, .12), transparent 24%),
        #0b1020;
}

.admin-loading { display: grid; min-height: 180px; place-items: center; color: #93a0ba; }
.admin-section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.admin-section-header h2 { color: #fff; font-size: 22px; }
.admin-section-header p { margin-top: 5px; color: #8996ae; font-size: 12px; }

.admin-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 12px; }
.admin-stat-card, .admin-card {
    border: 1px solid #202941;
    border-radius: 14px;
    background: linear-gradient(145deg, #111a2d, #0f1728);
    box-shadow: 0 12px 28px rgba(3, 7, 18, .18);
}
.admin-stat-card { min-height: 112px; padding: 17px; }
.admin-stat-card span { color: #8f9db6; font-size: 12px; }
.admin-stat-card strong { display: block; margin-top: 12px; color: #fff; font-size: 27px; }
.admin-stat-card small { display: block; margin-top: 6px; color: #7dd6a8; font-size: 11px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 12px; margin-top: 12px; }
.admin-card { padding: 18px; }
.admin-card h3 { color: #fff; font-size: 14px; }
.admin-card p { color: #8f9db6; font-size: 12px; line-height: 1.65; }
.admin-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #202941; }
.admin-status-row:last-child { border-bottom: 0; }
.admin-status-row strong { color: #dfe7f7; font-size: 12px; }
.admin-status-ok { color: #79dda7; }
.admin-status-error { color: #ff9da7; }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.admin-table th, .admin-table td { padding: 11px 8px; border-bottom: 1px solid #202941; text-align: left; font-size: 12px; }
.admin-table th { color: #8996ae; font-weight: 600; }
.admin-table td { color: #c8d2e6; }
.admin-form { display: grid; max-width: 520px; gap: 12px; }
.admin-form label { display: grid; gap: 7px; color: #aab5ca; font-size: 12px; }
.admin-form input { height: 42px; padding: 0 12px; border: 1px solid #303b55; border-radius: 9px; color: #fff; background: #0b1223; }
.admin-action { min-height: 40px; padding: 0 14px; }
.admin-action.primary { border-color: #6d58df; background: #6952de; }
.admin-message { min-height: 18px; color: #79dda7; font-size: 12px; }

@media (max-width: 900px) {
    .admin-panel { grid-template-columns: 190px minmax(0, 1fr); }
    .admin-stat-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
    .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .admin-panel { grid-template-columns: 1fr; grid-template-rows: 64px auto minmax(0, 1fr); }
    .admin-topbar { grid-row: 1; padding: 10px 12px; }
    .admin-clock, .admin-eyebrow { display: none; }
    .admin-sidebar { grid-row: 2; display: block; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid #202941; }
    .admin-brand { display: none; }
    .admin-nav { display: flex; min-width: max-content; }
    .admin-nav button { width: auto; }
    .admin-nav-logout { display: none; }
    .admin-content { grid-column: 1; grid-row: 3; padding: 14px 10px; }
    .admin-stat-grid { grid-template-columns: 1fr; }
    .admin-section-header { align-items: flex-start; flex-direction: column; }
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 14px 14px 20px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.topbar h1 {
    margin-bottom: 3px;
    color: #161936;
    font-size: clamp(22px, 2.2vw, 27px);
    letter-spacing: -.8px;
}

.topbar span {
    color: #5e6480;
    font-size: 13px;
}

.top-actions {
    flex: 0 0 auto;
}

.top-actions button {
    padding: 9px 15px;
    border: 1px solid #7d3bff;
    border-radius: 9px;
    color: #6e2aff;
    background: rgba(255, 255, 255, .72);
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
    transition: background .2s ease, color .2s ease;
}

.top-actions button:hover {
    color: #fff;
    background: #742cff;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 11px 14px;
    border: 1px solid rgba(223, 225, 244, .9);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 4px 12px rgba(32, 29, 86, .06);
}

.stat-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, #a777ff, #7133ed);
    content: "";
}

.stat-card h2 {
    margin-bottom: 2px;
    color: #8050f3;
    font-size: 21px;
}

.stat-card p {
    color: var(--muted);
    font-size: 11px;
}

.studio-panel {
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #dfe0f4;
    border-radius: 14px;
    background: rgba(255, 255, 255, .48);
    box-shadow: 0 5px 15px rgba(42, 36, 104, .06);
}

.studio-panel > h2 {
    margin: 0 4px 10px;
    color: #171a3a;
    font-size: 19px;
    letter-spacing: -.4px;
}

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

.studio-card {
    position: relative;
    isolation: isolate;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    padding: 12px 13px;
    border: 1px solid rgba(213, 215, 241, .85);
    border-radius: 13px;
    background: linear-gradient(125deg, #fff 32%, #f5f0ff);
    box-shadow: 0 3px 9px rgba(42, 36, 104, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.studio-card::after {
    position: absolute;
    z-index: -1;
    right: -48px;
    bottom: -58px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(145, 87, 255, .28), rgba(145, 87, 255, .03) 70%);
    content: "";
}

.studio-icon {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 13px;
    background: linear-gradient(145deg, #fff, #eee6ff);
    box-shadow: 0 5px 14px rgba(55, 37, 112, .1);
}

.studio-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.studio-icon-web,
.studio-icon-ai {
    color: #743cff;
    background: linear-gradient(145deg, #fff, #eee4ff);
}

.studio-icon-app,
.studio-icon-erp {
    color: #347bd5;
    background: linear-gradient(145deg, #fff, #e6f2ff);
}

.studio-icon-game {
    color: #9a45dc;
    background: linear-gradient(145deg, #fff, #f3e7ff);
}

.studio-icon-data {
    color: #138b69;
    background: linear-gradient(145deg, #fff, #e0f8ef);
}

.studio-card:nth-child(2),
.studio-card:nth-child(5) {
    background: linear-gradient(125deg, #fff 32%, #eef6ff);
}

.studio-card:nth-child(2)::after,
.studio-card:nth-child(5)::after {
    background: radial-gradient(circle at 35% 35%, rgba(74, 151, 255, .25), rgba(74, 151, 255, .03) 70%);
}

.studio-card:nth-child(3),
.studio-card:nth-child(6) {
    background: linear-gradient(125deg, #fff 32%, #f8f0ff);
}

.studio-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(42, 36, 104, .1);
}

.badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #157546;
    background: #d9f9e7;
    font-size: 9px;
    font-weight: 600;
}

.badge.upcoming {
    color: #5d6279;
    background: #e9eaf3;
}

.studio-card h3,
.studio-card p,
.studio-card button {
    position: relative;
    z-index: 1;
    max-width: 78%;
}

.studio-card h3 {
    margin-bottom: 5px;
    max-width: 100%;
    color: #191b3b;
    font-size: 16px;
    letter-spacing: -.3px;
}

.studio-card h3 .studio-title-button {
    display: inline-block;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
    white-space: nowrap;
}

.studio-card p {
    margin-bottom: 10px;
    color: #535a78;
    font-size: 11px;
    line-height: 1.4;
}

.studio-card button {
    margin-top: auto;
    padding: 7px 12px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(100deg, #8a3fff, #6722ff);
    box-shadow: 0 4px 10px rgba(112, 42, 255, .2);
    cursor: pointer;
    font-size: 10px;
    font-weight: 650;
}

.studio-card button:disabled {
    color: #525971;
    background: #e6e7ef;
    box-shadow: none;
    cursor: not-allowed;
}

.dashboard-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: 10px;
}

.projects-box,
.roadmap-box {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #dfe1f2;
    border-radius: 13px;
    background: var(--surface);
    box-shadow: 0 5px 14px rgba(32, 29, 86, .06);
}

.projects-box h2,
.roadmap-box h2 {
    margin-bottom: 8px;
    color: #171a39;
    font-size: 17px;
    letter-spacing: -.3px;
}

.project-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e8e9f2;
}

.project-item:last-child {
    border-bottom: 0;
}

.project-thumb {
    width: 78px;
    height: 42px;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.project-thumb-news {
    background:
        linear-gradient(155deg, transparent 48%, rgba(255, 255, 255, .45) 49% 52%, transparent 53%),
        linear-gradient(160deg, #162752 12%, #3987bb 48%, #f1a64c 49%, #251d3d 77%);
}

.project-thumb-portfolio {
    background:
        radial-gradient(ellipse at 72% 20%, rgba(255, 255, 255, .4), transparent 28%),
        linear-gradient(145deg, #411092, #8d36e8 52%, #14194d);
}

.project-item h4 {
    margin-bottom: 3px;
    color: #202342;
    font-size: 12px;
}

.project-item span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 8px;
    border: 1px solid #e8e0ff;
    border-radius: 999px;
    color: #6546a7;
    background: #f5f1ff;
    font-size: 9px;
}

.project-item button {
    padding: 6px 11px;
    border: 1px solid #8a45ff;
    border-radius: 7px;
    color: #702bfa;
    background: #fff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
}

.project-item button:hover {
    color: #fff;
    background: #742cff;
}

.roadmap-box ul {
    list-style: none;
}

.roadmap-box li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
    border-bottom: 1px solid #e8e9f2;
    color: #363b59;
    font-size: 11px;
}

.roadmap-status {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #69708b;
    background: #eff0f7;
}

.roadmap-status svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.roadmap-status.completed {
    color: #fff;
    background: linear-gradient(145deg, #a15cff, #702cff);
    box-shadow: 0 3px 8px rgba(112, 44, 255, .2);
}

.roadmap-box li:last-child {
    border-bottom: 0;
}

@media (max-width: 1050px) {
    .app-header {
        grid-template-columns: 184px minmax(100px, 1fr) auto;
        gap: 12px;
    }

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

    .dashboard-bottom {
        grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
    }
}

@media (max-width: 760px) {
    .app-header {
        grid-template-columns: 1fr auto;
        padding-right: 10px;
    }

    .header-brand {
        width: max-content;
        border-right: 0;
    }

    .breadcrumb {
        display: none;
    }

    .header-actions {
        gap: 5px;
    }

    .search-box {
        width: min(210px, 42vw);
    }

    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 7px 10px;
    }

    .sidebar-nav {
        flex: 1;
        overflow: hidden;
    }

    .sidebar-nav .menu {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .sidebar-nav .menu li {
        margin: 0;
        padding: 8px 9px;
    }

    .sidebar-nav .menu li svg {
        width: 15px;
        height: 15px;
        flex-basis: 15px;
    }

    .sidebar-footer {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .menu-settings {
        margin: 0;
        padding: 0;
        border: 0;
    }

    .profile-card {
        padding: 3px;
    }

    .profile-card p {
        display: none;
    }

    .main-content {
        padding: 12px 10px 16px;
    }

    .dashboard-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .header-brand {
        padding-left: 10px;
    }

    .header-brand strong {
        font-size: 13px;
    }

    .search-box {
        width: 34vw;
    }

    .notification-button {
        display: none;
    }

    .sidebar {
        align-items: flex-start;
        flex-direction: column;
    }

    .sidebar-nav {
        width: 100%;
    }

    .sidebar-footer {
        width: 100%;
        justify-content: space-between;
    }

    .profile-card p {
        display: block;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .studio-grid {
        grid-template-columns: 1fr;
    }

    .studio-card {
        min-height: 138px;
    }

    .studio-card h3,
    .studio-card p,
    .studio-card button {
        max-width: 86%;
    }

    .project-item {
        grid-template-columns: 58px minmax(0, 1fr) auto;
        gap: 7px;
    }

    .project-thumb {
        width: 58px;
        height: 38px;
    }
}
