@import "https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap";
:root{--bg:#eef2f7;--card:#fff;--text:#0f172a;--muted:#64748b;--border:#e5e7eb;--topbar:#0a0a0a;--topbarText:#fff;--topbar-height:76px;--accent:#3b82f6;--accentHover:#2563eb;--table-header-bg:#e7eef9;--table-header-text:#64748b;--row-hover:#f7f9fc;--row-hover-soft:#f7f9fd;--sidebarBg:#f8fafc;--shadow:0 8px 24px #0f172a1f;--radius:4px;--danger:#b00020}*{box-sizing:border-box}html,body{margin:0;padding:0}body{color:var(--text);background:linear-gradient(#f4f6fb 0%,#eef2f7 100%);font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:13px}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}.badge{color:#51627a;background:#f3f6fb;border:1px solid #e1e7f2;border-radius:6px;align-items:center;gap:6px;padding:3px 8px;font-size:11px;display:inline-flex}.card{background:var(--card);border-radius:var(--radius);box-shadow:none;border:1px solid #eef1f6;padding:14px}.row{flex-wrap:wrap;gap:12px;display:flex}.btn{border:1px solid var(--border);cursor:pointer;box-shadow:none;background:#fff;border-radius:6px;height:36px;padding:8px 12px}.btn:hover{background:#f2f4f7}.btn:disabled{opacity:.6;cursor:not-allowed}.icon-btn{background:0 0;border:1px solid #0000;justify-content:center;align-items:center;width:32px;height:32px;padding:0;font-size:16px;display:inline-flex}.icon-btn:hover{background:#f5f7fb;border-color:#e2e8f0}.icon-btn--edit{color:#2563eb}.icon-btn--delete{color:#dc2626}.icon-btn--delete:disabled{color:#9ca3af}.tooltip{position:relative}.tooltip:after{content:attr(data-tooltip);color:#1f2937;white-space:normal;opacity:0;pointer-events:none;z-index:20;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;max-width:360px;margin-top:6px;padding:6px 8px;font-size:11px;font-weight:400;transition:opacity .15s,transform .15s;position:absolute;top:100%;left:0;transform:translateY(2px)}.tooltip--auto:after{width:var(--tooltip-width,360px);white-space:normal;max-width:640px;line-height:1.35}.tooltip:hover:after{opacity:1;transform:translateY(0)}.row-flash td{animation:1.6s ease-in-out row-flash}@keyframes row-flash{0%{background-color:#0000}25%{background-color:#3b82f638}50%{background-color:#0000}75%{background-color:#3b82f638}to{background-color:#0000}}.input,.select{border:1px solid var(--border);background:#fff;border-radius:6px;outline:none;height:36px;padding:8px 10px}.textarea{height:auto;min-height:9em;line-height:1.4}.input:focus,.select:focus{border-color:#a8b3ff;box-shadow:0 0 0 3px #1f5eff26}.table{border-collapse:collapse;width:100%}.table-fixed{table-layout:fixed;width:100%}.matrix-table{border-collapse:separate;border-spacing:0;width:100%}.matrix-table th,.matrix-table td{border:none}.matrix-header{position:relative;overflow:visible}.matrix-header-inner{align-items:center;height:100%;padding:0 10px;display:flex;position:relative}.matrix-header-active .matrix-header-inner{width:calc(100% + (var(--active-grow,5px)*2));height:calc(100% + (var(--active-grow,5px)*2));margin:calc(var(--active-grow,5px)*-1);padding:0 calc(10px + var(--active-grow,5px));background:var(--active-bg,#9dbcf0);color:#fff;z-index:10;border-radius:8px;box-shadow:0 8px 14px #0f172a29}.table th,.table td{vertical-align:top;border-bottom:1px solid #eef0f3;padding:8px}.table th{vertical-align:middle;text-align:left;color:var(--table-header-text);background:var(--table-header-bg);font-size:12px}.table tr:hover td{background:var(--row-hover)}.table-soft{border-collapse:separate;border-spacing:0 6px}.table-soft th{background:var(--table-header-bg);color:var(--table-header-text);z-index:1;border-bottom:none;padding:8px 10px;font-size:12px;position:sticky;top:0}.table-soft td{vertical-align:middle;background:#fff;border:none}.projects-table td{padding:4px 10px}.projects-table .icon-btn{width:28px;height:28px}.table-soft tr td:first-child{border-radius:6px 0 0 6px}.table-soft tr td:last-child{border-radius:0 6px 6px 0}.table-soft tr:hover td{background:var(--row-hover-soft)}.table-empty{color:var(--muted);background:#f7f9fd;border:none;border-radius:6px;padding:14px}.section{box-shadow:none;background:#fff;border:1px solid #e7ecf4;border-radius:6px;padding:14px}.section-title{font-size:14px;font-weight:700}.territory-editor{box-shadow:var(--shadow);border:1px solid #e7ecf4}.territory-section-title{color:#1f2937;margin-bottom:8px;font-size:13px;font-weight:700}.territory-panel{border:1px solid var(--border);background:#fafbfe;border-radius:8px;grid-template-rows:1fr 1fr;gap:10px;height:420px;padding:10px;display:grid}.territory-grid{grid-template-columns:1fr auto 1fr;gap:14px;display:grid}.territory-half{grid-template-rows:auto 1fr;gap:6px;min-height:0;display:grid}.territory-panel-title{color:#1f2937;font-weight:700}.territory-list{border:1px solid var(--border);background:#fff;border-radius:6px;height:100%;min-height:0;overflow:auto}.territory-row{cursor:pointer;padding:6px 8px}.territory-row:hover{background:#f5f7fb}.territory-row.selected{background:#3b82f626}.territory-code{width:80px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;display:inline-block}.territory-actions{align-content:center;justify-items:center;gap:10px;display:grid}.topbar{z-index:100;background:var(--topbar);color:var(--topbarText);border-bottom:1px solid #ffffff1f;position:sticky;top:0;box-shadow:0 2px 10px #0f172a1f}.topbar-inner{height:var(--topbar-height);grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:0 16px;display:grid}.topbar-brand{letter-spacing:3px;text-transform:uppercase;color:#fff;justify-content:center;justify-self:center;align-items:center;font-family:Bebas Neue,Helvetica Neue,Arial,Helvetica,sans-serif;font-size:28px;font-weight:400;display:flex}.topbar-brand-logo{width:auto;height:42px;display:block}.topbar-right{justify-self:end;align-items:center;gap:10px;display:flex}.topbar-logo{background:0 0;border-radius:6px;width:auto;height:48px;padding:0;display:block}.topbar-pill{color:#fff;background:#ffffff24;border:1px solid #ffffff2e;border-radius:999px;padding:6px 10px;font-size:12px}.shell{grid-template-columns:var(--sidebar-width,240px)1fr;align-items:start;gap:16px;padding:0 16px 0 0;display:grid}.sidebar{top:var(--topbar-height);background:var(--sidebarBg);box-shadow:var(--shadow);height:calc(100vh - var(--topbar-height));border:none;border-radius:0;flex-direction:column;align-self:stretch;display:flex;position:sticky;overflow:hidden}.nav{flex-direction:column;flex:auto;gap:0;padding:0;display:flex;overflow:auto}.sidebar-body{flex-direction:column;height:100%;padding-top:16px;display:flex}.sidebar-footer{text-align:center;background:0 0;border-top:1px solid #eef1f6;padding:10px}.nav-item{background:0 0;border:none;border-radius:0;justify-content:space-between;gap:10px;width:100%;padding:10px 14px;display:flex}.nav-item-project{padding-left:24px}.nav-item-strong{font-weight:700}.nav-item-folder{font-weight:500}.nav-item-folder-open{font-weight:700}.nav-toggle-indicator{color:var(--muted);font-weight:700}.nav-folder-sep{background:#e7ecf4;height:1px;margin:4px 12px}.nav-item:hover{background:#eef2f6;text-decoration:none}.nav-item.active{background:var(--accent);color:#fff;font-weight:800}.nav-left{align-items:center;gap:8px;min-width:0;display:flex}.nav-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.nav-sep{background:#d6dde8;height:1px;margin:6px 12px}.settings-shell{grid-template-columns:220px 1fr;gap:12px;height:100%;min-height:0;display:grid}.settings-sidebar{background:var(--sidebarBg);flex-direction:column;height:100%;display:flex;overflow:hidden;box-shadow:6px 0 18px #0f172a1f}.settings-sidebar-title{padding:12px 14px;font-weight:800}.settings-sidebar .nav{padding:6px 0 0}.settings-content{min-width:0;min-height:0;padding-right:12px;overflow:auto}.settings-general{gap:18px;display:grid}.settings-section-title{margin-bottom:6px;font-weight:800}.settings-section-note{color:var(--muted);margin-bottom:10px;font-size:12px}.theme-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;display:grid}.theme-card{cursor:pointer;text-align:left;background:#fff;border:1px solid #e5e7eb;border-radius:8px;flex-direction:column;gap:8px;padding:10px;transition:border-color .15s,box-shadow .15s,transform .15s;display:flex}.theme-card:hover{border-color:#cfd8e6;transform:translateY(-1px);box-shadow:0 6px 14px #0f172a14}.theme-card.active{border-color:var(--accent);box-shadow:0 8px 16px #2563eb2e}.theme-card-name{font-weight:700}.theme-swatch{grid-template-columns:1fr 1fr 1fr;gap:6px;display:grid}.theme-swatch span{border-radius:6px;height:20px}.logo-row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.logo-preview{background:#f7f9fd;border:1px dashed #d7deea;border-radius:8px;justify-content:center;align-items:center;width:200px;height:64px;padding:8px;display:flex}.logo-preview img{max-width:100%;max-height:100%;display:block}.logo-placeholder{color:var(--muted);font-size:12px}.logo-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.main{min-width:0;padding:16px 16px 16px 0;animation:.24s ease-out fade-in;position:relative}.page-info{z-index:20;position:absolute;top:16px;right:16px}.page-info-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:999px;justify-content:center;align-items:center;width:28px;height:28px;padding:0;font-weight:700;display:inline-flex}.page-info-btn:hover{background:var(--accentHover)}.page-info-popover{border:1px solid var(--border);min-width:220px;max-width:320px;color:var(--text);z-index:30;background:#fff;border-radius:8px;padding:10px 12px;font-size:12px;line-height:1.4;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 8px 24px #0f172a1f}.toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.tabs-shell{background:0 0;flex-direction:column;height:100%;display:flex}.tabs{gap:8px;margin-bottom:-1px;padding:0;display:flex}.tab{height:38px;color:var(--muted);background:#f7f9fd;border:1px solid #e1e7f0;border-bottom:none;border-radius:8px 8px 0 0;align-items:center;padding:0 18px;font-weight:600;display:inline-flex}.tab:hover{color:var(--text)}.tab.active{color:var(--text);background:#fff;border-color:#dbe3ef}.tabs-content{background:#fff;border:1px solid #e1e7f0;border-radius:0 8px 8px;flex:auto;min-height:0;padding:12px 16px 16px;box-shadow:0 1px #0f172a0a}.bulk-actions{justify-content:flex-start;gap:12px;margin-top:8px;margin-bottom:8px;padding-left:2px;display:flex}.btn-primary{background:var(--accent);color:#fff;border-color:#3b82f640}.btn-primary:hover{background:var(--accentHover)}.cookie-banner{z-index:9999;pointer-events:none;justify-content:center;display:flex;position:fixed;bottom:16px;left:16px;right:16px}.cookie-banner-card{pointer-events:auto;justify-content:space-between;align-items:center;gap:16px;width:100%;max-width:920px;padding:14px 16px;display:flex}.cookie-banner-title{margin-bottom:4px;font-weight:700}.cookie-banner-text{color:var(--text);font-size:12px;line-height:1.4}.cookie-banner-actions{flex-shrink:0;align-items:center;display:flex}@keyframes fade-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media (max-width:1100px){.shell{grid-template-columns:220px 1fr}}@media (max-width:960px){.shell{grid-template-columns:1fr;padding:0}.sidebar{top:var(--topbar-height);height:auto;box-shadow:none;border-bottom:1px solid #e9eef6;position:sticky}.sidebar-body{height:auto}.nav{flex-flow:row;padding:6px 8px;overflow-x:auto}.nav-item{border-left:none;border-radius:6px;flex:none;padding:8px 10px}.nav-item.active{border-left:none;border-bottom:2px solid var(--topbar);background:var(--topbar);color:#fff}.nav-sep{width:1px;height:24px;margin:0 8px}.sidebar-footer{text-align:center;border-top:none;padding:6px 8px 10px}.main{padding:12px}.topbar-inner{padding:0 12px}}@media (max-width:720px){body{font-size:12px}.topbar-brand{letter-spacing:1px;font-size:16px}.topbar-brand-logo{height:32px}.toolbar{flex-direction:column;align-items:stretch}.toolbar .input{width:100%!important}.tabs{gap:6px}.tab{height:34px;padding:0 12px}.tabs-content,.section{padding:10px}.btn{height:32px;padding:6px 10px}.input,.select{height:32px}.badge{font-size:10px}.table th,.table td{padding:8px}}
