:root{
  --navy:#0b355d;--navy-deep:#082a4a;--blue:#1284d6;--blue-soft:#eaf6ff;--teal:#1ba9a7;
  --green:#38b85a;--green-dark:#209b44;--green-soft:#eaf9ee;--yellow:#ffca31;--yellow-soft:#fff8df;
  --red:#ff5b5f;--red-soft:#fff0f1;--ink:#10365b;--muted:#67849f;--line:#d8e7f1;--canvas:#f3f8fc;
  --white:#fff;--radius:12px;--radius-lg:18px;--shadow:0 8px 30px rgba(33,84,121,.08);--shadow-soft:0 3px 12px rgba(33,84,121,.08);
  --sidebar:248px;--topbar:72px;
}
*{box-sizing:border-box}
html{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--canvas);-webkit-font-smoothing:antialiased}
body{margin:0;min-height:100vh;font-size:14px}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
img{max-width:100%}.icon{width:20px;height:20px;display:block;flex:0 0 auto}
h1,h2,h3,p{margin-top:0}h1{font-size:29px;line-height:1.15;letter-spacing:-.035em;margin-bottom:7px}h2{font-size:17px;letter-spacing:-.015em;margin-bottom:0}h3{font-size:14px;margin:0}p{color:var(--muted);line-height:1.5}
.eyebrow{display:block;color:var(--teal);font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;margin-bottom:8px}
.brand{display:flex;align-items:center;gap:8px;font-weight:800;white-space:nowrap}.brand__bird{width:46px;height:46px;object-fit:contain}.brand__word{font-size:22px;letter-spacing:-.045em}.brand__word b{color:#1377bd}.brand__word strong{color:#45b94f}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);z-index:40;background:linear-gradient(180deg,var(--navy),var(--navy-deep));color:#dceeff;padding:17px 14px 13px;display:flex;flex-direction:column;box-shadow:8px 0 28px rgba(6,39,70,.14)}
.brand--sidebar{height:50px;padding:0 10px 14px;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:13px}.brand--sidebar .brand__bird{width:42px;height:42px}.brand--sidebar .brand__word{font-size:21px}
.sidebar__nav{display:flex;flex-direction:column;gap:3px;overflow:auto;padding-right:2px;scrollbar-width:none}.nav-item{display:flex;align-items:center;gap:13px;min-height:42px;padding:0 13px;border-radius:9px;font-size:13px;font-weight:560;color:#c5dbed;transition:.18s ease}.nav-item .icon{width:18px;color:#61bde8}.nav-item:hover{background:rgba(255,255,255,.07);color:white}.nav-item.is-active{background:linear-gradient(90deg,#2fb355,#53ca69);color:white;box-shadow:0 6px 15px rgba(26,177,75,.22)}.nav-item.is-active .icon{color:white}
.sidebar__footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);padding:14px 11px 2px;display:flex;align-items:center;justify-content:space-between;color:#8fb1cc;font-size:11px}.sidebar__footer small{font-size:9px}
.workspace{margin-left:var(--sidebar);min-height:100vh}.topbar{position:sticky;top:0;z-index:30;height:var(--topbar);background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 25px;gap:18px}
.menu-toggle,.brand--mobile{display:none}.icon-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:1px solid transparent;background:transparent;border-radius:9px;cursor:pointer;color:#52748f}.icon-button:hover{background:var(--blue-soft);color:var(--blue)}.icon-button--danger{color:var(--red)}.notification-dot{position:absolute;right:8px;top:7px;width:6px;height:6px;border-radius:50%;background:var(--red);border:1.5px solid white}
.search{height:37px;width:min(330px,34vw);display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:9px;background:#f9fcfe;padding:0 11px;color:#8aa2b7}.search .icon{width:16px}.search input{width:100%;border:0;outline:0;background:transparent;font-size:12px}.topbar__right{margin-left:auto;display:flex;align-items:center;gap:9px}.user-chip{display:flex;align-items:center;gap:9px;padding:3px 12px 3px 4px;border-left:1px solid var(--line)}.user-chip>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--blue);color:white;font-size:12px;font-weight:800}.user-chip div{display:grid;line-height:1.2}.user-chip b{font-size:12px}.user-chip small{font-size:10px;color:var(--muted);margin-top:3px}
.content{max-width:1500px;margin:0 auto;padding:24px 26px 42px}.flash{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;border-radius:10px;margin-bottom:16px;border:1px solid;font-weight:650}.flash--success{background:var(--green-soft);border-color:#bcebc9;color:#1b8839}.flash--error{background:var(--red-soft);border-color:#ffd0d2;color:#c83b40}.flash button{border:0;background:transparent;font-size:20px;color:inherit;cursor:pointer}
.dashboard-hero{position:relative;min-height:95px;display:flex;align-items:center;overflow:hidden;padding:4px 18px 9px 2px;margin-bottom:14px;background:linear-gradient(100deg,transparent 28%,rgba(255,244,155,.3) 55%,rgba(123,219,244,.22) 100%);border-radius:var(--radius-lg)}.dashboard-hero h1{margin:0 0 3px}.dashboard-hero p{font-size:12px;margin:0}.dashboard-hero .eyebrow{margin-bottom:4px}.hero-bird{position:absolute;right:18%;bottom:-54px;width:188px;height:188px;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(33,91,133,.18))}.hero-date{margin-left:auto;margin-right:12px;display:grid;text-align:right;position:relative;z-index:1}.hero-date span{font-size:11px;color:var(--muted)}.hero-date b{font-size:14px;margin-top:3px}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:14px}.stat-card{min-height:102px;background:white;border:1px solid var(--line);box-shadow:var(--shadow-soft);border-radius:var(--radius);padding:15px 16px;display:flex;align-items:center;gap:13px}.stat-icon{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;color:white;flex:0 0 auto}.stat-icon .icon{width:21px}.stat-icon--blue{background:linear-gradient(145deg,#20b1c4,#168ad3)}.stat-icon--green{background:linear-gradient(145deg,#54cc72,#31a94f)}.stat-icon--yellow{background:linear-gradient(145deg,#ffd449,#f2ae18)}.stat-icon--red{background:linear-gradient(145deg,#ff7875,#f8494e)}.stat-card div{display:grid}.stat-card small{font-size:11px;color:#496982}.stat-card strong{font-size:24px;letter-spacing:-.04em;margin:1px 0}.stat-card p{font-size:10px;margin:0;line-height:1.2}
.dashboard-grid{display:grid;grid-template-columns:1.28fr .92fr 1.08fr;gap:14px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-soft)}.panel__header{min-height:52px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8f0f5}.panel__header>div{display:flex;align-items:center;gap:8px}.section-kicker{width:4px;height:16px;background:var(--blue);border-radius:4px}.button{height:39px;border:1px solid var(--line);border-radius:8px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:750;cursor:pointer;background:white;transition:.18s ease}.button .icon{width:16px}.button:hover{transform:translateY(-1px);box-shadow:var(--shadow-soft)}.button--primary{background:linear-gradient(100deg,var(--green-dark),#3fc367);color:white;border-color:transparent;box-shadow:0 5px 13px rgba(31,166,71,.16)}.button--ghost{background:#f8fbfd}.button--small{height:32px;font-size:10px;padding:0 11px}.button--large{height:46px;padding:0 22px;font-size:13px}.button:disabled{opacity:.45;cursor:not-allowed;transform:none}
.bird-list,.activity-list{padding:9px}.bird-row{display:grid;grid-template-columns:42px minmax(90px,1fr) 24px 70px auto;align-items:center;gap:9px;padding:7px 8px;border:1px solid #e1ecf3;border-radius:9px;margin-bottom:7px;transition:.16s ease}.bird-row:hover{border-color:#b9dced;background:#fbfdff;transform:translateX(2px)}.bird-avatar{width:40px;height:40px;border-radius:9px;background:linear-gradient(145deg,#eaf7ff,#eef8e9);overflow:hidden}.bird-avatar img{width:100%;height:100%;object-fit:cover}.bird-main{display:grid;min-width:0}.bird-main b{font-size:12px}.bird-main small{font-size:9px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:3px}.sex{font-weight:900;font-size:17px}.sex--male{color:#1682d2}.sex--female{color:#f24a61}.bird-date{font-size:9px;color:var(--muted)}.status{display:inline-flex;width:max-content;align-items:center;justify-content:center;padding:4px 8px;border-radius:6px;font-size:9px;font-weight:750}.status--healthy,.status--active{background:var(--green-soft);color:#209643}.status--observation,.status--breeding,.status--rearing{background:var(--yellow-soft);color:#c68b00}.status--treatment,.status--deceased{background:var(--red-soft);color:#d64146}.status--inactive{background:#eef3f7;color:#71889b}.panel-link{display:block;margin:0 9px 9px;padding:10px;text-align:center;background:#eff8fe;border:1px solid #d9ecf8;border-radius:8px;color:#29648e;font-size:10px;font-weight:700}
.activity-row{display:grid;grid-template-columns:34px 1fr auto;gap:9px;align-items:center;padding:10px 7px;border-bottom:1px solid #edf3f6}.activity-row:last-child{border-bottom:0}.activity-row>span{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--blue-soft);color:var(--blue)}.activity-row .icon{width:16px}.activity-row div{display:grid}.activity-row b{font-size:11px}.activity-row small,.activity-row time{font-size:9px;color:var(--muted);margin-top:2px}.activity-row time{text-align:right;max-width:64px}
.quick-grid{padding:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.quick-grid a{min-height:45px;border:1px solid #cfe3ef;border-radius:8px;background:#f2f9fe;display:flex;align-items:center;gap:8px;padding:0 10px;font-size:10px;font-weight:700;color:#174f78}.quick-grid .icon{width:18px;color:var(--blue)}.quick-grid a:nth-child(odd) .icon{color:var(--green)}.quick-grid a:hover{border-color:#8dc7e4;background:white}.alert-head{display:flex;align-items:center;justify-content:space-between;padding:8px 11px 6px;border-top:1px solid #e8f0f5}.alert-head span{min-width:20px;height:20px;border-radius:10px;background:var(--red-soft);color:var(--red);display:grid;place-items:center;font-size:9px;font-weight:800}.alert-list{padding:0 9px 9px}.alert-row{display:grid;grid-template-columns:27px 1fr;align-items:center;gap:8px;padding:8px;border-radius:8px;margin-top:6px;background:var(--yellow-soft);border:1px solid #f6e19a}.alert-row>span{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:var(--yellow);color:white;font-weight:900}.alert-row div{display:grid}.alert-row b{font-size:10px}.alert-row small{font-size:9px;color:var(--muted);margin-top:2px}.alert-row--medication,.alert-row--stock{background:var(--red-soft);border-color:#ffd2d4}.alert-row--medication>span,.alert-row--stock>span{background:var(--red)}.alert-row--ok{background:var(--green-soft);border-color:#c8ecd1}.alert-row--ok>span{background:var(--green)}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:3px 0 19px}.page-head h1{margin-bottom:4px}.page-head p{margin:0;font-size:12px}.back-link{display:inline-block;color:var(--blue);font-size:11px;font-weight:700;margin-bottom:10px}.data-panel{overflow:hidden}.table-toolbar{padding:12px 14px;border-bottom:1px solid var(--line)}.search--table{width:280px;background:white}.table-scroll{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:770px}.data-table th{padding:12px 14px;background:#f6fafd;color:#53718a;font-size:10px;text-transform:uppercase;letter-spacing:.05em;text-align:left;border-bottom:1px solid var(--line)}.data-table td{padding:13px 14px;border-bottom:1px solid #eaf1f5;font-size:12px}.data-table tbody tr:hover{background:#fbfdff}.data-table tbody tr:last-child td{border-bottom:0}.actions-col{text-align:right!important}.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:3px}.row-actions>a:not(.icon-button){font-size:10px;font-weight:750;color:var(--blue);padding:7px}.row-actions form{margin:0}.row-actions .icon-button{width:31px;height:31px}.row-actions .icon{width:15px}.stock-low{color:var(--red);font-weight:800}.role-pill{padding:5px 8px;border-radius:6px;background:var(--blue-soft);color:#1c75af;font-size:9px;font-weight:750}
.form-panel{max-width:880px;padding:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:grid;gap:7px;align-content:start}.field>span:first-child{font-size:11px;font-weight:750;color:#345977}.field input,.field select,.field textarea{width:100%;border:1px solid #cadde9;border-radius:8px;background:#fbfdff;outline:0;padding:0 11px;transition:.15s ease}.field input,.field select{height:41px}.field textarea{padding-top:11px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#4daadc;box-shadow:0 0 0 3px rgba(45,153,213,.11);background:white}.field--wide{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:6px;border-top:1px solid #e8f0f5}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.detail-card{min-height:100px;background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-soft);padding:17px;display:grid;align-content:start;gap:8px}.detail-card small{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.detail-card strong{font-size:15px;line-height:1.5}.detail-card>span{font-size:10px;color:var(--muted)}.detail-card--wide{grid-column:1/-1}.toggle{display:flex;align-items:center;gap:9px;cursor:pointer}.toggle input{position:absolute;opacity:0}.toggle>span{width:38px;height:22px;background:#cbd9e3;border-radius:20px;position:relative;transition:.2s}.toggle>span:after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:white;left:3px;top:3px;box-shadow:0 1px 4px rgba(0,0,0,.2);transition:.2s}.toggle input:checked+span{background:var(--green)}.toggle input:checked+span:after{transform:translateX(16px)}.toggle b{font-size:12px}
.report-kpis{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:13px}.report-kpis article{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:18px;display:flex;gap:12px;align-items:center;box-shadow:var(--shadow-soft)}.report-kpis article>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue)}.report-kpis div{display:grid}.report-kpis small{color:var(--muted)}.report-kpis strong{font-size:25px}.report-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:13px}.bar-list{padding:17px}.bar-list>div{display:grid;grid-template-columns:95px 1fr 28px;align-items:center;gap:12px;margin-bottom:15px;font-size:11px}.bar-list i{height:8px;background:#edf4f8;border-radius:5px;overflow:hidden}.bar-list i b{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,var(--teal),var(--green))}.donut-summary{padding:17px}.donut-summary>div{display:grid;grid-template-columns:12px 1fr auto;gap:9px;align-items:center;padding:12px 0;border-bottom:1px solid #edf3f6}.status-dot{width:9px;height:9px;border-radius:50%}.status-dot--healthy{background:var(--green)}.status-dot--observation{background:var(--yellow)}.status-dot--treatment{background:var(--red)}
.update-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:15px}.upload-card{text-align:center;padding:28px}.upload-cloud{width:68px;height:50px;border-radius:30px;display:grid;place-items:center;margin:0 auto 14px;background:var(--blue-soft);color:var(--blue);font-size:35px;font-weight:900}.upload-card h2{margin-bottom:7px}.upload-card p{font-size:11px}.upload-card form{display:grid;gap:12px;max-width:450px;margin:18px auto 0}.file-drop{border:1.5px dashed #9fcbe2;border-radius:10px;background:#f6fbfe;padding:21px;display:grid;gap:6px;cursor:pointer}.file-drop input{position:absolute;opacity:0;pointer-events:none}.file-drop span{font-size:12px;color:var(--blue);font-weight:750}.file-drop small{font-size:9px;color:var(--muted)}.update-checks{padding:24px}.update-checks h2{margin-bottom:14px}.update-checks ul{list-style:none;padding:0;margin:0;display:grid;gap:12px}.update-checks li{display:flex;align-items:center;gap:9px;font-size:12px}.update-checks li span{width:21px;height:21px;border-radius:50%;background:var(--green-soft);color:var(--green);display:grid;place-items:center;font-weight:900}.version-pill{display:inline-flex;align-items:center;height:29px;padding:0 11px;border-radius:16px;background:var(--blue-soft);color:var(--blue);font-size:10px;font-weight:800}.empty-state{padding:34px 20px;text-align:center;color:var(--muted);display:grid;justify-items:center}.empty-state>span{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);margin-bottom:9px}.empty-state b{color:var(--ink);font-size:12px}.empty-state p{font-size:10px;margin:4px 0 0}.empty-state--compact{padding:30px}.error-page{text-align:center;padding:15vh 20px}.error-page>span{width:64px;height:64px;border-radius:50%;background:var(--red-soft);color:var(--red);font-size:36px;font-weight:900;display:grid;place-items:center;margin:0 auto 15px}.error-page .button{margin-top:10px}

/* Authentication */
.auth-page{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 18% 15%,rgba(125,225,163,.32),transparent 30%),radial-gradient(circle at 82% 10%,rgba(74,178,232,.26),transparent 27%),#edf7fb}.auth-card{width:min(980px,100%);min-height:610px;background:white;border:1px solid rgba(177,210,228,.8);border-radius:24px;box-shadow:0 30px 80px rgba(24,77,112,.18);overflow:hidden;display:grid;grid-template-columns:1.08fr .92fr}.auth-visual{position:relative;overflow:hidden;padding:30px 40px;background:linear-gradient(145deg,#eaf8fa 0%,#f6fbdc 68%,#e8f7ff 100%)}.auth-visual:before{content:"";position:absolute;width:300px;height:300px;border-radius:50%;right:-80px;top:95px;background:rgba(255,224,74,.28);filter:blur(4px)}.brand--auth{position:relative;z-index:2}.brand--auth .brand__bird{width:52px;height:52px}.brand--auth .brand__word{font-size:26px}.auth-bird{position:absolute;width:380px;height:380px;object-fit:contain;right:-20px;top:112px;filter:drop-shadow(0 16px 25px rgba(27,93,126,.2))}.auth-visual h1{position:absolute;left:40px;bottom:72px;font-size:36px;z-index:2;margin:0}.auth-visual p{position:absolute;left:40px;bottom:29px;max-width:360px;font-size:12px;z-index:2}.auth-form-wrap{padding:70px 55px 36px;display:flex;flex-direction:column;justify-content:center}.auth-form-head h2{font-size:29px;margin:0 0 7px}.auth-form-head p{font-size:12px;margin-bottom:25px}.form-stack{display:grid;gap:17px}.password-field{display:flex;align-items:center;position:relative}.password-field input{padding-right:70px}.password-field button{position:absolute;right:9px;border:0;background:transparent;color:var(--blue);font-size:9px;font-weight:800;cursor:pointer}.auth-version{margin-top:auto;text-align:center;color:#91a6b7;font-size:9px;padding-top:35px}

/* Installer */
.installer-page{min-height:100vh;padding:24px;background:linear-gradient(135deg,#edf8fb,#f9fcff 48%,#eff9e7);position:relative;overflow-x:hidden}.installer-orb{position:fixed;border-radius:50%;filter:blur(30px);opacity:.5;pointer-events:none}.installer-orb--one{width:340px;height:340px;background:#a4e6d0;left:-130px;top:-120px}.installer-orb--two{width:330px;height:330px;background:#b3daf2;right:-100px;bottom:-120px}.installer-shell{position:relative;z-index:1;max-width:1100px;margin:0 auto;background:rgba(255,255,255,.78);border:1px solid rgba(181,214,229,.9);border-radius:20px;box-shadow:0 24px 70px rgba(32,91,126,.14);overflow:hidden;backdrop-filter:blur(16px)}.installer-header{height:84px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(255,255,255,.82)}.brand--installer .brand__bird{width:55px;height:55px}.brand--installer .brand__word{font-size:26px}.brand--installer>span{display:grid}.brand--installer small{font-size:9px;color:var(--muted);font-weight:550}.installer-body{padding:24px 34px 34px}.stepper{display:flex;list-style:none;margin:0 auto 24px;padding:0;max-width:820px;justify-content:space-between;counter-reset:none}.stepper li{position:relative;flex:1;display:grid;justify-items:center;gap:6px;color:#9bb0c0;font-size:9px}.stepper li:not(:last-child):after{content:"";position:absolute;top:13px;left:calc(50% + 18px);width:calc(100% - 36px);height:2px;background:#d9e7ef}.stepper li.is-done:not(:last-child):after{background:var(--green)}.stepper li>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#dce9f1;color:white;font-weight:800;z-index:1}.stepper li.is-active>span{background:var(--blue);box-shadow:0 0 0 5px rgba(18,132,214,.11)}.stepper li.is-done>span{background:var(--green)}.stepper li.is-active small,.stepper li.is-done small{color:var(--ink);font-weight:750}.installer-card{background:white;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:30px;min-height:455px}.welcome-grid{display:grid;grid-template-columns:1fr .9fr;align-items:center;min-height:295px}.welcome-copy{padding:8px 12px 8px 22px}.welcome-copy h1{font-size:34px;max-width:420px}.welcome-copy h1 span{color:var(--green)}.welcome-copy p{font-size:13px;max-width:460px;margin-bottom:22px}.welcome-bird{height:290px;position:relative;display:grid;place-items:center}.welcome-bird .glow{position:absolute;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,#fff5a8,#bde8d0 55%,transparent 72%)}.welcome-bird img{position:relative;width:300px;height:300px;object-fit:contain;filter:drop-shadow(0 14px 20px rgba(24,95,124,.2))}.feature-grid{border-top:1px solid #e9f1f5;padding-top:20px;display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.feature-grid>div{height:70px;border:1px solid #dfeaf1;border-radius:10px;display:grid;place-items:center;align-content:center;gap:7px;background:#fbfdff;font-size:9px;font-weight:700}.feature-grid .icon{width:21px;color:var(--teal)}.installer-title{display:flex;align-items:center;gap:16px;max-width:680px;margin:2px auto 24px}.installer-title h1{margin-bottom:5px}.installer-title p{font-size:11px;margin:0}.installer-icon{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);font-weight:900;flex:0 0 auto}.installer-icon--green{background:var(--green-soft);color:var(--green)}.installer-icon--blue{background:var(--blue);color:white}.check-list{max-width:680px;margin:0 auto;border:1px solid var(--line);border-radius:11px;overflow:hidden}.check-list>div{min-height:51px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #eaf1f5;font-size:12px}.check-list>div:last-child{border:0}.check{font-size:10px;padding:5px 8px;border-radius:6px}.check.is-ok{background:var(--green-soft);color:var(--green-dark)}.check.is-error{background:var(--red-soft);color:var(--red)}.installer-actions{max-width:680px;margin:20px auto 0;display:flex;justify-content:space-between;gap:10px}.installer-form{max-width:680px;margin:0 auto}.password-strength{display:flex;align-items:center;gap:8px;font-size:9px;color:var(--muted)}.password-strength i{height:4px;flex:1;border-radius:4px;background:linear-gradient(90deg,var(--green) 65%,#e5eef3 65%)}.install-progress,.install-complete{text-align:center;max-width:610px;margin:20px auto}.install-progress .installer-icon{margin:0 auto 10px}.install-spinner{font-size:24px;animation:spin 1.1s linear infinite}.install-progress h1,.install-complete h1{font-size:27px;margin:5px 0}.install-progress p,.install-complete p{font-size:12px}.progress{height:10px;background:#e4eef4;border-radius:8px;margin:24px auto 8px;overflow:hidden}.progress i{display:block;width:0;height:100%;border-radius:8px;background:linear-gradient(90deg,var(--green),var(--teal));transition:width .3s ease}.install-progress>strong{display:block;color:var(--green-dark);font-size:12px}.install-progress ul{list-style:none;padding:0;max-width:340px;margin:20px auto;text-align:left;display:grid;gap:9px;color:#466883;font-size:11px}.install-progress form{margin-top:15px}.inline-error{margin-top:12px;color:var(--red);font-size:11px}.success-mark{width:88px;height:88px;border-radius:50%;margin:0 auto 16px;display:grid;place-items:center;background:linear-gradient(145deg,#50cc70,#27a94c);color:white;font-size:50px;box-shadow:0 10px 25px rgba(37,174,78,.25)}.install-complete .button{margin-top:12px}.install-complete>small{display:block;color:var(--muted);font-size:9px;margin-top:23px}@keyframes spin{to{transform:rotate(360deg)}}
.bottom-nav,.sidebar-scrim{display:none}

@media (max-width:1180px){:root{--sidebar:210px}.content{padding:21px 18px 38px}.topbar{padding:0 17px}.dashboard-grid{grid-template-columns:1fr 1fr}.panel--birds{grid-column:1/-1}.stat-card{padding:13px}.stat-card p{display:none}.hero-bird{right:22%}}
@media (max-width:780px){:root{--topbar:64px}.workspace{margin-left:0}.sidebar{transform:translateX(-105%);transition:transform .25s ease;width:250px}.sidebar.is-open{transform:translateX(0)}.sidebar-scrim{position:fixed;inset:0;background:rgba(3,24,42,.42);z-index:35}.sidebar-scrim.is-visible{display:block}.menu-toggle,.brand--mobile{display:flex}.brand--mobile .brand__bird{width:39px;height:39px}.brand--mobile .brand__word{font-size:18px}.topbar>.search{display:none}.user-chip div{display:none}.content{padding:18px 14px 88px}.dashboard-hero{min-height:85px}.hero-bird{right:4%;opacity:.78}.hero-date{display:none}.stat-grid{grid-template-columns:1fr 1fr}.dashboard-grid{grid-template-columns:1fr}.panel--birds{grid-column:auto}.bottom-nav{position:fixed;display:flex;z-index:32;left:0;right:0;bottom:0;height:67px;padding:5px max(8px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:rgba(255,255,255,.96);border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(31,74,104,.09);justify-content:space-around}.bottom-nav a,.bottom-nav button{min-width:54px;border:0;background:transparent;display:grid;place-items:center;align-content:center;gap:3px;color:#66859d;font-size:9px;font-weight:650}.bottom-nav .icon{width:20px}.bottom-nav .is-active{color:var(--green-dark)}.page-head{align-items:flex-start}.detail-grid{grid-template-columns:1fr 1fr}.report-grid,.update-grid{grid-template-columns:1fr}.auth-card{grid-template-columns:1fr;max-width:520px}.auth-visual{min-height:210px;padding:20px 25px}.auth-bird{width:220px;height:220px;right:-15px;top:7px}.auth-visual h1{left:25px;bottom:30px;font-size:27px}.auth-visual p{display:none}.auth-form-wrap{padding:35px}.installer-page{padding:10px}.installer-body{padding:18px}.installer-card{padding:22px}.stepper small{display:none}.welcome-grid{grid-template-columns:1fr}.welcome-copy{text-align:center;padding:0}.welcome-copy p{margin-left:auto;margin-right:auto}.welcome-bird{height:185px}.welcome-bird img{width:210px;height:210px}.feature-grid{grid-template-columns:repeat(3,1fr)} }
@media (max-width:560px){body{font-size:13px}.topbar{padding:0 10px;gap:6px}.topbar__right{gap:1px}.topbar__right>.icon-button:first-child{display:none}.user-chip{border:0;padding:2px}.brand--mobile .brand__word{font-size:16px}.brand--mobile .brand__bird{width:35px;height:35px}.content{padding:14px 10px 82px}h1{font-size:24px}.dashboard-hero{padding-left:9px;margin-bottom:10px}.dashboard-hero p{max-width:230px}.hero-bird{width:128px;height:128px;bottom:-35px;right:-10px}.stat-grid{gap:8px;margin-bottom:10px}.stat-card{min-height:95px;display:grid;grid-template-columns:35px 1fr;padding:11px;gap:7px}.stat-icon{width:34px;height:34px}.stat-icon .icon{width:17px}.stat-card strong{font-size:21px}.dashboard-grid{gap:10px}.bird-row{grid-template-columns:39px 1fr auto;gap:7px}.bird-row .sex,.bird-row .bird-date{display:none}.quick-grid{gap:6px}.page-head{display:grid;gap:12px;margin-bottom:14px}.page-head>.button{width:100%}.form-panel{padding:15px}.form-grid{grid-template-columns:1fr;gap:14px}.field--wide{grid-column:auto}.form-actions{grid-column:auto}.detail-grid{grid-template-columns:1fr}.detail-card--wide{grid-column:auto}.data-panel{background:transparent;border:0;box-shadow:none}.table-toolbar{padding:0 0 10px;border:0}.search--table{width:100%}.table-scroll{overflow:visible}.data-table{min-width:0}.data-table thead{display:none}.data-table,.data-table tbody,.data-table tr,.data-table td{display:block;width:100%}.data-table tr{background:white;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow-soft);margin-bottom:9px;padding:9px 11px}.data-table td{display:flex;justify-content:space-between;gap:15px;padding:7px 0;border-bottom:1px solid #edf3f6;text-align:right}.data-table td:before{content:attr(data-label);font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;text-align:left}.data-table td:last-child{border:0}.row-actions{justify-content:flex-end}.row-actions:before{margin-right:auto}.report-kpis{grid-template-columns:1fr}.auth-page{padding:10px}.auth-card{min-height:calc(100vh - 20px);border-radius:18px}.auth-visual{min-height:180px}.auth-bird{width:180px;height:180px}.auth-visual h1{font-size:23px;bottom:22px}.auth-form-wrap{padding:28px 24px}.installer-page{padding:0}.installer-shell{min-height:100vh;border-radius:0;border:0}.installer-header{height:68px;padding:0 16px}.brand--installer .brand__bird{width:43px;height:43px}.brand--installer .brand__word{font-size:20px}.installer-body{padding:14px 10px}.installer-card{padding:18px 14px;min-height:480px}.stepper{margin-bottom:16px}.stepper li>span{width:25px;height:25px}.stepper li:not(:last-child):after{top:12px}.welcome-copy h1{font-size:28px}.feature-grid{gap:6px}.feature-grid>div{height:59px}.installer-title{align-items:flex-start}.installer-title h1{font-size:24px}.installer-form{grid-template-columns:1fr}.installer-actions{grid-column:auto}.installer-actions .button{flex:1}.version-pill{font-size:8px}.install-progress{margin-top:0}}
@media print{.sidebar,.topbar,.bottom-nav,.page-head .button{display:none!important}.workspace{margin:0}.content{padding:0}.panel{box-shadow:none}}

/* Interactive topbar, reports and bird photos */
.search button{width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:7px;background:var(--blue-soft);color:var(--blue);font-weight:900;cursor:pointer}.search button:hover{background:var(--blue);color:white}
.notifications,.account-menu{position:relative}.notification-count{position:absolute;right:-2px;top:-4px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--red);color:white;border:2px solid white;display:grid;place-items:center;font-size:8px;font-weight:900}.notification-dot{display:none}
.notification-panel,.account-panel{position:absolute;z-index:80;right:0;top:calc(100% + 11px);width:340px;background:white;border:1px solid var(--line);border-radius:13px;box-shadow:0 18px 45px rgba(18,61,93,.18);overflow:hidden}.notification-panel[hidden],.account-panel[hidden]{display:none}.notification-panel header{padding:14px 15px;border-bottom:1px solid #e8f0f5}.notification-panel header div{display:flex;align-items:center;justify-content:space-between}.notification-panel header b{font-size:12px}.notification-panel header small{font-size:9px;color:var(--muted)}.notification-list{max-height:360px;overflow:auto}.notification-list>a{display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:center;padding:12px 14px;border-bottom:1px solid #edf3f6}.notification-list>a:hover{background:#f7fbfe}.notification-list>a>span:last-child{display:grid;gap:3px}.notification-list b{font-size:11px}.notification-list small{font-size:9px;color:var(--muted)}.notification-mark{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;color:white;font-weight:900}.notification-mark--yellow{background:var(--yellow)}.notification-mark--red{background:var(--red)}.notification-mark--blue{background:var(--blue)}.notification-empty{padding:28px 15px;display:grid;place-items:center;gap:5px;text-align:center}.notification-empty>span{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:var(--green-soft);color:var(--green);font-weight:900}.notification-empty b{font-size:11px}.notification-empty small{font-size:9px;color:var(--muted)}
.user-chip{border:0;background:transparent;cursor:pointer;text-align:left}.user-chip>i{font-style:normal;color:#89a0b2;font-size:12px}.user-chip:hover{background:#f6fafd;border-radius:9px}.account-panel{width:270px;padding:8px}.account-panel header{display:flex;gap:10px;align-items:center;padding:10px 9px 13px;border-bottom:1px solid #e8f0f5;margin-bottom:5px}.account-panel header>span{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--blue);color:white;font-size:12px;font-weight:800}.account-panel header div{display:grid;min-width:0}.account-panel header b{font-size:11px}.account-panel header small{font-size:9px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}.account-panel>a,.account-panel form button{width:100%;height:38px;border:0;background:transparent;border-radius:7px;padding:0 9px;display:flex;align-items:center;gap:9px;font-size:11px;font-weight:700;cursor:pointer}.account-panel>a:hover,.account-panel form button:hover{background:var(--blue-soft);color:var(--blue)}.account-panel .icon{width:16px}
.search-results{overflow:hidden}.search-result{min-height:68px;padding:10px 15px;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:11px;border-bottom:1px solid #eaf1f5}.search-result:hover{background:#f8fcff}.search-result>span:first-child{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue)}.search-result>span:nth-child(2){display:grid;gap:2px}.search-result small{font-size:8px;text-transform:uppercase;color:var(--teal);font-weight:800;letter-spacing:.06em}.search-result b{font-size:12px}.search-result p{font-size:10px;margin:0}.search-result>i{font-style:normal;color:var(--blue)}
.report-empty{display:block!important;padding:22px!important;text-align:center;color:var(--muted);font-size:11px}.bird-photo-control{display:flex;align-items:center;gap:17px;padding:14px;border:1px solid var(--line);border-radius:11px;background:#f9fcfe}.bird-photo-preview{width:104px;height:104px;border-radius:12px;background:white;border:1px solid var(--line);overflow:hidden;display:block;flex:0 0 auto}.bird-photo-preview img{width:100%;height:100%;object-fit:cover}.bird-photo-control>div{display:grid;gap:8px}.bird-photo-control small{font-size:9px;color:var(--muted)}.file-button input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;opacity:0}.file-button span{height:35px;padding:0 12px;border-radius:8px;background:var(--blue-soft);color:var(--blue);display:inline-flex;align-items:center;font-size:10px;font-weight:800;cursor:pointer}.photo-remove{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted)}.detail-card--photo{grid-row:span 2;min-height:214px;padding:0;overflow:hidden}.detail-card--photo img{width:100%;height:100%;min-height:214px;object-fit:cover}.bird-table-name{display:flex;align-items:center;gap:9px}.bird-table-name img{width:34px;height:34px;border-radius:8px;object-fit:cover;background:var(--blue-soft)}
.dashboard-hero{min-height:104px}.hero-bird{top:50%;bottom:auto;width:96px;height:96px;transform:translateY(-50%);object-fit:contain}.brand--auth{position:absolute;z-index:3;top:25px;left:50%;transform:translateX(-50%);justify-content:center;width:max-content}
@media (max-width:780px){.dashboard-hero{min-height:94px}.hero-bird{top:50%;bottom:auto;right:6%;width:84px;height:84px;transform:translateY(-50%);opacity:.9}.notification-panel{right:-62px;width:min(340px,calc(100vw - 20px))}.account-panel{right:-38px}.topbar>.search{display:none}}
@media (max-width:560px){.hero-bird{top:50%;bottom:auto;right:3px;width:72px;height:72px;transform:translateY(-50%)}.bird-photo-control{align-items:flex-start}.bird-photo-preview{width:82px;height:82px}.notification-panel{right:-76px}.account-panel{right:-44px}.user-chip>i{display:none}}
@media (min-width:781px){.menu-toggle,.brand--mobile,.bottom-nav,.sidebar-scrim{display:none!important}}
.sidebar__footer{align-items:flex-start;flex-direction:column;gap:3px}.sidebar__footer span{max-width:100%;overflow-wrap:anywhere}.sidebar__footer small{line-height:1.35}

/* Refined hero, mobile login and safe-area navigation */
.hero-meta{margin-left:auto;display:flex;align-items:center;gap:18px;align-self:stretch;position:relative;z-index:1}.dashboard-hero .hero-date{margin:0}.dashboard-hero .hero-bird{position:static;flex:0 0 auto;transform:scaleX(-1)}
@media (max-width:780px){.content{padding-bottom:calc(96px + env(safe-area-inset-bottom))}.hero-meta{gap:0}.dashboard-hero .hero-bird{width:84px;height:84px;transform:scaleX(-1);opacity:.9}.bottom-nav{height:calc(67px + env(safe-area-inset-bottom));padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));align-items:stretch}.bottom-nav a,.bottom-nav button{height:54px;align-content:center;padding:3px 0 1px;transform:translateY(2px)}.bottom-nav .icon{display:block;margin:0 auto}.auth-visual{min-height:230px}.auth-bird{width:175px;height:175px;right:18px;top:44px}.brand--auth{top:18px}.auth-visual h1{bottom:24px}}
@media (max-width:560px){.content{padding-bottom:calc(92px + env(safe-area-inset-bottom))}.dashboard-hero .hero-bird{width:72px;height:72px;transform:scaleX(-1)}.auth-visual{min-height:220px}.auth-bird{width:155px;height:155px;right:15px;top:53px}.brand--auth{top:15px}.brand--auth .brand__bird{width:42px;height:42px}.brand--auth .brand__word{font-size:22px}.auth-visual h1{left:22px;bottom:20px;font-size:23px}}

/* Shared photo cropper and user profile */
.user-avatar{overflow:hidden}.user-avatar img{display:block;width:100%;height:100%;object-fit:cover}.photo-editor-actions{min-width:0}.photo-editor-actions>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.photo-edit-button{height:35px;padding:0 12px;font-size:10px}.photo-edit-button[hidden]{display:none!important}.profile-panel{max-width:850px}.profile-meta{display:flex;align-items:center}.field input[readonly]{background:#f2f7fa;color:#627f94;cursor:not-allowed}.field>small{font-size:9px;color:var(--muted);line-height:1.5}
.crop-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:18px;background:white;color:var(--navy);box-shadow:0 28px 80px rgba(5,35,57,.32);overflow:auto}.crop-dialog::backdrop{background:rgba(3,24,42,.66);backdrop-filter:blur(4px)}.crop-dialog__shell{padding:20px}.crop-dialog__shell>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.crop-dialog__shell h2{font-size:20px;margin:2px 0 0}.crop-dialog__shell>header .icon-button{font-size:22px;line-height:1}.crop-stage{position:relative;width:min(100%,420px);aspect-ratio:1;margin:0 auto;border-radius:16px;overflow:hidden;background:#eaf3f7;box-shadow:inset 0 0 0 1px rgba(10,71,107,.12)}.crop-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab;outline:0}.crop-stage canvas:focus-visible{box-shadow:inset 0 0 0 3px var(--blue)}.crop-stage canvas.is-dragging{cursor:grabbing}.crop-grid{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,transparent 33.1%,rgba(255,255,255,.7) 33.2%,rgba(255,255,255,.7) 33.5%,transparent 33.6%,transparent 66.4%,rgba(255,255,255,.7) 66.5%,rgba(255,255,255,.7) 66.8%,transparent 66.9%),linear-gradient(to bottom,transparent 33.1%,rgba(255,255,255,.7) 33.2%,rgba(255,255,255,.7) 33.5%,transparent 33.6%,transparent 66.4%,rgba(255,255,255,.7) 66.5%,rgba(255,255,255,.7) 66.8%,transparent 66.9%);box-shadow:inset 0 0 0 2px rgba(255,255,255,.88)}.crop-hint{text-align:center;margin:10px auto;font-size:10px;color:var(--muted)}.crop-direct-controls{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px}.crop-gesture-guide{display:flex;align-items:stretch;gap:7px;min-width:0}.crop-gesture-guide>span{min-width:0;padding:7px 9px;border-radius:9px;background:#f3f8fb;display:flex;align-items:center;gap:6px;color:var(--muted)}.crop-gesture-guide b{font-size:17px;color:var(--blue);line-height:1}.crop-gesture-guide small{font-size:8px;font-weight:800;white-space:nowrap}.crop-zoom-status{min-width:58px;padding:9px 10px;border-radius:9px;background:var(--green-soft);color:var(--green-dark);text-align:center;font-size:10px;font-weight:900}.crop-dialog__shell>footer{display:flex;justify-content:flex-end;gap:9px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
@media (max-width:560px){.bird-photo-control{display:grid;grid-template-columns:82px minmax(0,1fr);gap:12px}.photo-editor-actions>div{align-items:stretch}.photo-editor-actions .file-button,.photo-editor-actions .file-button span,.photo-edit-button{width:100%;justify-content:center}.crop-dialog{width:calc(100vw - 14px);max-height:calc(100dvh - 14px);border-radius:14px}.crop-dialog__shell{padding:14px}.crop-dialog__shell h2{font-size:18px}.crop-direct-controls{grid-template-columns:minmax(0,1fr) auto}.crop-gesture-guide{grid-column:1/-1}.crop-gesture-guide>span{flex:1;justify-content:center}.crop-direct-controls>.button{min-width:120px}.crop-dialog__shell>footer{display:grid;grid-template-columns:1fr 1fr}.crop-dialog__shell>footer .button{padding:0 8px}.crop-hint{margin:7px auto}}

/* Stable login artwork layout */
.auth-visual{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;padding:28px 40px 32px}.brand--auth{position:relative;top:auto;left:auto;transform:none;justify-self:center;width:max-content}.auth-bird-stage{position:relative;z-index:1;min-height:0;display:grid;place-items:center;padding-top:4px}.auth-bird{position:static;width:min(350px,100%);height:auto;max-height:350px;object-fit:contain;transform:none}.auth-copy{position:relative;z-index:2}.auth-visual .auth-copy h1{position:static;margin:0;font-size:34px;line-height:1.08}.auth-visual .auth-copy p{position:static;margin:7px 0 0;max-width:360px;font-size:12px;line-height:1.45}
@media (max-width:780px){.auth-visual{min-height:230px;padding:16px 22px 18px;grid-template-columns:minmax(0,1fr) minmax(155px,42%);grid-template-rows:auto minmax(0,1fr);gap:3px 10px}.brand--auth{grid-column:1/-1;grid-row:1}.auth-bird-stage{grid-column:2;grid-row:2;padding:0}.auth-bird{width:100%;max-height:165px}.auth-copy{grid-column:1;grid-row:2;align-self:end;padding-bottom:3px}.auth-visual .auth-copy h1{font-size:25px}.auth-visual .auth-copy p{display:none}}
@media (max-width:560px){.auth-visual{min-height:220px;padding:14px 18px 16px;grid-template-columns:minmax(0,1fr) minmax(130px,45%)}.auth-bird{max-height:150px}.auth-visual .auth-copy h1{font-size:22px}.brand--auth .brand__bird{width:40px;height:40px}.brand--auth .brand__word{font-size:21px}}
