/* Панель — стиль в духе FastPanel: тёмный сайдбар, светлый контент */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Roboto, Arial, sans-serif; background: #f0f2f5; color: #2b2f38; font-size: 14px; }

.layout { display: flex; min-height: 100vh; }

/* сайдбар */
.sidebar { width: 210px; background: #1b1e2b; color: #aab; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; overflow-y: auto; }
.sidebar .logo { padding: 20px; font-weight: 700; font-size: 18px; color: #fff; letter-spacing: 2px; border-bottom: 1px solid #ffffff14; }
.sidebar nav { flex: 1; padding: 12px 0; }
.sidebar nav a { display: block; padding: 11px 20px; color: #9aa0b5; text-decoration: none; border-left: 3px solid transparent; }
.sidebar nav a:hover { color: #fff; background: #ffffff08; }
.sidebar nav a.active { color: #fff; border-left-color: #15b4fc; background: #ffffff0d; }
.sidebar nav .system-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 0; padding: 11px 20px; border: 0; border-left: 3px solid transparent; border-bottom: 1px solid #425a786b; border-radius: 0; background: transparent; color: var(--theme-muted, #9aa0b5); font: inherit; text-align: left; box-shadow: none; }
.sidebar nav .system-toggle:hover, .sidebar nav .system-toggle.active { background: #283953; color: var(--theme-text, #fff); }
.sidebar nav .system-toggle.active { border-left-color: var(--theme-accent, #15b4fc); }
.sidebar nav .system-toggle:active { transform: none; }
.system-toggle svg { width: 18px; height: 18px; flex: 0 0 auto; transition: transform .22s ease; }
.sidebar-system.is-expanded .system-toggle svg { transform: rotate(180deg); }
.sidebar-system-slider { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.sidebar-system.is-expanded .sidebar-system-slider { grid-template-rows: 1fr; }
.sidebar-system-links { min-height: 0; overflow: hidden; background: #111b2955; }
.sidebar nav .sidebar-system-links a { padding-left: 34px; }
.sidebar-bottom { padding: 14px 20px; border-top: 1px solid #ffffff14; }
.sidebar-bottom a { color: #9aa0b5; text-decoration: none; }
.sidebar-bottom a:hover { color: #fff; }

/* контент */
.content { flex: 1; min-width: 0; margin-left: 210px; padding: 24px 28px; }
h1 { font-size: 20px; margin-bottom: 18px; font-weight: 600; }
h2 { font-size: 15px; margin-bottom: 12px; font-weight: 600; }

.card { background: #fff; border-radius: 8px; padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 1px 3px #0001; }
.card-danger { border: 1px solid #f3c2c2; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2 .card { margin-bottom: 0; }

/* таблицы */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; color: #8a90a2; padding: 8px 10px; border-bottom: 2px solid #eef0f4; }
td { padding: 10px; border-bottom: 1px solid #f0f2f6; }
tr:hover td { background: #fafbfd; }
.actions a { color: #15b4fc; text-decoration: none; font-weight: 500; }
.actions a:hover { text-decoration: underline; }
a.dirname { text-decoration: none; color: #15b4fc; }
a.dirname:hover { color: #232733; }
.muted { color: #9aa0b5; }
.badge { display: inline-block; background: #eef3fb; color: #2b5aa8; border-radius: 4px; padding: 3px 8px; margin: 2px; font-size: 12px; font-family: Consolas, monospace; }

/* формы */
input[type=text], input[type=password], select, textarea {
    padding: 8px 12px; border: 1px solid #d7dbe4; border-radius: 6px; font-size: 14px; background: #fff; color: #2b2f38;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #15b4fc; box-shadow: 0 0 0 2px #15b4fc22; }
textarea { width: 100%; font-family: Consolas, monospace; font-size: 13px; }
.inline-form { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.stack-form { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
button { padding: 8px 18px; background: #15b4fc; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; }
button:hover { background: #0e9fdd; }
button.danger { background: #e05563; }
button.danger:hover { background: #c93f4d; }
.switch { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.switch input { width: 16px; height: 16px; }

/* флеш-сообщения */
.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 14px; white-space: pre-wrap; font-size: 13px; }
.flash-ok { background: #e2f6e8; color: #1c7a38; border: 1px solid #b6e4c3; }
.flash-err { background: #fdeaea; color: #b0323c; border: 1px solid #f2c1c5; }

/* логи */
pre.log { background: #16181f; color: #c8d0e0; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 12px; line-height: 1.5; max-height: 70vh; overflow-y: auto; }

/* логин */
body.login-page { background: #1b1e2b; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: #fff; padding: 36px; border-radius: 12px; width: 340px; display: flex; flex-direction: column; gap: 14px; }
.login-box .logo { text-align: center; font-weight: 700; font-size: 20px; letter-spacing: 2px; }
.login-box button { padding: 10px; font-size: 15px; }

/* Mobile drawer: navigation overlays the page instead of narrowing it. */
.mobile-bar, .sidebar-backdrop, .sidebar-close { display: none; }
@media (max-width: 900px) {
    .grid2 { grid-template-columns: minmax(0, 1fr); }
    .mobile-bar { position: fixed; inset: 0 0 auto; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: #1b1e2b; color: #fff; z-index: 20; }
    .mobile-bar strong { font-size: 16px; letter-spacing: 2px; }
    .menu-toggle, .sidebar-close { width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid #ffffff30; border-radius: 6px; flex-shrink: 0; }
    .menu-toggle:hover, .sidebar-close:hover { background: #ffffff14; }
    .menu-toggle svg { width: 22px; height: 22px; display: block; }
    .sidebar { width: min(calc(50vw + 140px), 92.5vw); z-index: 50; transform: translateX(-100%); transition: transform .22s ease; overscroll-behavior: contain; }
    .sidebar .logo { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; font-size: 19px; }
    .sidebar .server-stats { padding-bottom: 6px !important; border-bottom: 1px solid #ffffff18; font-size: 13px !important; }
    .sidebar nav { padding: 4px 0; }
    .sidebar nav a { padding: 10px 20px 10px 28px; font-size: 17px; line-height: 1.25; border-bottom: 1px solid #ffffff12; }
    .sidebar nav .system-toggle { padding: 10px 20px 10px 28px; font-size: 17px; line-height: 1.25; }
    .sidebar nav .sidebar-system-links a { padding-left: 42px; }
    .sidebar-bottom { padding-left: 28px; font-size: 17px; }
    .sidebar-close { display: block; font-size: 26px; line-height: 1; }
    .sidebar-backdrop { display: block; position: fixed; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: #0007; z-index: 40; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease; }
    .sidebar-backdrop:hover { background: #0007; }
    body.sidebar-open { overflow: hidden; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-backdrop { opacity: 1; visibility: visible; }
    .content { margin-left: 0; padding: 74px 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .sidebar, .sidebar-backdrop, .sidebar-system-slider, .system-toggle svg { transition: none; }
}

/* Keep the file manager inside the page; use one card per entry on phones. */
.files-list { max-width: 100%; overflow-x: auto; margin: 12px 0; }
.files-card input[type=file], .files-card select { max-width: 100%; }
.files-card p, .files-card h2 { overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .files-card { padding: 16px; }
    .files-card .inline-form { max-width: 100%; margin-right: 0 !important; }
    .files-card .inline-form > input:not([type=hidden]) { min-width: 0; max-width: 100%; }
    .files-card input[type=file] { width: 100%; }
    .files-table, .files-table thead, .files-table tbody { display: block; width: 100%; }
    .files-table thead tr { display: block; }
    .files-table thead th { display: none; }
    .files-table thead th:first-child { display: flex; align-items: center; gap: 8px; width: auto !important; padding: 8px 0 12px; border: 0; text-transform: none; }
    .files-table thead th:first-child::after { content: "Выбрать все"; }
    .files-table input[type=checkbox] { width: 18px; height: 18px; }
    .files-table tbody tr { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 12px; margin-bottom: 12px; border: 1px solid #e1e5ed; border-radius: 8px; background: #f8f9fb; }
    .files-table td { display: block; min-width: 0; padding: 0; border: 0; white-space: normal !important; overflow-wrap: anywhere; }
    .files-table tr:hover td { background: transparent; }
    .files-table .file-select { grid-column: 1; }
    .files-table .file-name { grid-column: 2; font-size: 16px; font-weight: 600; }
    .files-table td[data-label] { grid-column: 2; font-size: 12px; }
    .files-table td[data-label]::before { content: attr(data-label) ": "; }
    .files-table .actions, .files-table .files-empty { grid-column: 1 / -1; }
    .files-table .actions:empty { display: none; }
    .files-table .actions input[type=text] { width: 100% !important; }
    .files-table .actions button { width: 100%; }
}

/* PHP settings: keep fields visible without scrolling the whole phone page. */
.php-table-wrap { max-width: 100%; overflow-x: auto; margin: 12px 0; }
.php-card p, .php-card code { overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .php-card { padding: 16px; }
    .php-table, .php-table tbody { display: block; width: 100%; }
    .php-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .php-table tbody tr { display: block; padding: 12px; margin-bottom: 12px; border: 1px solid var(--theme-line, #e1e5ed); border-radius: 8px; background: var(--theme-raised, #f8f9fb); box-shadow: inset 0 1px 5px #0002; }
    .php-table td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
    .php-table tr:hover td { background: transparent; }
    .php-table .php-setting-name { margin-bottom: 10px; font-size: 14px; }
    .php-table td[data-label="Сейчас"] { margin-bottom: 10px; }
    .php-table td[data-label]::before { content: attr(data-label) ": "; color: var(--theme-muted, #8a90a2); font-size: 12px; }
    .php-table td[data-label="Новое значение"]::before { display: block; margin-bottom: 6px; }
    .php-table .inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
    .php-table input[type=text] { width: 100% !important; }
    .php-table button { white-space: nowrap; }
}

/* FTP access: readable credentials and actions inside each mobile card. */
.ftp-table-wrap { max-width: 100%; overflow-x: auto; margin: 12px 0; }
.ftp-card p, .ftp-card code { overflow-wrap: anywhere; }
.ftp-connection { table-layout: fixed; }
.ftp-connection td { overflow-wrap: anywhere; vertical-align: top; }
.ftp-connection td:first-child { width: 32%; }

/* Component catalog shares the selected panel theme. */
.components-intro { margin-bottom: 18px; line-height: 1.5; }
.components-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; max-width: 1100px; }
.component-card { min-width: 0; margin-bottom: 0; }
.component-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.component-heading h2 { font-size: 20px; margin-bottom: 6px; }
.component-status { padding: 5px 8px; border: 1px solid var(--theme-line, #d7dbe4); border-radius: 6px; font-size: 12px; background: var(--theme-raised, #f8f9fb); }
.component-card p { line-height: 1.5; margin-bottom: 14px; overflow-wrap: anywhere; }
.component-features { padding-left: 20px; margin-bottom: 18px; line-height: 1.8; }
.component-card button { min-height: 42px; }
.component-card form label { display: block; margin: 0 0 8px; }
.component-card form input[type=text] { display: block; width: 100%; box-sizing: border-box; min-height: 48px; margin-bottom: 14px; }
.components-grid.components-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.component-disclosure .component-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.component-row h2 { min-width: 0; margin: 0; }
.component-row .component-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; margin: 0; padding: 4px 0; border: 0; border-radius: 0; background: transparent; color: var(--theme-text, #2b2f38); box-shadow: none; font: inherit; font-size: 18px; text-align: left; }
.component-toggle span { overflow-wrap: anywhere; }
.component-row .component-toggle:hover { background: transparent; color: var(--theme-accent, #15b4fc); }
.component-row .component-toggle:active { transform: none; box-shadow: none; }
.component-toggle svg { width: 18px; height: 18px; flex: 0 0 auto; transition: transform .22s ease; }
.component-disclosure.is-expanded .component-toggle svg { transform: rotate(180deg); }
.component-primary { min-width: 0; width: 112px; }
.component-primary form { margin: 0; }
.component-primary button, .component-primary .button-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin: 0; min-height: 44px; padding: 10px 12px; font-size: 14px; text-align: center; white-space: nowrap; }
.component-primary .component-installed:disabled { opacity: 1; color: var(--theme-ok, #91d9b0); background: var(--theme-raised, #f8f9fb); border: 1px solid var(--theme-line, #d7dbe4); box-shadow: none; cursor: default; }
.component-slider { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.component-disclosure.is-expanded .component-slider { grid-template-rows: 1fr; }
.component-details { min-height: 0; overflow: hidden; }
.component-details-content { padding-top: 18px; }
.component-details-content > :last-child { margin-bottom: 0; }
@media (max-width: 380px) {
    .component-disclosure .component-row { gap: 8px; }
    .component-row .component-toggle { font-size: 16px; gap: 6px; }
    .component-primary button, .component-primary .button-link { padding: 10px 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .component-slider, .component-toggle svg { transition: none; } }
.button-link { display: inline-block; padding: 10px 14px; background: linear-gradient(#78b6ff, #4d95f0); color: #081e37; font-weight: 600; border: 1px solid #79b6ff; border-radius: 6px; text-decoration: none; }
.component-chat-actions { display: grid; gap: 12px; }
.component-chat-actions .button-link { display: block; box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px; text-align: center; border-bottom-color: #1b4e93; box-shadow: 0 3px 0 #163a6b; }
.services-table td { overflow-wrap: anywhere; }
.sites-table td { overflow-wrap: anywhere; }
.sites-table .site-actions { display: grid; gap: 12px; }
.sites-table .site-admin { text-align: center; }
@media (max-width: 900px) {
    .sites-create-card, .sites-card { padding: 16px; }
    .sites-create-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
    .sites-create-form input[name=domain] { grid-column: 1 / -1; width: 100%; min-width: 0; min-height: 44px; }
    .sites-create-form select { width: 100%; min-width: 0; min-height: 44px; }
    .sites-create-form button { min-height: 44px; white-space: nowrap; }
    .sites-create-card p { line-height: 1.5; overflow-wrap: anywhere; }
    .sites-table, .sites-table tbody { display: block; width: 100%; }
    .sites-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .sites-table tbody tr { display: block; min-width: 0; padding: 12px; margin-bottom: 12px; border: 1px solid var(--theme-line, #e1e5ed); border-radius: 8px; background: var(--theme-raised, #f8f9fb); box-shadow: inset 0 1px 5px #0002; }
    .sites-table tbody tr:last-child { margin-bottom: 0; }
    .sites-table td { display: block; min-width: 0; padding: 8px 0; border: 0; }
    .sites-table tr:hover td { background: transparent; }
    .sites-table .site-domain { padding-top: 0; padding-bottom: 12px; font-size: 17px; }
    .sites-table td[data-label] { display: grid; grid-template-columns: minmax(0, 110px) minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--theme-line, #e1e5ed); }
    .sites-table td[data-label]::before { content: attr(data-label); font-size: 12px; color: var(--theme-muted, #8a90a2); }
    .sites-table .actions { padding-top: 12px; padding-bottom: 0; }
    .sites-table .site-manage { display: block; width: 100%; min-height: 44px; padding: 12px 14px; border: 1px solid #79b6ff; border-bottom-color: #1b4e93; border-radius: 6px; background: linear-gradient(#78b6ff, #4d95f0); color: #081e37; box-shadow: 0 3px 0 #163a6b; text-align: center; text-decoration: none; }
    .sites-table .site-manage:hover { background: linear-gradient(#8ac1ff, #63a3f5); }
    .sites-table .sites-empty { padding: 0; }
}
@media (max-width: 900px) {
    .services-card { padding: 16px; }
    .services-table, .services-table tbody { display: block; width: 100%; }
    .services-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .services-table tbody tr { display: block; min-width: 0; padding: 12px; margin-bottom: 14px; border: 1px solid var(--theme-line, #e1e5ed); border-radius: 8px; background: var(--theme-raised, #f8f9fb); box-shadow: inset 0 1px 5px #0002; }
    .services-table td { display: block; min-width: 0; padding: 8px 0; border: 0; }
    .services-table tr:hover td { background: transparent; }
    .services-table .service-name { padding-top: 0; padding-bottom: 4px; font-size: 17px; }
    .services-table .service-description { padding-top: 0; padding-bottom: 12px; line-height: 1.5; }
    .services-table td[data-label] { display: grid; grid-template-columns: minmax(0, 100px) minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--theme-line, #e1e5ed); }
    .services-table td[data-label]::before { content: attr(data-label); color: var(--theme-muted, #8a90a2); font-size: 12px; }
    .services-table td.actions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 10px; padding-bottom: 0; }
    .services-table td.actions::before { grid-column: 1 / -1; }
    .services-table .actions .inline-form { min-width: 0; width: 100%; margin: 0 !important; }
    .services-table .actions button { width: 100%; min-height: 44px; white-space: normal; }
}
@media (max-width: 900px) {
    .component-card { padding: 16px; }
    .component-card form button { width: 100%; }
    .ftp-card { padding: 16px; }
    .ftp-connection td { padding: 10px 6px; }
    .ftp-table, .ftp-table tbody { display: block; width: 100%; }
    .ftp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .ftp-table tbody tr { display: block; padding: 12px; margin-bottom: 12px; border: 1px solid var(--theme-line, #e1e5ed); border-radius: 8px; background: var(--theme-raised, #f8f9fb); box-shadow: inset 0 1px 5px #0002; }
    .ftp-table td { display: block; min-width: 0; padding: 10px 0; border: 0; overflow-wrap: anywhere; }
    .ftp-table tr:hover td { background: transparent; }
    .ftp-table .ftp-site-name { padding-top: 0; font-size: 16px; }
    .ftp-table td[data-label] { border-top: 1px solid var(--theme-line, #e1e5ed); }
    .ftp-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; font-size: 12px; color: var(--theme-muted, #8a90a2); }
    .ftp-table .copy-btn { margin-left: 8px; vertical-align: middle; }
    .ftp-table .actions { padding-bottom: 0; }
    .ftp-table .inline-form, .ftp-table .actions button { width: 100%; }
    .ftp-table .actions button { white-space: normal; }
    .ftp-table .ftp-empty { padding: 0; }
}

/* Separate admin and public languages at site creation. */
.sites-create-form { display: grid; grid-template-columns: minmax(0,1fr); }
.sites-create-form input[name=domain], .sites-create-form select[name=type], .sites-create-form button { grid-column: 1 / -1; width: 100%; }
.site-languages { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.site-languages > div { min-width: 0; }
.site-languages label { display: block; margin-bottom: 6px; font-size: 14px; }
.site-languages select { width: 100%; min-height: 44px; }
@media (max-width:360px) { .site-languages { grid-template-columns: minmax(0,1fr); } }

/* File editing and on-demand renaming. */
.files-table .fm-rename { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; vertical-align: middle; text-decoration: none; }
.files-table .actions a.fm-edit { color: #081e37; min-height: 44px; text-align: center; border-bottom-color: #1b4e93; box-shadow: 0 3px 0 #163a6b; }
.files-table .actions a.fm-edit:hover { background: linear-gradient(#8ac1ff, #63a3f5); }
.fm-rename-dialog { box-sizing: border-box; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 22px; border: 1px solid var(--theme-line, #425a78); border-radius: 12px; background: var(--theme-surface, #1c2739); color: var(--theme-text, #eef4ff); box-shadow: 0 8px 24px #0006; }
.fm-rename-dialog::backdrop { background: #0009; }
.fm-rename-dialog h2 { margin: 0 0 18px; overflow-wrap: anywhere; font-size: 20px; }
.fm-rename-dialog label { display: block; margin-bottom: 8px; }
.fm-rename-dialog input[type=text] { box-sizing: border-box; width: 100%; min-height: 44px; font-size: 16px; }
.fm-rename-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.fm-rename-actions button { min-height: 44px; }
@media (max-width: 900px) { .files-table .actions a.fm-edit { display: block; width: 100%; box-sizing: border-box; } }

/* Site selector with the green public-site button on its right. */
.files-site-selector { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.files-site-selector .files-site-form { margin: 0; min-width: 0; }
.files-site-selector select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; margin: 0; font-size: 16px; }
.files-site-selector .files-open-site { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; padding: 10px 12px; border: 1px solid #8bc7b6; border-bottom-color: #315e52; border-radius: 6px; background: linear-gradient(#a4d5c5, #78b8a5); color: #102f29; font-weight: 600; text-align: center; text-decoration: none; box-shadow: 0 3px 0 #244d42; white-space: nowrap; }
.files-site-selector .files-open-site:hover { background: linear-gradient(#b4dfd1, #8cc6b4); color: #102f29; }
.files-site-selector .files-open-site:active { transform: translateY(2px); box-shadow: 0 1px 0 #244d42; }
@media (max-width: 380px) { .files-site-selector { gap: 8px; } .files-site-selector .files-open-site { font-size: 14px; padding: 10px 8px; } }

/* Standalone breadcrumb row, with generous touch targets and no heading. */
.files-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
.files-breadcrumbs a { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 44px; min-width: 44px; max-width: 100%; padding: 8px 4px; font-size: 16px; overflow-wrap: anywhere; text-underline-offset: 3px; }
.files-breadcrumbs > span { color: var(--theme-muted, #b0c0d7); }

.files-site-selector .files-project-path { grid-column: 1 / -1; margin: 0; color: var(--theme-muted, #b0c0d7); font-size: 14px; overflow-wrap: anywhere; }
