:root {
    --navy: #071f45;
    --navy-2: #0c326c;
    --blue: #1677ff;
    --blue-2: #63a9ff;
    --teal: #14a38b;
    --bg: #f4f7fb;
    --surface: #ffffff;
    --text: #142033;
    --muted: #667085;
    --line: #dce4ee;
    --danger: #b42318;
    --success: #067647;
    --radius: 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.login-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 18%, rgba(22,119,255,.18) 0, transparent 30%),
        radial-gradient(circle at 88% 72%, rgba(20,163,139,.10) 0, transparent 28%),
        linear-gradient(145deg, #061a3b 0%, #0a376f 44%, #eef5ff 44.2%, #f7f9fc 100%);
}
.login-wrap { width: min(100% - 32px, 440px); }
.login-card {
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 22px;
    padding: 34px 38px 38px;
    box-shadow: 0 30px 90px rgba(3,23,52,.28);
    backdrop-filter: blur(12px);
}
.company-logo {
    min-height: 92px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #062458, #0b5bb6);
    box-shadow: 0 14px 36px rgba(10,85,174,.22);
}
.company-logo img {
    display: block;
    width: min(100%, 350px);
    height: auto;
    filter: drop-shadow(0 0 8px rgba(102,192,255,.68)) drop-shadow(0 0 22px rgba(32,130,255,.36));
}
.login-product { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 7px; color: var(--navy); }
.login-product span { font-size: 14px; font-weight: 850; letter-spacing: .15em; }
.login-product small { font-size: 11px; color: var(--muted); }
.login-card h1 { margin: 0 0 22px; text-align: center; font-size: 27px; letter-spacing: -.03em; }
form { display: grid; gap: 9px; }
label { margin-top: 8px; font-size: 13px; font-weight: 700; color: #344054; }
input, select, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 9px; padding: 11px 12px; background: #fff; color: var(--text); outline: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,119,255,.12); }
.login-card button { margin-top: 14px; width: 100%; padding: 12px 16px; border: 0; border-radius: 9px; background: linear-gradient(135deg, #0a66df, #1885ff); color: white; font-weight: 750; box-shadow: 0 8px 22px rgba(22,119,255,.20); }
.form-error { color: var(--danger); font-size: 13px; margin: 7px 0 0; }

.app-layout { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #071f45 0%, #0a3267 58%, #071f45 100%);
    color: white;
    padding: 18px 16px 24px;
    box-shadow: 12px 0 36px rgba(7,31,69,.08);
}
.sidebar-brand { display: block; text-decoration: none; padding: 0 4px 24px; }
.sidebar-brand img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 10px;
    display: block;
    filter: drop-shadow(0 0 7px rgba(109,197,255,.38));
}
.product-name { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 9px 0; color: #e9f3ff; font-weight: 850; letter-spacing: .10em; font-size: 12px; }
.product-name small { font-size: 10px; font-weight: 600; letter-spacing: 0; color: #9fb8d8; }
.sidebar nav { display: grid; gap: 6px; }
.nav-link { color: #d8e6f6; text-decoration: none; padding: 11px 12px; border-radius: 9px; font-size: 14px; font-weight: 650; transition: .16s ease; }
.nav-link:hover, .nav-link.active { color: white; background: rgba(51,131,230,.25); box-shadow: inset 0 0 0 1px rgba(133,194,255,.12); }
.sidebar-bottom { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 8px 0; }
.user-name { font-size: 13px; margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.user-name small { display: block; margin-top: 3px; color: #9fb0c5; font-size: 10px; font-weight: 500; }
.workspace { min-width: 0; padding: 30px clamp(20px, 4vw, 52px) 60px; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-header h1 { margin: 0; font-size: 30px; letter-spacing: -.03em; }

.welcome-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #082653 0%, #0a65c7 70%, #159f9c 130%);
    color: white;
    border-radius: 20px;
    padding: clamp(24px, 4vw, 42px);
    margin-bottom: 30px;
    box-shadow: 0 18px 44px rgba(16,64,122,.16);
}
.welcome-hero::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -70px; top: -90px; background: rgba(255,255,255,.09); box-shadow: 0 0 0 42px rgba(255,255,255,.04); }
.welcome-hero h2 { position: relative; z-index: 1; margin: 4px 0 8px; font-size: clamp(27px, 4vw, 40px); letter-spacing: -.04em; }
.welcome-hero p { position: relative; z-index: 1; max-width: 700px; color: #e7f2ff; margin: 0; line-height: 1.55; }
.eyebrow { text-transform: uppercase; font-size: 11px !important; letter-spacing: .13em; font-weight: 800; opacity: .78; margin: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 0 0 15px; }
.section-heading h2 { margin: 3px 0 0; font-size: 22px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 16px; }
.module-card {
    display: block;
    min-height: 210px;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 18px rgba(16,35,63,.05);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.module-card:hover { transform: translateY(-3px); border-color: #a9c8ef; box-shadow: 0 16px 38px rgba(16,55,100,.11); }
.module-card-top { display: flex; justify-content: space-between; align-items: center; }
.module-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: white; font-weight: 850; background: linear-gradient(135deg, #0b63d1, #1b8cff); box-shadow: 0 8px 20px rgba(22,119,255,.20); }
.module-badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; color: #067647; background: #e8f8f0; }
.module-badge.admin { color: #8b4b00; background: #fff0d5; }
.module-card h2 { margin: 18px 0 7px; font-size: 18px; }
.module-card p { color: var(--muted); min-height: 42px; line-height: 1.45; font-size: 13px; margin: 0 0 18px; }
.module-open { color: #0b66d6; font-size: 13px; font-weight: 800; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: 0 3px 14px rgba(16,35,63,.035); }
.panel h2 { margin: 0 0 16px; font-size: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.button { border: 0; border-radius: 8px; padding: 9px 13px; font-weight: 700; background: var(--blue); color: white; }
.button-secondary { background: #eaf0f8; color: var(--navy); }
.button-ghost { width: 100%; background: transparent; color: #d8e2ef; border: 1px solid rgba(255,255,255,.2); }
.button-danger { background: #fee4e2; color: var(--danger); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e8edf2; text-align: left; font-size: 14px; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #e8f5f2; color: var(--teal); }
.badge-off { background: #f2f4f7; color: #667085; }
.muted { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 36px 10px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab { border: 1px solid var(--line); background: white; color: var(--navy); border-radius: 999px; padding: 8px 12px; }
.tab.active { background: var(--navy); color: white; border-color: var(--navy); }
.setting-section { display: none; }
.setting-section.active { display: block; }
.field-help { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 9px; background: #eef4ff; color: #244b83; font-size: 13px; margin-bottom: 16px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.checkbox { width: auto; }

@media (max-width: 820px) {
    .login-page { background: linear-gradient(160deg, #071f45 0, #0a376f 26%, #f4f7fb 26.2%); }
    .app-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .sidebar-brand { max-width: 230px; }
    .sidebar nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .sidebar-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
    .button-ghost { width: auto; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .workspace { padding-top: 22px; }
}

/* v1.0.3 */
.sidebar-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.account-gear { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; text-decoration: none; color: #dcecff; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); font-size: 18px; transition: .16s ease; }
.account-gear:hover { color: #fff; background: rgba(76,153,245,.25); transform: rotate(12deg); }
.section-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-toolbar h2 { margin-bottom: 6px; }
.table-sub { color: var(--muted); font-size: 11px; margin-top: 3px; }
.row-actions { white-space: nowrap; text-align: right; }
.icon-action { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); margin-left: 4px; font-weight: 800; }
.icon-action:hover { border-color: #9bbbe2; background: #f3f7fc; }
.icon-action.danger { color: var(--danger); }
.mini-chip { display: inline-flex; padding: 3px 7px; margin: 1px 2px 1px 0; border-radius: 999px; font-size: 10px; font-weight: 750; background: #eef4ff; color: #245694; }
.badge-warn { background: #fff1d6; color: #8b4b00; }
.app-dialog { position: fixed; inset: 0; width: min(860px, calc(100vw - 28px)); max-height: calc(100vh - 30px); border: 0; padding: 0; background: transparent; z-index: 100; }
.app-dialog::backdrop { background: rgba(5,20,42,.58); backdrop-filter: blur(4px); }
.dialog-card { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.25); overflow: auto; max-height: calc(100vh - 30px); }
.compact-dialog { max-width: 520px; margin: auto; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.dialog-head h2 { margin: 2px 0 0; }
.dialog-close { border: 0; width: 34px; height: 34px; border-radius: 8px; background: #f1f4f8; color: #344054; font-size: 22px; line-height: 1; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.dialog-actions .form-error { margin-right: auto; }
.permission-box { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); background: #f8fafc; border-radius: 12px; margin-top: 16px; }
.permission-box label { margin: 0; font-weight: 650; }
.password-panel { max-width: 620px; }
.notice-warn { background: #fff5e6; color: #854d0e; }
.config-field-wide { grid-column: 1 / -1; }
.config-json { min-height: 300px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.45; white-space: pre; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 12px; }
.profile-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafcff; }
.profile-item small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.profile-item strong { font-size: 13px; font-weight: 700; word-break: break-word; }
@media (max-width: 820px) {
    .section-toolbar { flex-direction: column; }
    .sidebar-actions { grid-template-columns: auto auto; }
    .app-dialog { width: calc(100vw - 14px); }
}

/* v1.0.4 — formularzowe zestawy konfiguracji */
.config-set-group { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.config-set-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 8px 0 14px; }
.config-set-toolbar h3 { margin: 0 0 3px; font-size: 17px; }
.config-set-list { display: grid; gap: 14px; }
.config-set-card { border: 1px solid #d5e0ec; border-radius: 13px; background: #f9fbfd; padding: 16px; box-shadow: inset 3px 0 0 #91bce9; }
.config-set-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 13px; margin-bottom: 13px; border-bottom: 1px solid #e1e8f0; }
.config-set-head > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.config-set-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.config-set-head small { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.config-set-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #e7f1fd; color: #0b63d1; font-weight: 800; font-size: 12px; }
.config-field { min-width: 0; }
.config-field-wide { grid-column: 1 / -1; }
.config-check { display: flex; align-items: center; gap: 7px; min-height: 42px; }
.config-save-row { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.source-actions { display: grid; grid-template-columns: auto minmax(220px, 320px) auto; gap: 8px; align-items: end; }
.source-actions label { grid-column: 1 / -1; margin: 0; }
.password-policy-box { margin: 14px 0 18px; border: 1px solid #bfd8f4; border-radius: 10px; padding: 12px 14px; background: #f2f7fd; }
.password-policy-box p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; font-size: 13px; }
.password-expiry { font-size: 12px; line-height: 1.4; }
@media (max-width: 820px) {
    .config-set-toolbar, .config-set-head { align-items: stretch; flex-direction: column; }
    .source-actions { grid-template-columns: 1fr; width: 100%; }
    .source-actions label { grid-column: auto; }
}
.password-reminder-banner { margin: -6px 0 20px; padding: 11px 14px; border: 1px solid #f5d08a; border-radius: 10px; background: #fff7e6; color: #7a4a00; font-size: 13px; }
.password-reminder-banner a { font-weight: 800; color: #8b4b00; }
.badge-danger { background: #fee4e2; color: #b42318; }
.wide-dialog { width: min(900px, calc(100vw - 32px)); }

/* v1.1.1 — moduł projekty */
.grid-span-2 { grid-column: span 2; }
.button-ghost-light { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.page-size-box { display: grid; grid-template-columns: auto 90px; align-items: center; gap: 8px; }
.page-size-box label { margin: 0; }
.project-filters { display: grid; grid-template-columns: 110px 140px minmax(180px,1fr) 150px 150px minmax(160px,1fr) minmax(160px,1fr) auto auto; gap: 8px; align-items: end; margin-bottom: 14px; }
.project-filters input, .project-filters select { min-width: 0; }
.project-sortbar { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 10px 0 16px; border-top: 1px solid var(--line); }
.sort-chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: #fff; color: #43536a; font-size: 12px; font-weight: 700; }
.sort-chip.active { background: #e9f2ff; border-color: #9ec4ef; color: #0a5fca; }
.projects-list { display: grid; gap: 10px; }
.project-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 4px 14px rgba(16,35,63,.04); }
.project-line { padding: 13px 15px; }
.project-line-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(90deg,#f8fbff 0,#fff 72%); border-bottom: 1px solid #e9eef4; }
.project-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.project-number { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; font-weight: 900; color: #0a5fca; letter-spacing: .06em; }
.project-area { display: inline-flex; padding: 4px 7px; border-radius: 7px; background: #e8f5f2; color: #0b746d; font-size: 11px; font-weight: 850; }
.project-name { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-main-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.priority { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: #eef2f6; color: #475467; }
.priority-1 { background: #fee4e2; color: #b42318; }
.priority-2 { background: #fff0d5; color: #8b4b00; }
.priority-3 { background: #eaf1fb; color: #245694; }
.priority-4, .priority-5 { background: #f2f4f7; color: #667085; }
.status-new { background: #eef4ff; color: #244b83; }
.status-in_progress { background: #fff0d5; color: #8b4b00; }
.status-completed { background: #e8f8f0; color: #067647; }
.task-fraction { display: inline-flex; align-items: baseline; padding: 4px 8px; border-radius: 8px; background: #f5f7fa; color: #475467; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.task-fraction strong { color: #067647; font-size: 14px; }
.project-line-details { display: grid; grid-template-columns: repeat(3,minmax(160px,1fr)); gap: 9px 14px; background: #fcfdff; }
.project-detail { min-width: 0; }
.project-detail span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px; }
.project-detail code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #344054; }
.project-windows-paths { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.path-choice { text-align: left; border: 1px solid #d8e5f3; border-radius: 9px; background: #f7fbff; padding: 8px 10px; min-width: 0; }
.path-choice:hover { border-color: #8fb9e8; background: #eef6ff; }
.path-choice span { display: block; font-size: 10px; color: #51739a; font-weight: 800; margin-bottom: 3px; }
.path-choice code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #17375e; }
.project-description { grid-column: 1 / -1; color: var(--muted); font-size: 12px; padding-top: 2px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.pagination button:disabled { opacity: .45; cursor: default; }
@media (max-width: 1180px) {
    .project-filters { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .project-line-details { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
    .grid-span-2 { grid-column: auto; }
    .project-filters { grid-template-columns: 1fr 1fr; }
    .project-line-main { align-items: flex-start; flex-direction: column; }
    .project-main-meta { justify-content: flex-start; }
    .project-line-details, .project-windows-paths { grid-template-columns: 1fr; }
    .pagination { flex-direction: column; }
}

/* v1.1.1 — automatyczny folder projektu */
.project-folder-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}
.project-folder-preview > div { min-width: 0; }
.project-folder-preview span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.project-folder-preview code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
@media (max-width: 820px) {
    .project-folder-preview { grid-template-columns: 1fr; }
}

/* v1.1.2 — dialogi i soft-delete projektów */
.app-dialog {
    width: min(960px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    overflow-x: hidden;
}
.dialog-card {
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow: visible;
}
.wide-dialog {
    width: 100%;
    max-width: 100%;
}
.compact-dialog {
    width: min(520px, 100%);
    max-width: 100%;
    margin-inline: auto;
}
.dialog-grid > *, .dialog-card .grid-2 > *, .dialog-card .grid-3 > * { min-width: 0; }
.dialog-card input, .dialog-card select, .dialog-card textarea { max-width: 100%; min-width: 0; }
.dialog-actions { flex-wrap: wrap; }
.project-card-deleted { opacity: .72; border-style: dashed; }
.project-card-deleted .project-line-main { background: #f4f4f5; }
.project-card-deleted .project-number, .project-card-deleted .project-name { text-decoration: line-through; text-decoration-thickness: 1px; }
.project-deleted-info { grid-column: 1 / -1; padding: 8px 10px; border-radius: 8px; background: #fff1f0; color: #8f2520; font-size: 12px; }
@media (max-width: 620px) {
    .app-dialog { width: calc(100vw - 8px); max-width: calc(100vw - 8px); max-height: calc(100vh - 8px); }
    .dialog-card { padding: 16px; border-radius: 12px; }
    .dialog-actions { align-items: stretch; }
    .dialog-actions .button { flex: 1 1 100%; }
    .dialog-actions .form-error { flex: 1 1 100%; }
}
@media (min-width: 980px) {
    .wide-dialog .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wide-dialog .grid-span-2 { grid-column: 1 / -1; }
}
@media (max-width: 979px) {
    .wide-dialog .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .wide-dialog .grid-2 { grid-template-columns: 1fr; }
    .wide-dialog .grid-span-2 { grid-column: auto; }
}

/* v1.2.0 — dialogi bez wewnętrznego przewijania + zadania/Gantt */
.app-dialog { width: min(1240px, calc(100vw - 20px)); max-width: calc(100vw - 20px); max-height: calc(100vh - 16px); overflow-x: hidden; overflow-y: auto; }
.dialog-card.dialog-fit-content { display: flex; flex-direction: column; width: 100%; max-width: 100%; min-width: 0; overflow: visible; max-height: none; }
.dialog-body { min-width: 0; overflow: visible; }
.extra-wide-dialog { width: min(1180px, 100%); margin-inline: auto; }
.dialog-card .grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-span-3 { grid-column: 1 / -1; }
.dialog-card select[multiple] { min-height: 128px; }
.row-disabled { opacity: .62; }

.project-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.priority-badge { display:inline-flex; padding:4px 7px; border-radius:999px; background:#eef2f6; font-size:11px; font-weight:800; }
.path-copy { display:grid; grid-template-columns:1fr auto; gap:2px 10px; align-items:center; text-align:left; border:1px solid #d8e5f3; border-radius:9px; background:#f7fbff; padding:8px 10px; min-width:0; }
.path-copy small { grid-column:1 / -1; color:#51739a; font-weight:800; }
.path-copy code { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.path-copy span { color:#0a5fca; font-size:11px; font-weight:800; }
.project-task-zone { border-top:1px solid #dce5ef; background:#f8fbff; }
.task-zone-inner { padding:16px; }
.task-zone-toolbar,.foundation-section { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:14px; }
.task-zone-toolbar h3 { margin:0; }
.foundation-section { padding:12px 14px; border:1px solid #d9e6f3; border-radius:12px; background:#fff; align-items:flex-start; }
.file-button { position:relative; }
.task-file-list { display:flex; flex-wrap:wrap; gap:6px; margin-top:7px; }
.file-chip { display:inline-flex; align-items:center; gap:5px; padding:5px 8px; border:1px solid #d7e2ee; border-radius:8px; background:#fff; color:#245694; text-decoration:none; font-size:12px; }
.task-list { display:grid; gap:7px; margin-top:12px; }
.task-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 12px; border:1px solid #e0e7ef; border-radius:10px; background:#fff; }
.task-row-main { display:flex; align-items:center; gap:9px; flex-wrap:wrap; min-width:0; font-size:12px; }
.task-row-main strong { font-size:13px; }
.task-teaser { opacity:.58; background:#f5f6f8; }
.status-blocked { background:#f2f4f7; color:#667085; }
.status-cancelled { background:#fee4e2; color:#b42318; }
.gantt { margin:12px 0 16px; padding:12px; border:1px solid #d9e4ef; border-radius:12px; background:#fff; overflow:hidden; }
.gantt-title { font-size:12px; font-weight:800; color:#475467; margin-bottom:8px; }
.gantt-row { display:grid; grid-template-columns:minmax(120px,220px) minmax(180px,1fr) 90px; gap:8px; align-items:center; min-height:27px; }
.gantt-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.gantt-track { position:relative; height:13px; border-radius:999px; background:#edf1f5; overflow:hidden; }
.gantt-bar { position:absolute; top:1px; bottom:1px; border-radius:999px; background:#2c66c3; }
.gantt-bar.status-completed { background:#14847b; }
.gantt-bar.status-blocked { background:#98a2b3; }
.gantt-bar.status-in_progress { background:#d88a00; }
.gantt-deps { font-size:10px; color:#667085; }
.date-shortcuts { display:flex; gap:4px; flex-wrap:wrap; margin-top:5px; }
.date-shortcuts button { border:1px solid #d4dfeb; background:#f8fafc; border-radius:6px; padding:3px 6px; font-size:10px; }
.task-detail-summary { display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding:10px 12px; border-radius:10px; background:#f5f8fc; margin-bottom:12px; font-size:12px; }
.task-file-section,.task-result-section { padding:14px; border:1px solid #dde6ef; border-radius:12px; margin-top:14px; }
.task-file-section h3,.task-result-section h3 { margin:0 0 10px; font-size:15px; }
.timeline-details { margin-top:16px; border:1px solid #dde6ef; border-radius:10px; background:#fafcff; padding:10px 12px; }
.timeline-details summary { cursor:pointer; font-weight:800; color:#344054; }
.timeline { list-style:none; padding:8px 0 0; margin:0; display:grid; gap:7px; }
.timeline li { display:grid; grid-template-columns:150px minmax(130px,220px) minmax(100px,180px) 1fr; gap:8px; padding:7px 0; border-top:1px solid #e8edf3; font-size:11px; }
.timeline li small { overflow-wrap:anywhere; color:#667085; }

@media (max-width:900px){
  .dialog-card .grid-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid-span-3 { grid-column:1 / -1; }
  .gantt-row { grid-template-columns:120px 1fr 60px; }
  .timeline li { grid-template-columns:1fr 1fr; }
}
@media (max-width:620px){
  .dialog-card .grid-3 { grid-template-columns:1fr; }
  .grid-span-3 { grid-column:auto; }
  .task-zone-toolbar,.foundation-section,.task-row { align-items:stretch; flex-direction:column; }
  .gantt-row { grid-template-columns:1fr; }
  .gantt-deps { display:none; }
  .timeline li { grid-template-columns:1fr; }
}
/* v1.2.0 — alias klasy używanej przez aktualny renderer projektów */
.project-deleted { opacity: .72; border-style: dashed; }
.project-deleted .project-line-main { background: #f4f4f5; }
.project-deleted .project-number, .project-deleted .project-name { text-decoration: line-through; text-decoration-thickness: 1px; }

/* v1.2.1 — kompaktowy widok projektów i zadań */
.compact-toolbar { margin-bottom: 0; }
.project-create-collapsed #project-create-body[hidden] { display: none; }
.project-create-toggle { flex: 0 0 auto; }
#project-create-body { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.project-identity.project-details-toggle { appearance: none; border: 0; background: transparent; padding: 0; color: inherit; cursor: pointer; text-align: left; }
.project-identity.project-details-toggle:hover .project-name { color: var(--blue); }
.project-collapsible-details[hidden] { display: none; }
.path-open { display:grid; grid-template-columns:1fr auto; gap:2px 10px; align-items:center; text-align:left; border:1px solid #d8e5f3; border-radius:9px; background:#f7fbff; padding:8px 10px; min-width:0; cursor:pointer; }
.path-open:hover { border-color:#8fb9e8; background:#eef6ff; }
.path-open small { grid-column:1 / -1; color:#51739a; font-weight:800; }
.path-open code { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.path-open span { color:#0a5fca; font-size:11px; font-weight:800; }
.task-zone-toolbar > div { min-width:0; }
.task-row.task-blocked, .gantt-row-blocked { opacity:.56; filter:grayscale(.55); }
.task-row.task-teaser { opacity:.50; }
.task-detail-section, .timeline-details, .form-advanced { margin:12px 0; border:1px solid #dce5ef; border-radius:10px; background:#fbfdff; }
.task-detail-section > summary, .timeline-details > summary, .form-advanced > summary { cursor:pointer; padding:10px 12px; font-weight:800; color:#344054; }
.task-detail-section[open], .timeline-details[open], .form-advanced[open] { padding-bottom:12px; }
.task-detail-section[open] > :not(summary), .timeline-details[open] > :not(summary), .form-advanced[open] > :not(summary) { margin-left:12px; margin-right:12px; }
.advanced-grid { padding:4px 0 8px; }
.schedule-help { display:block; min-height:16px; }
.gantt-row-blocked .gantt-track { background:#e4e7ec; }
.gantt-row-blocked .gantt-bar { background:#98a2b3; }
@media (max-width: 820px) {
  .compact-toolbar { align-items:stretch; flex-direction:column; }
  .project-create-toggle { width:100%; }
}
.impersonation-banner { margin:-6px 0 18px; padding:11px 14px; border:1px solid #b8d3f4; border-radius:10px; background:#eef6ff; color:#17375e; font-size:13px; }

/* INFORSERV 1.3.0 — czytelna hierarchia projektu i pluginów-zadań */
.project-hierarchy-root {
    background: #f8fbff;
    border-color: #cfdeed;
}
.project-hierarchy-root > .project-line-main { background: #f5f9fd; }
.project-task-zone { background: #fbfdff; padding-left: 20px; }
.task-zone-inner { border-left: 2px solid #d9e6f3; padding-left: 18px; }
.task-create-buttons { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.task-list { display:grid; gap:8px; }
.task-row.task-hierarchy-item {
    /* Zadania są wcięte względem projektu, ale kolejne poziomy zależności
       delikatnie cofają się w lewo i nadal pozostają bezpośrednio pod rodzicem. */
    margin-left: max(8px, calc(30px - (var(--task-depth, 0) * 6px)));
    background:#f7fbff;
    border-color:#d6e4f2;
    box-shadow:0 2px 8px rgba(16,35,63,.035);
}
.task-row.task-hierarchy-item + .task-row.task-hierarchy-item { margin-top:2px; }
.task-row .task-plugin-label { color:#667085; font-weight:700; min-width:100%; }
.task-row.task-blocked { background:#f1f3f5; }
.task-row-actions { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.gantt-row { padding-left:max(4px, calc(18px - (var(--task-depth, 0) * 4px))); }
.gantt-row-blocked { background:rgba(152,162,179,.06); }
.config-collapsible { border:1px solid var(--line); border-radius:12px; padding:0; overflow:hidden; background:#fbfcfe; }
.config-collapsible > summary { cursor:pointer; padding:13px 15px; font-weight:800; color:var(--navy); background:#f3f7fb; }
.config-collapsible-body { padding:14px 15px 16px; }
.config-set-locked { box-shadow:inset 3px 0 0 #d9981e; }
.config-set-locked .config-set-head { background:rgba(255,244,222,.35); }
.source-file-picker { display:grid; gap:8px; max-height:240px; overflow:auto; border:1px solid var(--line); border-radius:10px; padding:10px; background:#fbfdff; }
.source-file-picker label { display:flex; gap:8px; align-items:flex-start; margin:0; font-weight:600; }
.source-file-picker input { width:auto; margin-top:2px; }
.permit-parcels { display:grid; gap:8px; }
.permit-parcel-row { display:grid; grid-template-columns:minmax(140px,.7fr) minmax(260px,2fr) auto; gap:8px; align-items:center; }
.permit-detail-list { display:grid; gap:7px; }
.permit-detail-list > div { display:flex; gap:12px; align-items:center; padding:8px 10px; border:1px solid var(--line); border-radius:9px; background:#fbfdff; }
.task-data-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:8px 0 14px; }
.task-data-grid > div { padding:10px; border:1px solid var(--line); border-radius:9px; background:#fbfdff; }
.task-data-grid span { display:block; color:var(--muted); font-size:11px; margin-bottom:4px; }
.requirements { display:flex; flex-wrap:wrap; gap:7px; margin:10px 0; }
.requirements span { padding:5px 8px; border-radius:999px; background:#f2f4f7; color:#667085; font-size:11px; font-weight:800; }
.requirements span.ok { background:#e8f5f2; color:#067647; }
@media (max-width: 820px) {
    .project-task-zone { padding-left:8px; }
    .task-zone-inner { padding-left:10px; }
    .task-row.task-hierarchy-item { margin-left:8px; }
    .permit-parcel-row,.task-data-grid { grid-template-columns:1fr; }
    .task-create-buttons { justify-content:flex-start; }
}

/* v1.4.0 — zwijane zestawy domen AD i wersje projektu */
.config-set-card-collapsible {
    border: 1px solid #d5e0ec;
    border-radius: 13px;
    background: #f9fbfd;
    box-shadow: inset 3px 0 0 #91bce9;
    overflow: hidden;
    padding: 0;
}
.config-set-card-collapsible > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-weight: 800;
    color: var(--navy);
    background: #f4f8fc;
}
.config-set-card-collapsible > summary::-webkit-details-marker { display: none; }
.config-set-card-collapsible > summary::after { content: "Rozwiń ▾"; color: var(--muted); font-size: 11px; font-weight: 700; }
.config-set-card-collapsible[open] > summary::after { content: "Zwiń ▴"; }
.config-set-collapsible-body { padding: 0 16px 16px; min-width: 0; overflow: visible; }
.config-set-collapsible-body .config-set-card { border: 0; box-shadow: none; padding: 0; background: transparent; }
.project-version-list { display: grid; gap: 8px; margin: 10px 0 14px; }
.project-version-list > div { min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdff; overflow-wrap: anywhere; }
.permit-parcel-row > * { min-width: 0; }
.permit-parcel-row .permit-authority { min-width: 0; }
@media (max-width: 1100px) {
    .permit-parcel-row { grid-template-columns: 1fr 1.4fr; }
    .permit-parcel-row .button { grid-column: 1 / -1; justify-self: start; }
}

/* v1.5.0 — kolejki terenowe, dokumentacja drzewiasta i rozliczenia */
.task-queue-panel { padding:0; overflow:hidden; }
.task-queue-panel > summary { cursor:pointer; padding:14px 16px; font-weight:850; color:var(--navy); background:#f5f8fc; }
#project-task-queues { padding:12px; }
.task-queue-list, #project-task-queues { display:grid; gap:8px; }
.task-queue-item { width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 12px; align-items:center; text-align:left; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#fbfdff; color:var(--text); }
.task-queue-item strong, .task-queue-item span { min-width:0; overflow-wrap:anywhere; }
.task-queue-item > span:not(.badge) { grid-column:1; color:var(--muted); font-size:11px; }
.task-queue-item .badge { grid-column:2; grid-row:1 / span 2; justify-self:end; }
.folder-chips { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 10px; }
.folder-chips code { padding:5px 8px; border:1px solid var(--line); border-radius:7px; background:#f5f8fc; font-size:11px; overflow-wrap:anywhere; }
.field-doc-upload { display:grid; grid-template-columns:minmax(180px,.8fr) minmax(260px,1.4fr) auto; gap:8px; align-items:end; margin:10px 0; }
.field-doc-upload > * { min-width:0; }
.task-file-list { display:flex; flex-wrap:wrap; gap:7px; }
.settlement-list { display:grid; gap:9px; }
.settlement-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 16px; align-items:center; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:#fbfdff; }
.settlement-item > div:first-child { min-width:0; }
.settlement-item > div:first-child span { display:block; margin-top:3px; color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.settlement-item > div:last-child { display:flex; gap:7px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.settlement-item select { width:auto; min-width:170px; }
.status-submitted_for_acceptance { background:#eef4ff; color:#244b83; }
.status-correction_required, .status-settlement_rejected { background:#fff1f0; color:#a43b32; }
.status-to_inventory { background:#edf7f5; color:#0b6e66; }
.status-to_settlement { background:#fff4df; color:#8a5900; }
.status-settled { background:#eaf7ef; color:#136b3c; }
@media (max-width:900px){
  .field-doc-upload,.settlement-item { grid-template-columns:1fr; }
  .settlement-item > div:last-child { justify-content:flex-start; }
  .task-queue-item { grid-template-columns:1fr; }
  .task-queue-item .badge { grid-column:1; grid-row:auto; justify-self:start; }
}

/* v1.5.2 — zależności Instalacji i rekalkulacja FS */
.dependency-visible { border:1px solid var(--line); border-radius:12px; padding:14px; background:#f8fafc; }
.dependency-visible h3 { margin:0 0 10px; font-size:15px; }
.dependency-visible select[multiple] { min-height:150px; }

/* v1.5.3 — konto użytkownika / aktywność */
.user-activity-details {
  margin-top: 1rem;
  border: 1px solid rgba(16, 47, 78, .16);
  border-radius: 12px;
  background: rgba(247, 251, 255, .82);
  overflow: hidden;
}
.user-activity-details > summary {
  cursor: pointer;
  padding: .8rem 1rem;
  user-select: none;
}
.user-activity-content { padding: 0 1rem 1rem; }
.user-activity-list { display: grid; gap: .55rem; }
.user-activity-item {
  padding: .65rem .8rem;
  border: 1px solid rgba(16, 47, 78, .12);
  border-radius: 10px;
  background: rgba(255,255,255,.88);
}
.local-login-status { margin: .55rem 0 .8rem; }

/* v1.6.0 — rekordy działek / punktów adresowych + mapa Leaflet */
.parcel-records { display:grid; gap:10px; margin:10px 0 14px; }
.parcel-record-row { border:1px solid var(--line); border-radius:12px; background:#fbfdff; padding:10px; min-width:0; }
.parcel-record-main { display:grid; grid-template-columns:minmax(190px,1fr) minmax(220px,1.35fr) auto auto; gap:9px; align-items:end; min-width:0; }
.parcel-record-main > * { min-width:0; }
.parcel-record-summary { display:flex; flex-direction:column; gap:2px; min-height:38px; justify-content:center; }
.parcel-record-summary strong,.parcel-record-summary span,.parcel-record-summary small { overflow-wrap:anywhere; }
.parcel-record-summary span,.parcel-record-summary small { color:var(--muted); font-size:11px; }
.parcel-permit-fields { display:grid; grid-template-columns:minmax(180px,.55fr) minmax(260px,1.45fr); gap:9px; margin-top:9px; align-items:start; }
.parcel-permit-fields > * { min-width:0; }
.parcel-extra { margin-top:9px; border-top:1px dashed var(--line); padding-top:8px; }
.parcel-extra > summary { cursor:pointer; color:var(--navy); font-weight:750; font-size:12px; }
.parcel-extra-grid { margin-top:9px; }
.parcel-map-dialog { width:min(1180px,96vw); max-width:none; }
.parcel-map-dialog .dialog-card { width:100%; max-width:none; }
.parcel-map-canvas { width:100%; height:65vh; min-height:420px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#eef3f7; }
.parcel-map-canvas .leaflet-popup-content { overflow-wrap:anywhere; }
.permit-detail-list > div.parcel-detail-row { display:grid; grid-template-columns:minmax(0,1fr) auto; }
.parcel-import-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:8px; }
@media (max-width:900px) {
  .parcel-record-main,.parcel-permit-fields { grid-template-columns:1fr; }
  .parcel-record-main .parcel-map,.parcel-record-main .parcel-remove { justify-self:start; }
  .parcel-map-canvas { min-height:340px; height:58vh; }
}

/* v1.6.3 — przywrócony, stale widoczny import punktów wyniku projektu */
.project-points-section .project-point-import {
  margin-top:12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8fbff;
}
.project-points-section .project-point-import h4 { margin:0 0 10px; font-size:14px; }
.project-points-section .project-point-import textarea { width:100%; min-height:180px; resize:vertical; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }

/* v1.6.7 — grupy rejestrowe działek */
.land-register-group{display:flex;align-items:flex-start;gap:7px;margin-top:4px;font-size:.86rem;line-height:1.3;color:#344054}
.register-group-swatch{display:inline-block;width:13px;height:13px;min-width:13px;border-radius:3px;border:1px solid rgba(17,24,39,.35);margin-top:2px}
.land-register-group-legend{display:grid;gap:4px;margin-top:10px;padding:10px 12px;border:1px solid #e4e7ec;border-radius:8px;background:#fff;font-size:.82rem;max-height:180px;overflow:auto}
.land-register-group-legend>div{display:flex;gap:7px;align-items:flex-start}
.project-map-version-control{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px;padding:9px 11px;border:1px solid #d0d5dd;border-radius:8px;background:#f9fafb}
.project-map-version-control label{display:flex;align-items:center;gap:8px;font-weight:600}
.project-map-version-control select{min-width:240px;max-width:420px}
.project-map-version-control [data-project-map-status]{flex:1;min-width:220px;margin:0}

/* v1.6.10 — busy/progress + czytelne wersje projektu */
.app-is-busy { cursor: progress; }
.app-busy-overlay { position: fixed; inset: 0; z-index: 20000; width:100vw; height:100vh; max-width:none; max-height:none; margin:0; border:0; display:grid; place-items:center; background:rgba(6,24,48,.42); backdrop-filter:blur(2px); padding:18px; }
.app-busy-overlay:not([open]) { display:none !important; }
.app-busy-overlay::backdrop { background:transparent; }
.app-busy-card { width: min(560px, calc(100vw - 28px)); display: grid; grid-template-columns: 38px 1fr; gap: 12px 14px; align-items: center; padding: 18px 20px 16px; background: #fff; border: 1px solid #d0d5dd; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.app-busy-spinner { width: 30px; height: 30px; border: 4px solid #dbe7f5; border-top-color: var(--blue); border-radius: 50%; animation: inforserv-spin .8s linear infinite; }
.app-busy-copy { min-width: 0; display: grid; gap: 3px; }
.app-busy-copy strong { font-size: 15px; color: var(--navy); }
.app-busy-copy > span:not(.app-busy-elapsed) { color: #475467; font-size: 13px; overflow-wrap: anywhere; }
.app-busy-elapsed { color: #667085; font-size: 11px; font-variant-numeric: tabular-nums; }
.app-busy-progress { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: 999px; background: #e7edf5; position: relative; }
.app-busy-progress span { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: inherit; background: var(--blue); animation: inforserv-busy-slide 1.15s ease-in-out infinite; }
.app-busy-overlay.is-determinate .app-busy-progress span { animation: none; transition: width .2s ease; }
@keyframes inforserv-spin { to { transform: rotate(360deg); } }
@keyframes inforserv-busy-slide { 0% { transform: translateX(-110%); } 55% { transform: translateX(205%); } 100% { transform: translateX(310%); } }

.project-version-records { display: grid; gap: 12px; margin: 10px 0 16px; }
.project-version-record { border: 1px solid #d9e1ec; border-radius: 12px; background: #fbfdff; overflow: hidden; }
.project-version-record-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 11px 13px; border-bottom: 1px solid #e8edf3; background: #f6f9fd; }
.project-version-record-head strong { font-size: 14px; color: var(--navy); }
.project-version-record-head span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.project-version-files { display: grid; }
.project-version-file-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; align-items: center; padding: 9px 13px; border-top: 1px solid #edf1f5; }
.project-version-file-row:first-child { border-top: 0; }
.project-version-file-row a { min-width: 0; color: #175cd3; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.project-version-file-row small { color: #667085; white-space: nowrap; }
.project-version-tag { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 999px; background: #eaf0f8; color: #344054; font-size: 10px; font-weight: 750; white-space: nowrap; }
.project-version-upload { margin-top: 14px; padding: 14px; border: 1px dashed #b8c7da; border-radius: 12px; background: #fcfdff; }
.project-version-picker { display: grid; grid-template-columns: minmax(140px,1fr) repeat(3,86px); gap: 10px; align-items: end; }
.project-version-picker .version-part label { display: block; margin-bottom: 5px; font-size: 11px; color: #667085; }
.project-version-picker .version-part select { width: 100%; }
.project-version-preview { margin-top: 10px; display: grid; gap: 6px; }
.project-version-preview-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 7px 9px; border: 1px solid #e3e8ef; border-radius: 8px; background: #fff; font-size: 12px; }
.project-version-preview-row strong { overflow-wrap: anywhere; }
.project-version-preview-row span { color: #475467; font-weight: 700; }
@media (max-width: 820px) {
  .project-version-picker { grid-template-columns: 1fr 1fr 1fr; }
  .project-version-picker > :first-child { grid-column: 1 / -1; }
  .project-version-file-row { grid-template-columns: 1fr auto; }
  .project-version-file-row small { grid-column: 1 / -1; }
}

/* v1.6.11 — widoczny status operacji również wewnątrz dialogu zadania */
.operation-inline-status { display:inline-flex; align-items:center; gap:8px; min-height:34px; padding:6px 10px; border-radius:8px; background:#eef6ff; color:#0b4a78; font-weight:600; }
.operation-inline-status[hidden] { display:none !important; }
.operation-inline-status::before { content:""; width:14px; height:14px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:inforserv-spin .8s linear infinite; }
@keyframes inforserv-spin { to { transform:rotate(360deg); } }
