:root {
    --new-canvas: #f9fafb;
    --new-surface: #ffffff;
    --new-surface-secondary: #f2f4f6;
    --new-surface-blue: #e8f3ff;
    --new-text-primary: #191f28;
    --new-text-secondary: #4e5968;
    --new-text-muted: #8b95a1;
    --new-border: #e5e8eb;
    --new-border-strong: #d1d6db;
    --new-brand: #0064ff;
    --new-accent: #3182f6;
    --new-accent-hover: #1b64da;
    --new-accent-deep: #194aa6;
    --new-accent-soft-hover: #d9ebff;
    --new-status-success-soft: #e6f8f3;
    --new-status-success: #00c896;
    --new-status-success-deep: #008a69;
    --new-status-warning: #fe9800;
    --new-status-error: #f04452;
    --new-shadow-card: 0 1px 3px rgba(25, 31, 40, 0.04);
    --new-shadow-menu: 0 8px 24px rgba(25, 31, 40, 0.08);
    --new-topbar-height: 76px;
    --new-bottom-nav-height: calc(68px + env(safe-area-inset-bottom, 0px));
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--new-canvas);
}

html:has(body.new-japan-page) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

body.new-toss {
    margin: 0;
    min-height: 100dvh;
    background: var(--new-canvas);
    color: var(--new-text-primary);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

.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;
}

.new-eyebrow {
    margin: 0 0 6px;
    color: var(--new-accent);
    font-size: 13px;
    font-weight: 700;
}

.new-login-page {
    display: grid;
    place-items: center;
    padding: 32px;
}

.new-login-shell {
    width: min(100%, 1120px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    gap: 64px;
    align-items: center;
}

.new-login-hero {
    min-width: 0;
}

.new-brand-mark,
.new-app-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--new-brand);
    color: var(--new-surface);
}

.new-login-hero h1 {
    margin: 0;
    color: var(--new-text-primary);
    font-size: clamp(40px, 6vw, 66px);
    line-height: 1.08;
    font-weight: 800;
}

.new-login-copy {
    max-width: 460px;
    margin: 20px 0 0;
    color: var(--new-text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.new-login-card {
    padding: 32px;
    border: 1px solid var(--new-border);
    border-radius: 16px;
    background: var(--new-surface);
    box-shadow: var(--new-shadow-card);
}

.new-login-card-header {
    margin-bottom: 28px;
}

.new-card-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--new-text-muted);
    font-size: 13px;
    font-weight: 700;
}

.new-login-card h2 {
    margin: 0;
    color: var(--new-text-primary);
    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
}

.new-form {
    display: grid;
    gap: 18px;
}

.input-group {
    min-width: 0;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    color: var(--new-text-secondary);
    font-size: 14px;
    font-weight: 700;
}

.input-field,
.chat-input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    outline: 0;
    background: var(--new-surface-secondary);
    color: var(--new-text-primary);
    font-size: 15px;
    transition: box-shadow 160ms ease, background-color 160ms ease;
}

.input-field::placeholder,
.chat-input::placeholder {
    color: var(--new-text-muted);
}

.input-field:focus,
.chat-input:focus {
    background: var(--new-surface);
    box-shadow: 0 0 0 2px var(--new-accent);
}

.input-field[readonly] {
    color: var(--new-text-muted);
}

.new-primary-button,
.action-button,
.send-btn,
.compact-save-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 96ms ease;
}

.new-primary-button,
.primary-btn,
.send-btn {
    background: var(--new-accent);
    color: var(--new-surface);
}

.new-primary-button:hover,
.primary-btn:hover,
.send-btn:hover {
    background: var(--new-accent-hover);
}

.new-primary-button:active,
.primary-btn:active,
.send-btn:active,
.secondary-btn:active,
.compact-save-btn:active {
    transform: scale(0.98);
}

.new-primary-button {
    width: 100%;
}

.compact-save-btn {
    background: var(--new-surface-blue);
    color: var(--new-accent-hover);
}

.compact-save-btn:hover {
    background: var(--new-accent-soft-hover);
}

.secondary-btn {
    background: var(--new-status-success-soft);
    color: var(--new-status-success-deep);
}

.secondary-btn:hover {
    background: var(--new-status-success);
    color: var(--new-surface);
}

.error-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(25, 31, 40, 0.28);
    backdrop-filter: blur(8px);
}

.error-popup {
    width: min(100%, 360px);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--new-shadow-menu);
    text-align: center;
}

.error-message {
    margin-bottom: 20px;
    color: var(--new-text-primary);
    font-size: 15px;
    line-height: 1.6;
}

.error-confirm-btn {
    min-width: 96px;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--new-accent);
    color: var(--new-surface);
    font-weight: 700;
}

.new-japan-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
}

.new-topbar {
    height: var(--new-topbar-height);
    margin-left: 0;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--new-border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
}

body:has(.sidebar.expanded) .new-topbar {
    margin-left: 0;
}

.new-topbar-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.new-topbar-title h1 {
    margin: 0;
    color: var(--new-text-primary);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.new-topbar-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-user-chip,
.new-version-chip,
.new-count-pill {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--new-surface-secondary);
    color: var(--new-text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.new-version-chip strong,
.new-count-pill span {
    color: var(--new-text-primary);
}

.new-main-content {
    height: calc(100dvh - var(--new-topbar-height) - var(--new-bottom-nav-height));
    min-height: 0;
    margin-left: 0;
    padding: 16px 28px;
    display: grid;
    grid-template-columns: minmax(260px, 0.88fr) minmax(300px, 1fr) minmax(340px, 1.12fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 16px;
    overflow: hidden;
}

body:has(.sidebar.expanded) .new-main-content {
    margin-left: 0;
}

.new-runway-panel,
.new-license-panel,
.new-command-panel,
.new-table-panel,
.new-chat-panel {
    min-width: 0;
    border: 1px solid var(--new-border);
    border-radius: 16px;
    background: var(--new-surface);
    box-shadow: var(--new-shadow-card);
}

.new-runway-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 0.74fr);
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
}

.new-runway-copy {
    min-width: 0;
}

.new-runway-copy h2 {
    margin: 0;
    color: var(--new-text-primary);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

.new-runway-copy p:last-child {
    margin: 4px 0 0;
    color: var(--new-text-secondary);
    font-size: 15px;
    line-height: 1.55;
}

.new-runway-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.new-runway-actions .action-button {
    min-height: 52px;
}

.new-left-stack {
    display: contents;
}

.new-license-panel {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    min-height: 148px;
    grid-template-columns: minmax(152px, 0.36fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    padding: 18px;
}

.new-license-panel-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-width: 0;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: var(--new-surface-blue);
}

.new-license-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--new-surface);
    color: var(--new-accent);
}

.new-license-panel-heading h2 {
    margin: 0;
    color: var(--new-text-primary);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.new-command-panel {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    min-height: 0;
    overflow: auto;
    padding: 20px 24px;
}

.new-table-panel {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.new-chat-panel {
    grid-column: 3 / 4;
    grid-row: 2 / 4;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px 24px;
}

.new-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.new-section-heading h2 {
    margin: 0;
    color: var(--new-text-primary);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
}

.new-icon-button {
    min-width: 82px;
    padding: 0 14px;
}

.new-license-metrics {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(96px, 0.56fr) minmax(250px, 1.72fr) minmax(88px, 0.52fr);
    align-items: stretch;
    gap: 10px;
}

.new-license-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--new-surface-secondary);
    color: var(--new-text-secondary);
    font-size: 13px;
}

.new-license-label {
    color: var(--new-text-muted);
    font-weight: 700;
}

.new-license-item strong {
    max-width: 100%;
    color: var(--new-text-primary);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    overflow-wrap: anywhere;
}

#license-period {
    font-size: 14px;
}

.new-license-separator {
    display: none;
}

.license-badge-small {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--new-surface);
    color: var(--new-text-secondary);
    font-size: 12px;
    font-weight: 800;
}

.license-badge-small.valid {
    color: var(--new-status-success-deep);
}

.license-badge-small.expired {
    color: var(--new-status-error);
}

.new-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 16px;
}

.new-vpn-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 16px;
}

.new-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.primary-btn.active {
    background: var(--new-accent-deep);
    color: var(--new-surface);
}

.primary-btn.active:hover {
    background: var(--new-accent-deep);
}

.secondary-btn.active {
    background: var(--new-status-success);
    color: var(--new-surface);
}

.secondary-btn.active:hover {
    background: var(--new-status-success-deep);
}

.action-button:disabled,
.send-btn:disabled,
.compact-save-btn:disabled {
    opacity: 0.72;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    display: inline-block;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: new-spin 700ms linear infinite;
}

@keyframes new-spin {
    to {
        transform: rotate(360deg);
    }
}

.new-table-heading {
    margin: 0;
    padding: 18px 20px 14px;
    flex: 0 0 auto;
}

.table-header {
    flex: 0 0 auto;
    border-top: 1px solid var(--new-border);
    border-bottom: 1px solid var(--new-border);
    background: var(--new-surface-secondary);
}

.table-columns,
.table-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) minmax(80px, 0.42fr);
    align-items: center;
    gap: 8px;
}

.table-columns {
    min-height: 44px;
    padding: 0 18px;
    color: var(--new-text-muted);
    font-size: 13px;
    font-weight: 800;
}

.table-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.table-row {
    min-height: 48px;
    padding: 0 18px;
    border-bottom: 1px solid var(--new-border);
    color: var(--new-text-primary);
    font-size: 14px;
    font-weight: 600;
}

.table-row:hover {
    background: var(--new-surface-blue);
}

.user-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--new-accent);
}

.PWD {
    color: var(--new-text-muted);
}

.status-display {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--new-border);
    border-radius: 16px;
    background: var(--new-surface-secondary);
    color: var(--new-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.new-chat-panel .status-display {
    min-height: 0;
}

.status-display:empty::before {
    content: "채팅이 아직 비어 있어요";
    margin: auto;
    color: var(--new-text-muted);
    font-size: 14px;
    font-weight: 700;
}

.status-line {
    display: flex;
    align-items: flex-end;
    padding: 0;
    border-bottom: 0;
    word-break: break-word;
}

.status-line.outgoing {
    justify-content: flex-end;
}

.message-bubble {
    max-width: min(76%, 560px);
    padding: 10px 12px;
    border: 1px solid var(--new-border);
    border-radius: 18px 18px 18px 6px;
    background: var(--new-surface);
    color: var(--new-text-primary);
    box-shadow: var(--new-shadow-card);
}

.status-line.outgoing .message-bubble {
    border: 0;
    border-radius: 18px 18px 6px 18px;
    background: var(--new-accent);
    color: var(--new-surface);
}

.message-sender {
    display: block;
    margin-bottom: 3px;
    color: var(--new-text-muted);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
}

.status-line.outgoing .message-sender {
    color: var(--new-surface);
    opacity: 0.78;
}

.message-text {
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px;
    border: 1px solid var(--new-border);
    border-radius: 16px;
    background: var(--new-surface-secondary);
}

.message-composer .chat-input {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--new-surface);
}

.send-btn {
    width: 48px;
    min-width: 48px;
    min-height: 44px;
    padding: 0;
    border-radius: 12px;
    font-size: 16px;
}

.notification {
    position: fixed;
    right: 24px;
    top: 24px;
    z-index: 4000;
    max-width: min(420px, calc(100vw - 48px));
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--new-border);
    border-radius: 12px;
    background: var(--new-surface);
    color: var(--new-text-primary);
    box-shadow: var(--new-shadow-menu);
    font-size: 14px;
    font-weight: 700;
}

.notification.error {
    color: var(--new-status-error);
}

.notification.warning {
    color: var(--new-status-warning);
}

.notification.info {
    color: var(--new-accent);
}

.notification-close-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: var(--new-surface-secondary);
    color: var(--new-text-secondary);
}

.sidebar,
.sidebar.collapsed,
.sidebar.expanded {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: var(--new-bottom-nav-height);
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--new-border);
    border-right: 0;
    box-shadow: 0 -8px 24px rgba(25, 31, 40, 0.06);
    backdrop-filter: blur(16px);
    transition: none;
}

.sidebar-toggle {
    display: none !important;
}

.sidebar-content {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px max(14px, calc((100vw - 760px) / 2)) calc(6px + env(safe-area-inset-bottom, 0px));
    scrollbar-width: none;
}

.sidebar-content::-webkit-scrollbar {
    display: none;
}

.sidebar-user-card {
    display: none !important;
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid var(--new-border);
    border-radius: 12px;
    background: var(--new-surface-secondary);
}

.sidebar.expanded .sidebar-user-card {
    display: none !important;
}

.user-card-avatar {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--new-surface-blue);
    color: var(--new-accent);
}

.user-card-name {
    color: var(--new-text-primary);
    font-size: 15px;
    font-weight: 800;
}

.user-card-license {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.license-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--new-text-secondary);
    font-size: 12px;
}

.license-label {
    color: var(--new-text-muted);
}

.license-value {
    color: var(--new-text-primary);
    font-weight: 700;
    text-align: right;
}

.license-badge {
    padding: 2px 8px;
    border-radius: 8px;
    background: var(--new-surface);
    color: var(--new-text-secondary);
    font-size: 11px;
    font-weight: 800;
}

.license-badge.valid {
    color: var(--new-status-success-deep);
}

.license-badge.expired {
    color: var(--new-status-error);
}

.sidebar-nav {
    min-width: 0;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-nav-section {
    display: contents;
}

.sidebar-nav-section + .sidebar-nav-section {
    padding: 0;
    border: 0;
}

.sidebar-nav-section-title {
    display: none !important;
    padding: 0 12px;
    color: var(--new-text-muted);
    font-size: 12px;
    font-weight: 800;
}

.sidebar.expanded .sidebar-nav-section-title {
    display: none;
}

.sidebar-nav-item,
.sidebar-logout-btn {
    min-width: 78px;
    min-height: 54px;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--new-text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    transition: background-color 160ms ease, color 160ms ease;
}

.sidebar.expanded .sidebar-nav-item,
.sidebar.expanded .sidebar-logout-btn {
    justify-content: center;
}

.sidebar-nav-item:hover,
.sidebar-logout-btn:hover {
    background: var(--new-surface-secondary);
    color: var(--new-text-primary);
}

.sidebar-nav-item.active {
    background: var(--new-surface-blue);
    color: var(--new-accent-hover);
}

.nav-icon {
    width: 20px;
    font-size: 17px;
    text-align: center;
}

.sidebar.collapsed .nav-text,
.sidebar.expanded .nav-text,
.sidebar .nav-text-full,
.sidebar.collapsed .nav-text-full,
.sidebar.expanded .nav-text-full {
    display: block;
}

.sidebar .nav-text-short,
.sidebar.collapsed .nav-text-short,
.sidebar.expanded .nav-text-short {
    display: none;
}

.sidebar-footer {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.sidebar-logout-btn {
    width: auto;
}

@media (max-width: 980px) {
    .new-login-shell {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .new-main-content {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        align-content: start;
        height: calc(100dvh - var(--new-topbar-height) - var(--new-bottom-nav-height));
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .new-runway-panel {
        grid-template-columns: 1fr;
    }

    .new-left-stack,
    .new-license-panel,
    .new-command-panel,
    .new-table-panel,
    .new-chat-panel {
        grid-column: 1 / 2;
        grid-row: auto;
    }

    .new-command-panel {
        min-height: 280px;
    }

    .new-table-panel {
        min-height: 280px;
    }

    .new-chat-panel {
        min-height: 360px;
    }

    .new-japan-page {
        overflow: hidden;
    }
}

@media (min-width: 981px) and (max-height: 840px) {
    .new-main-content {
        padding: 14px 28px;
    }

    .new-runway-panel {
        padding: 14px 20px;
    }

    .new-command-panel,
    .new-license-panel,
    .new-chat-panel {
        padding: 16px 20px;
    }

    .new-license-panel {
        min-height: 136px;
    }

    .new-chat-panel .status-display {
        min-height: 0;
    }

    .chat-form {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    :root {
        --new-topbar-height: 70px;
        --new-bottom-nav-height: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .new-login-page {
        padding: 20px;
    }

    .new-login-card {
        padding: 24px;
    }

    .new-topbar {
        height: var(--new-topbar-height);
        min-height: 0;
        margin-left: 0;
        padding: 10px 16px;
    }

    body:has(.sidebar.expanded) .new-topbar {
        margin-left: 0;
    }

    .new-topbar-meta {
        display: none;
    }

    .new-main-content,
    body:has(.sidebar.expanded) .new-main-content {
        height: calc(100dvh - var(--new-topbar-height) - var(--new-bottom-nav-height));
        min-height: 0;
        margin-left: 0;
        padding: 14px 16px;
    }

    .new-runway-panel,
    .new-license-panel,
    .new-command-panel,
    .new-chat-panel {
        padding: 18px;
    }

    .new-license-panel {
        min-height: 324px;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 12px;
    }

    .new-license-panel-heading {
        min-height: 68px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 12px;
    }

    .new-license-metrics {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        justify-content: flex-start;
        gap: 8px;
    }

    .new-license-item {
        min-height: 58px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
    }

    .new-license-item strong {
        justify-self: end;
        text-align: right;
    }

    .new-license-separator {
        display: none !important;
    }

    .new-command-panel {
        min-height: 320px;
    }

    .new-table-panel {
        min-height: 240px;
    }

    .new-chat-panel {
        min-height: 320px;
    }

    .new-runway-copy h2 {
        font-size: 21px;
    }

    .new-form-grid,
    .new-vpn-grid,
    .new-action-row,
    .new-runway-actions {
        grid-template-columns: 1fr;
    }

    .chat-form {
        grid-template-columns: minmax(0, 1fr) 48px;
    }

    .sidebar,
    .sidebar.collapsed,
    .sidebar.expanded {
        inset: auto 0 0 0;
        width: 100%;
        height: var(--new-bottom-nav-height);
        border-right: 0;
        border-top: 1px solid var(--new-border);
    }

    .sidebar-toggle,
    .sidebar-user-card,
    .sidebar-nav-section-title {
        display: none !important;
    }

    .sidebar-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
        overflow-x: auto;
        overflow-y: hidden;
    }

    .sidebar-nav {
        flex: 0 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    .sidebar-nav-section,
    .sidebar-nav-section + .sidebar-nav-section {
        display: contents;
        border: 0;
        padding: 0;
    }

    .sidebar-nav-item,
    .sidebar.collapsed .sidebar-nav-item,
    .sidebar.expanded .sidebar-nav-item,
    .sidebar-logout-btn,
    .sidebar.collapsed .sidebar-logout-btn,
    .sidebar.expanded .sidebar-logout-btn {
        min-height: 52px;
        min-width: 68px;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        padding: 4px 8px;
        border-radius: 10px;
        font-size: 10px;
    }

    .sidebar-footer {
        padding: 0;
        margin: 0;
    }

    .sidebar.collapsed .nav-text,
    .sidebar.expanded .nav-text,
    .sidebar .nav-text-full,
    .sidebar.collapsed .nav-text-full,
    .sidebar.expanded .nav-text-full {
        display: block;
    }

    .sidebar .nav-text-short,
    .sidebar.collapsed .nav-text-short,
    .sidebar.expanded .nav-text-short {
        display: none;
    }
}
