:root {
    --body-background: linear-gradient(#47d6d6, pink 50%);
    --ink: #07151f;
    --muted: rgba(7, 21, 31, 0.62);
    --panel: rgba(255, 255, 255, 0.26);
    --panel-strong: rgba(255, 255, 255, 0.42);
    --line: rgba(255, 255, 255, 0.52);
    --line-dark: rgba(7, 21, 31, 0.12);
    --cyan: #19f5ff;
    --green: #72ffbd;
    --pink: #ff6fd8;
    --shadow: 0 24px 80px rgba(10, 20, 35, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--body-background);
    overflow: hidden;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cloud-shell {
    position: relative;
    min-height: 100vh;
    padding: 20px 0 0;
    isolation: isolate;
}

.cloud-shell::before,
.cloud-shell::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.cloud-shell::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
}

.cloud-shell::after {
    background:
        radial-gradient(circle at 16% 18%, rgba(25, 245, 255, 0.24), transparent 28%),
        radial-gradient(circle at 84% 28%, rgba(255, 111, 216, 0.24), transparent 26%),
        linear-gradient(135deg, rgba(7, 21, 31, 0.1), transparent 45%);
}

.desktop-taskbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 20px;
    padding: 0 6px 0 10px;
    color: #f3f6f8;
    background: #25292f;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.desktop-taskbar time {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 20px;
}

.taskbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 20px;
}

.avatar-button,
.logo-button {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    padding: 0;
}

.avatar-button {
    color: #07151f;
    background: var(--cyan);
}

.avatar-button span {
    font-size: 0.52rem;
    font-weight: 900;
}

.logo-button {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: linear-gradient(135deg, #47d6d6, pink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.logo-button img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(7, 21, 31, 0.28));
}

.mega-menu,
.user-menu {
    position: fixed;
    z-index: 1001;
    right: 6px;
    top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    background: rgba(31, 35, 42, 0.94);
    box-shadow: 0 18px 70px rgba(7, 21, 31, 0.34);
    color: #f8ffff;
    backdrop-filter: blur(18px);
}

.mega-menu {
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 20px));
    padding: 12px;
}

.mega-menu[hidden],
.user-menu[hidden] {
    display: none;
}

.mega-menu input {
    width: 100%;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 0 12px;
    color: #f8ffff;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.mega-apps {
    display: grid;
    gap: 8px;
}

.mega-apps button {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 4px 10px;
    align-items: center;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 8px;
    color: #f8ffff;
    background: rgba(255, 255, 255, 0.08);
    text-align: left;
}

.mega-apps button:hover,
.user-menu button:hover {
    border-color: rgba(25, 245, 255, 0.72);
    background: rgba(255, 255, 255, 0.16);
}

.mega-apps span {
    display: grid;
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    color: #07151f;
    background: var(--green);
    font-weight: 900;
}

.mega-apps strong,
.mega-apps small {
    min-width: 0;
}

.mega-apps small {
    color: rgba(248, 255, 255, 0.68);
}

.user-menu {
    right: 30px;
    display: grid;
    min-width: 180px;
    padding: 6px;
}

.user-menu button {
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #f8ffff;
    background: transparent;
    text-align: left;
}

.desktop-area {
    position: fixed;
    inset: 20px 0 0;
    overflow: hidden;
}

.app-window {
    position: absolute;
    z-index: 10;
    display: grid;
    grid-template-rows: 30px 1fr;
    min-width: 360px;
    min-height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.app-window.is-focused {
    z-index: 20;
}

.app-window.is-hidden {
    display: none;
}

.app-window.is-minimized {
    height: 30px !important;
    min-height: 30px;
}

.app-window.is-minimized > section,
.app-window.is-minimized .resize-handle {
    display: none;
}

.app-window.is-maximized {
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0;
}

.window-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 30px;
    padding: 0 6px 0 9px;
    color: #f8ffff;
    background: rgba(37, 41, 47, 0.92);
    user-select: none;
}

.window-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.window-title strong {
    overflow: hidden;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.window-icon {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 5px;
    color: #07151f;
    background: var(--green);
    font-size: 0.68rem;
    font-weight: 900;
}

.window-controls {
    display: inline-flex;
    gap: 4px;
}

.window-controls button {
    display: grid;
    width: 24px;
    height: 22px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #f8ffff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 900;
}

.window-controls button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.resize-handle {
    position: absolute;
    z-index: 2;
}

.resize-n,
.resize-s {
    right: 8px;
    left: 8px;
    height: 8px;
    cursor: ns-resize;
}

.resize-n {
    top: -4px;
}

.resize-s {
    bottom: -4px;
}

.resize-e,
.resize-w {
    top: 8px;
    bottom: 8px;
    width: 8px;
    cursor: ew-resize;
}

.resize-e {
    right: -4px;
}

.resize-w {
    left: -4px;
}

.resize-ne,
.resize-se,
.resize-sw,
.resize-nw {
    width: 12px;
    height: 12px;
}

.resize-ne {
    top: -4px;
    right: -4px;
    cursor: nesw-resize;
}

.resize-se {
    right: -4px;
    bottom: -4px;
    cursor: nwse-resize;
}

.resize-sw {
    bottom: -4px;
    left: -4px;
    cursor: nesw-resize;
}

.resize-nw {
    top: -4px;
    left: -4px;
    cursor: nwse-resize;
}

.files-window {
    display: grid;
    grid-template-rows: auto auto 1fr;
    min-height: 0;
    height: 100%;
    border: 1px solid var(--line);
    border-width: 0;
    border-radius: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.44);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.web-builder {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 300px;
    height: 100%;
    min-height: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12));
    overflow: hidden;
}

.builder-sidebar,
.builder-inspector {
    min-height: 0;
    overflow: auto;
    background: rgba(255, 255, 255, 0.18);
}

.builder-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.32);
}

.builder-inspector {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.builder-search {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.builder-search input,
.builder-fields input,
.builder-fields textarea {
    width: 100%;
    border: 1px solid rgba(7, 21, 31, 0.14);
    border-radius: 8px;
    padding: 9px 10px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.72);
    outline: none;
}

.block-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    padding: 8px 10px 10px;
}

.block-group summary {
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.block-group button {
    display: block;
    width: 100%;
    min-height: 40px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.26);
    font-weight: 850;
    text-align: left;
}

.block-group button:hover {
    border-color: rgba(25, 245, 255, 0.9);
    background: rgba(255, 255, 255, 0.48);
}

.builder-stage {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    min-height: 0;
}

.builder-stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.16);
}

.builder-stage-head div {
    display: grid;
    gap: 2px;
}

.builder-stage-head span,
.builder-inspector > span,
.builder-fields span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.builder-stage-head button,
.danger-action {
    min-height: 34px;
    border: 1px solid rgba(7, 21, 31, 0.14);
    border-radius: 8px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.5);
    font-weight: 900;
}

.builder-canvas {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px;
    overflow: auto;
}

.builder-empty {
    display: grid;
    min-height: 180px;
    place-items: center;
    border: 1px dashed rgba(7, 21, 31, 0.2);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
    text-align: center;
}

.web-block {
    position: relative;
    display: grid;
    gap: 10px;
    min-height: 120px;
    padding: clamp(20px, 4vw, 44px);
    border: 2px solid transparent;
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(7, 21, 31, 0.12);
}

.web-block:hover,
.web-block.is-selected {
    border-color: rgba(25, 245, 255, 0.92);
}

.web-block::before {
    position: absolute;
    top: 8px;
    right: 10px;
    color: currentColor;
    content: "#" attr(id);
    font-size: 0.68rem;
    font-weight: 900;
    opacity: 0.52;
}

.web-block h1,
.web-block h2,
.web-block p {
    max-width: 760px;
    margin: 0;
}

.web-block h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1;
}

.web-block h2 {
    font-size: clamp(1.35rem, 3vw, 2.4rem);
    line-height: 1.08;
}

.web-block p {
    font-size: 1rem;
    line-height: 1.55;
}

.web-block a {
    color: inherit;
    font-weight: 900;
}

.web-block-menu-simple {
    min-height: 64px;
    padding: 16px 24px;
}

.web-block-menu-simple nav,
.web-block-footer-legal nav,
.social-icons,
.feature-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.web-block-menu-simple a,
.web-block-footer-legal a,
.social-icons a,
.feature-items span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 8px;
    padding: 0 12px;
    text-decoration: none;
}

.web-block-hero-basic {
    min-height: 300px;
    justify-content: start;
}

.web-block-banner-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.web-block-social-banner {
    justify-items: start;
}

.social-icons a {
    width: 42px;
    justify-content: center;
}

.feature-items {
    margin-top: 8px;
}

.feature-items span {
    background: rgba(255, 255, 255, 0.34);
    font-weight: 900;
}

.web-block-footer-legal {
    min-height: 96px;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.builder-fields {
    display: grid;
    gap: 10px;
}

.builder-fields label {
    display: grid;
    gap: 6px;
}

.builder-fields textarea {
    min-height: 78px;
    resize: vertical;
}

.builder-fields input[type="color"] {
    height: 42px;
    padding: 4px;
}

.danger-action {
    color: #fff;
    background: #b42342;
}

.app-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.36);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-lockup img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(7, 21, 31, 0.18));
}

.brand-lockup div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.brand-lockup strong {
    font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.brand-lockup span,
.status-pill {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.status-pill {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.24);
    text-transform: uppercase;
}

.ribbon {
    display: flex;
    gap: 10px;
    align-items: stretch;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
    overflow-x: auto;
}

.ribbon-group {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 56px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
}

.ribbon-label {
    align-self: stretch;
    display: grid;
    place-items: center;
    padding-right: 8px;
    border-right: 1px solid rgba(7, 21, 31, 0.12);
    color: rgba(7, 21, 31, 0.7);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.ribbon button,
.ribbon input {
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.28);
}

.ribbon button {
    padding: 0 11px;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.icon-button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    min-width: 36px;
    place-items: center;
    padding: 0;
}

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

.icon-button.text-icon {
    font-size: 0.74rem;
    font-weight: 950;
}

.ribbon button:hover,
.ribbon button:focus-visible,
.ribbon button.is-active {
    border-color: rgba(25, 245, 255, 0.9);
    background: rgba(255, 255, 255, 0.5);
    outline: none;
}

.ribbon-search {
    flex: 1 1 280px;
}

.ribbon input {
    width: min(320px, 45vw);
    min-width: 180px;
    padding: 0 12px;
    outline: none;
}

.files-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 280px;
    min-height: 0;
}

.files-window.is-sidebar-hidden .files-layout {
    grid-template-columns: 0 minmax(0, 1fr) 280px;
}

.files-window.is-sidebar-hidden .files-sidebar {
    visibility: hidden;
    overflow: hidden;
}

.files-sidebar,
.files-main,
.inspector {
    min-height: 0;
}

.files-sidebar {
    display: grid;
    grid-template-rows: auto 1fr;
    border-right: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.16);
}

.sidebar-head,
.pathbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar-head span,
.pathbar span:last-child {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.folder-tree {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 10px;
    overflow: auto;
}

.folder-node {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 9px;
    color: var(--ink);
    background: transparent;
    text-align: left;
}

.folder-node:hover,
.folder-node.is-active,
.folder-node.is-drop-target {
    border-color: rgba(25, 245, 255, 0.66);
    background: rgba(255, 255, 255, 0.3);
}

.folder-node span:first-child {
    color: #087b88;
    font-weight: 900;
}

.files-main {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
}

.pathbar {
    background: rgba(255, 255, 255, 0.12);
}

.pathbar span:first-child {
    min-width: 0;
    overflow: hidden;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-grid {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 14px;
    overflow: auto;
}

.file-grid.is-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.file-grid.is-details {
    grid-template-columns: 1fr;
}

.file-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 68px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.file-card:hover,
.file-card.is-selected,
.file-card.is-drop-target {
    border-color: rgba(25, 245, 255, 0.9);
    background: rgba(255, 255, 255, 0.42);
}

.file-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, rgba(25, 245, 255, 0.82), rgba(255, 111, 216, 0.76));
    font-size: 1.1rem;
    font-weight: 900;
}

.file-meta {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.file-name {
    min-width: 0;
    overflow: hidden;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-sub {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.file-grid.is-details .file-card {
    grid-template-columns: 38px minmax(180px, 1fr) 110px 120px;
}

.detail-size,
.detail-date {
    display: none;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.file-grid.is-details .detail-size,
.file-grid.is-details .detail-date {
    display: block;
}

.inspector {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.16);
}

.inspector span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.inspector strong {
    font-size: 1.1rem;
}

.inspector p {
    margin: 0;
    color: rgba(7, 21, 31, 0.74);
    font-size: 0.9rem;
    line-height: 1.5;
}

.editor-modal {
    width: min(720px, calc(100vw - 24px));
    border: 0;
    border-radius: 8px;
    padding: 0;
    color: var(--ink);
    background: transparent;
}

.profile-modal {
    width: min(520px, calc(100vw - 24px));
    border: 0;
    border-radius: 8px;
    padding: 0;
    color: var(--ink);
    background: transparent;
}

.profile-modal::backdrop {
    background: rgba(7, 21, 31, 0.36);
    backdrop-filter: blur(8px);
}

.editor-modal::backdrop {
    background: rgba(7, 21, 31, 0.36);
    backdrop-filter: blur(8px);
}

.editor-card,
.profile-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.editor-card header,
.editor-card footer,
.profile-card header,
.profile-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.editor-card label,
.profile-card label {
    display: grid;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 900;
}

.editor-card input,
.profile-card input {
    width: 100%;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    padding: 10px;
    outline: none;
}

.rich-editor {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: #fff;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid var(--line-dark);
    background: rgba(7, 21, 31, 0.04);
}

.editor-toolbar button {
    min-height: 32px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    background: rgba(255, 255, 255, 0.82);
}

.editor-toolbar .icon-button svg {
    width: 18px;
    height: 18px;
}

.editor-toolbar button:hover,
.editor-toolbar button:focus-visible {
    border-color: rgba(25, 245, 255, 0.9);
    outline: none;
}

.editor-content {
    min-height: 260px;
    max-height: min(44vh, 460px);
    padding: 14px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.92);
    line-height: 1.55;
    outline: none;
}

.editor-content:empty::before {
    color: rgba(7, 21, 31, 0.42);
    content: "Escribe contenido HTML con formato...";
}

.editor-content h1,
.editor-content h2,
.editor-content p,
.editor-content ul,
.editor-content ol {
    margin-top: 0;
}

.editor-content ul,
.editor-content ol {
    padding-left: 1.6rem;
}

.editor-card button,
.profile-card button {
    min-height: 36px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.72);
    font-weight: 900;
}

.editor-card .primary-action,
.profile-card .primary-action {
    border-color: transparent;
    background: var(--green);
}

.profile-preview {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
}

.avatar-preview {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: #07151f;
    background: var(--cyan);
    font-size: 1rem;
    font-weight: 900;
}

.profile-preview p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.profile-row {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 12px;
}

.login-gate {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(8px);
}

.login-card {
    display: grid;
    gap: 14px;
    width: min(390px, 100%);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: #f8ffff;
    background: rgba(22, 26, 34, 0.92);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

.login-card img {
    justify-self: center;
    width: 86px;
    height: 86px;
    object-fit: contain;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, #47d6d6, pink);
}

.login-card div {
    display: grid;
    gap: 4px;
    text-align: center;
}

.login-card strong {
    font-size: 1.35rem;
}

.login-card span {
    color: rgba(248, 255, 255, 0.7);
    font-size: 0.9rem;
}

.login-card label {
    display: grid;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.login-card input {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 0 12px;
    color: #f8ffff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.login-card input:focus {
    border-color: rgba(25, 245, 255, 0.9);
}

.login-card button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    color: #07151f;
    background: var(--green);
    font-weight: 950;
}

.login-error {
    margin: 0;
    border: 1px solid rgba(255, 120, 145, 0.42);
    border-radius: 8px;
    padding: 10px;
    color: #ffdbe3;
    background: rgba(180, 35, 66, 0.22);
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 1060px) {
    .files-layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .files-window.is-sidebar-hidden .files-layout {
        grid-template-columns: 0 minmax(0, 1fr);
    }

    .inspector {
        display: none;
    }

    .web-builder {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .builder-inspector {
        display: none;
    }
}

@media (max-width: 760px) {
    body {
        overflow: hidden;
    }

    .cloud-shell {
        padding: 20px 0 0;
    }

    .app-window {
        left: 10px !important;
        top: 10px !important;
        width: calc(100vw - 20px) !important;
        height: calc(100svh - 40px) !important;
        min-width: 0;
    }

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

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

    .ribbon-group,
    .ribbon-search,
    .ribbon input {
        width: 100%;
    }

    .ribbon-group {
        flex-wrap: wrap;
    }

    .files-layout,
    .files-window.is-sidebar-hidden .files-layout {
        grid-template-columns: 1fr;
    }

    .files-sidebar {
        max-height: 220px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.32);
    }

    .files-window.is-sidebar-hidden .files-sidebar {
        display: none;
    }

    .file-grid.is-details .file-card {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .file-grid.is-details .detail-size,
    .file-grid.is-details .detail-date {
        display: none;
    }

    .web-builder {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .builder-sidebar {
        max-height: 230px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.32);
    }

    .web-block-banner-cta,
    .web-block-footer-legal {
        grid-template-columns: 1fr;
    }

    .web-block h1 {
        font-size: clamp(1.7rem, 11vw, 3rem);
    }
}
