/* Partnera mobilais portāls — PR #64 */
:root{--portal-ink:#14322d;--portal-muted:#6d817b;--portal-line:#dbe7e1;--portal-surface:#fff;--portal-soft:#f5f8f6;--portal-green:#0c7666;--portal-deep:#123f35;--portal-lime:#d6ee71;--portal-red:#c44332;--portal-red-soft:#fff0ed;--portal-amber:#9a6417;--portal-amber-soft:#fff3d9}
[hidden]{display:none!important}
body{background:radial-gradient(circle at 85% -10%,rgba(214,238,113,.22),transparent 30rem),#edf4ef;color:var(--portal-ink)}
.topbar{height:72px;padding-inline:max(18px,calc((100vw - 1040px)/2));background:rgba(255,255,255,.95);border-color:var(--portal-line)}
.topbar #logout{min-height:44px;border-radius:14px;background:var(--portal-soft);color:var(--portal-deep)}
.portal-shell{width:min(1040px,calc(100% - 32px));margin:24px auto 64px}
.portal-shell .hero{min-height:164px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;align-items:center;padding:28px;border-radius:24px;background:radial-gradient(circle at 85% 12%,rgba(214,238,113,.22),transparent 17rem),linear-gradient(135deg,#123f35,#0c6659)}
.portal-shell .hero .rate{min-width:138px;padding:14px 17px;border:1px solid rgba(255,255,255,.14);border-radius:16px;background:rgba(255,255,255,.07)}
.hero-live-action{min-width:190px;min-height:82px;padding:13px 15px;display:flex;flex-direction:column;justify-content:center;gap:5px;border-radius:16px;text-decoration:none;color:#fff;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.15)}
.hero-live-action span{font-size:9px;font-weight:800;letter-spacing:.08em}.hero-live-action b{font-size:13px}.hero-live-action.missing{background:var(--portal-red);border-color:var(--portal-red)}.hero-live-action.scheduled b{color:var(--portal-lime)}
.partner-menu{position:sticky;top:84px;z-index:4;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0;padding:5px;border:1px solid var(--portal-line);border-radius:17px;background:rgba(255,255,255,.94);box-shadow:0 10px 28px rgba(22,62,53,.08);backdrop-filter:blur(14px)}
.partner-menu a{min-height:48px;padding:0 14px;display:flex;align-items:center;justify-content:center;gap:8px;border:0!important;border-radius:13px!important;background:transparent!important;color:var(--portal-muted)!important;font-size:12px!important;box-shadow:none!important}
.menu-icon{position:relative;width:20px;height:20px;display:inline-block;flex:0 0 20px;color:currentColor}.menu-icon::before,.menu-icon::after{content:"";position:absolute;box-sizing:border-box}.menu-icon-overview::before{left:4px;top:7px;width:12px;height:10px;border:2px solid currentColor;border-top:0;border-radius:0 0 3px 3px}.menu-icon-overview::after{left:5px;top:2px;width:10px;height:10px;border-left:2px solid currentColor;border-top:2px solid currentColor;border-radius:2px 0 0;transform:rotate(45deg)}.menu-icon-items::before{inset:3px 2px 2px;border:2px solid currentColor;border-radius:3px}.menu-icon-items::after{left:3px;right:3px;top:8px;height:2px;background:currentColor;box-shadow:5px -4px 0 -0.5px currentColor;transform:rotate(-27deg)}.menu-icon-live::before{left:7px;top:7px;width:6px;height:6px;border-radius:50%;background:currentColor}.menu-icon-live::after{inset:2px;border:2px solid currentColor;border-top-color:transparent;border-bottom-color:transparent;border-radius:50%}.menu-icon-profile::before{left:6px;top:2px;width:8px;height:8px;border:2px solid currentColor;border-radius:50%}.menu-icon-profile::after{left:3px;bottom:1px;width:14px;height:8px;border:2px solid currentColor;border-bottom:0;border-radius:9px 9px 0 0}.partner-menu a.active{background:var(--portal-deep)!important;color:#fff!important}.partner-menu a:hover{transform:none!important}
.portal-shell .kpis{grid-template-columns:repeat(3,1fr);gap:12px;margin:15px 0}.portal-shell .kpi{min-height:110px;border-radius:18px}.portal-shell .kpi:first-child{display:none}
.portal-shell .panel{border-color:var(--portal-line);border-radius:20px;box-shadow:0 8px 26px rgba(28,67,57,.06)}
.portal-shell .panel>header{background:#fbfdfb}
.view-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:26px 0 16px}.view-heading small{color:var(--portal-green);font-weight:800;letter-spacing:.12em}.view-heading h1{margin:5px 0 4px;font-size:32px;letter-spacing:-.04em}.view-heading p{margin:0;color:var(--portal-muted)}

/* Preces */
#items{overflow:visible}.product-tools{padding:14px 18px;display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:end;gap:14px;border-bottom:1px solid var(--portal-line);background:var(--portal-soft)}
.product-tools>label{display:grid;gap:6px;color:var(--portal-muted);font-size:10px;font-weight:750}.product-tools input{width:100%;height:46px;padding:0 13px;border:1px solid #cbd8d2;border-radius:14px;background:#fff;color:var(--portal-ink);font-size:16px}
.product-filters{display:flex;gap:7px;overflow:auto}.product-filters button{min-height:44px;padding:0 13px;border:1px solid var(--portal-line);border-radius:999px;background:#fff;color:var(--portal-muted);white-space:nowrap;cursor:pointer}.product-filters button.active{border-color:var(--portal-deep);background:var(--portal-deep);color:#fff}
#items .items{padding:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.partner-product{padding:0!important;display:block!important;align-self:start;border:1px solid var(--portal-line)!important;border-radius:18px;overflow:hidden;background:#fff}.partner-product[hidden]{display:none!important}
.product-summary{min-height:88px;padding:13px;display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:12px;border-bottom:1px solid var(--portal-line)}.product-monogram{width:58px;height:58px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#eaf2ff,var(--portal-soft));color:var(--portal-deep);font-size:20px;font-weight:800}.product-summary h3{font-size:13px!important}.product-summary p{margin-bottom:5px!important}.product-status{padding:5px 8px;border-radius:999px;background:#eaf2ff;color:#2860a8;font-size:9px;font-weight:800;white-space:nowrap}.product-status.shipping{background:var(--portal-red-soft);color:var(--portal-red)}.product-status.packed{background:var(--portal-amber-soft);color:var(--portal-amber)}.product-status.shipped{background:#e5f6ef;color:var(--portal-green)}.product-status.reversed{background:var(--portal-red-soft);color:var(--portal-red)}.product-status.disputed{background:var(--portal-amber-soft);color:var(--portal-amber)}.order-blocked{color:#9f493e}
.product-status.awaiting-payment{background:#fff3df;color:#9a620e}.payment-waiting{padding:12px!important;border-radius:13px;background:#fff8e9;color:#80540f}.payment-waiting small{color:#80540f!important}.shipping-reference{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border-radius:13px;background:#f0f7f4}.shipping-reference>div{display:grid;gap:3px}.shipping-reference small{font-size:9px;font-weight:800;letter-spacing:.5px}.shipping-reference b{font-size:14px;overflow-wrap:anywhere}.shipping-reference>span{grid-column:1/-1;color:var(--portal-muted);font-size:10px}.shipment-setup-note{padding:10px 11px;border-radius:12px;background:#fff8e9;color:#80540f!important;line-height:1.45}.delivery-details{display:grid;gap:5px;padding:13px;border:1px solid #cbded7;border-radius:13px;background:#fbfdfc}.delivery-details>p{margin:0;color:var(--portal-muted);font-size:11px;line-height:1.45}.delivery-details>strong{font-size:13px}.delivery-details>small{color:var(--portal-ink)!important}.delivery-details>em{margin-top:4px;color:var(--portal-muted);font-size:9px;font-style:normal}.delivery-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.delivery-heading span{color:var(--portal-green);font-size:11px;font-weight:800}.delivery-heading b{font-size:9px}.packing-slip-download,.label-download{display:inline-flex;align-items:center;justify-content:center;padding:11px 12px;border-radius:9px;font-size:10px;font-weight:800;text-decoration:none}.packing-slip-download{border:1px solid #b9cec6;background:#fff;color:var(--portal-deep)}
.product-money{display:grid!important;grid-template-columns:1fr 1fr;gap:0!important;border-bottom:1px solid var(--portal-line)}.product-money>div{padding:12px 14px;display:grid;gap:5px}.product-money>div+div{border-left:1px solid var(--portal-line)}.partner-product .actions{padding:14px;display:grid!important;gap:10px}.partner-product .actions>.primary{width:100%;min-height:48px;font-size:12px!important}.shipping-fields{display:grid;grid-template-columns:1fr;gap:10px}.shipping-fields label{display:grid;gap:5px;color:var(--portal-muted);font-size:10px;font-weight:700}.shipping-fields label span{font-weight:500}.shipping-fields input{width:100%;height:44px;padding:0 11px;border:1px solid #cbd8d2;border-radius:12px;background:#fff;color:var(--portal-ink);font-size:16px}.shopify-sync-note{padding:10px 11px;border-radius:12px;background:var(--portal-soft);color:var(--portal-muted)!important;line-height:1.45}.shipment-complete{padding:12px;border-radius:13px;background:#e7f5ef;display:grid;gap:4px}.shipment-complete b{color:var(--portal-green)}.return-link{margin:0 14px 14px}.panel-table{overflow:auto}
.bulk-pack-button{min-height:44px;padding:0 13px;border:0;border-radius:12px;background:var(--portal-green);color:#fff;font-weight:800;cursor:pointer}.bulk-pack-button:disabled{opacity:.45;cursor:not-allowed}.bulk-pack-choice{padding:8px 13px;display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--portal-line);background:#fbfdfb;color:var(--portal-muted);font-size:10px}.bulk-pack-choice input{width:18px;height:18px;accent-color:var(--portal-green)}
.order-timeline,.order-conversation{border-bottom:1px solid var(--portal-line)}.order-timeline>summary,.order-conversation>summary{padding:11px 14px;cursor:pointer;color:var(--portal-green);font-size:11px;font-weight:800}.order-timeline ol{margin:0;padding:0 14px 13px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;list-style:none}.order-timeline li{min-height:54px;padding:8px;display:flex;gap:7px;border:1px solid var(--portal-line);border-radius:10px;background:#fff}.order-timeline li i{width:9px;height:9px;margin-top:4px;border-radius:50%;background:#c8d4cf}.order-timeline li.done i{background:var(--portal-green)}.order-timeline li span{display:grid;align-content:start;gap:3px}.order-timeline li b{font-size:9px}.order-timeline li small{color:var(--portal-muted);font-size:8px}.order-conversation>div{padding:0 13px 13px;display:grid;gap:8px}.order-conversation p{margin:0;padding:9px;display:grid;gap:3px;border-radius:10px;background:var(--portal-soft);font-size:10px}.order-conversation p.partner{margin-left:24px;background:#e5f6ef}.order-conversation p.admin{margin-right:24px}.order-conversation p small{color:var(--portal-muted)}.order-conversation form{display:grid;grid-template-columns:1fr auto;gap:7px}.order-conversation input{min-width:0;height:40px;padding:0 10px;border:1px solid #cbd8d2;border-radius:10px;font-size:14px}.order-conversation button{padding:0 12px;border:0;border-radius:10px;background:var(--portal-deep);color:#fff;font-weight:800}
.partner-tasks .task-list{padding:12px;display:grid;gap:8px}.partner-tasks .task{min-height:58px;padding:10px 12px;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;border:1px solid var(--portal-line);border-radius:13px;color:var(--portal-ink);text-decoration:none}.partner-tasks .task>i{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:var(--portal-soft);color:var(--portal-green);font-style:normal;font-weight:900}.partner-tasks .task>span{display:grid;gap:3px}.partner-tasks .task small{color:var(--portal-muted)}.partner-tasks .task>strong{color:var(--portal-green);font-size:10px}.partner-tasks .task.overdue{border-color:#efc7bf;background:var(--portal-red-soft)}.partner-tasks .task.overdue>strong{color:var(--portal-red)}

/* Live */
.partner-live-page{min-height:480px}.public-live-link{min-height:44px;padding:0 14px;display:inline-flex;align-items:center;border:1px solid var(--portal-line);border-radius:14px;background:#fff;color:var(--portal-green);font-weight:750;text-decoration:none}.live-public-address{min-height:58px;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--portal-line);border-radius:16px;background:var(--portal-soft);margin-bottom:14px}.live-public-address span{color:var(--portal-muted);font-size:10px}.live-public-address b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-empty-state{padding:28px;border:1px solid var(--portal-line);border-radius:20px;background:#fff;text-align:center;box-shadow:0 8px 26px rgba(28,67,57,.06)}.live-empty-icon{width:48px;height:48px;margin:0 auto 12px;display:grid;place-items:center;border-radius:15px;background:var(--portal-red-soft);color:var(--portal-red)}.live-empty-state h2{margin:0 0 6px}.live-empty-state p{margin:0 auto 16px;max-width:430px;color:var(--portal-muted)}.live-plan-alert{width:min(100%,360px);min-height:50px;border:0;border-radius:15px;background:var(--portal-red);color:#fff;font-weight:800;cursor:pointer}
.live-create-form{margin-top:14px;padding:20px;border:1px solid var(--portal-line);border-radius:20px;background:#fff;box-shadow:0 8px 26px rgba(28,67,57,.06)}.live-create-form[hidden]{display:none}.live-create-grid{grid-template-columns:1.2fr 1fr .8fr}.live-create-grid input,.live-create-grid select{border-radius:13px!important;font-size:16px}.live-product-picker{border-radius:15px}.live-create-form footer .primary{min-height:48px;border-radius:14px!important}.active-live{margin-top:0!important}.active-live>.live-session-card{border:0}.live-session-history{padding:0!important}.live-session-history>summary{min-height:56px;padding:0 18px;display:flex;align-items:center}

/* Profils */
.profile-active,.deposit-ok{padding:6px 10px;border-radius:999px;background:#e5f6ef;color:var(--portal-green);font-size:10px;font-weight:800;white-space:nowrap}.profile-identity{min-height:94px;padding:14px 16px;display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:13px;border:1px solid var(--portal-line);border-radius:20px;background:#fff;box-shadow:0 8px 26px rgba(28,67,57,.06);margin-bottom:14px}.profile-avatar{width:62px;height:62px;display:grid;place-items:center;border-radius:19px;background:#e5f6ef;color:var(--portal-deep);font-size:22px;font-weight:800}.profile-identity h2{margin:0 0 3px}.profile-identity p{margin:0;color:var(--portal-muted)}
.profile-blocks{display:grid;gap:10px}.profile-block{border:1px solid var(--portal-line);border-radius:18px;background:#fff;overflow:hidden}.profile-block>summary{min-height:66px;padding:10px 13px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;cursor:pointer;list-style:none}.profile-block>summary::-webkit-details-marker{display:none}.profile-block>summary>span:nth-child(2){display:grid;gap:3px}.profile-block>summary small{color:var(--portal-muted);font-size:10px}.profile-block>summary i{font-style:normal;font-size:24px;color:var(--portal-muted);transition:transform .15s}.profile-block[open]>summary i{transform:rotate(90deg)}.profile-block-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--portal-soft);color:var(--portal-green);font-weight:800}.profile-block-body{padding:16px;border-top:1px solid var(--portal-line);background:#fbfdfb}.profile-blocks .profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-blocks .profile-grid label{display:grid;gap:6px;color:var(--portal-muted);font-size:10px;font-weight:700}.profile-blocks input,.profile-blocks select{width:100%;height:46px;padding:0 12px;border:1px solid #cbd8d2;border-radius:13px;background:#fff;color:var(--portal-ink);font-size:16px}.profile-secondary{min-height:44px;margin-top:12px;padding:0 14px;border:1px solid var(--portal-line);border-radius:13px;background:#fff;color:var(--portal-green);font-weight:750;cursor:pointer}.category-picker{margin:15px 0 0;padding:0;border:0}.category-picker legend{margin-bottom:9px;color:var(--portal-ink);font-weight:800}.category-picker>div{display:flex;flex-wrap:wrap;gap:8px}.category-picker label{cursor:pointer}.category-picker input{position:absolute;opacity:0;pointer-events:none}.category-picker label span{min-height:36px;padding:6px 10px;display:inline-flex;align-items:center;border:1px solid var(--portal-line);border-radius:999px;background:#fff;color:var(--portal-muted)}.category-picker input:checked+span{border-color:var(--portal-green);background:#e5f6ef;color:var(--portal-green)}.profile-checks{display:grid!important;gap:10px}.profile-checks label{min-height:46px;padding:0 12px;display:flex!important;align-items:center;gap:10px;border:1px solid var(--portal-line);border-radius:13px;background:#fff}.profile-checks input{width:19px!important;height:19px!important;accent-color:var(--portal-green)}.profile-save{position:sticky;bottom:12px;padding:11px 12px!important;display:flex!important;align-items:center;justify-content:flex-end;gap:12px;border:1px solid var(--portal-line)!important;border-radius:16px;background:rgba(255,255,255,.96);box-shadow:0 10px 28px rgba(22,62,53,.12)}.profile-save .primary{min-height:48px!important}.profile-save span{margin-right:auto}.portal-view-profile #payouts{margin-top:14px}.portal-view-profile .partner-payouts .payout-destination{grid-template-columns:repeat(3,1fr) auto}

@media(max-width:820px){
  body{padding-bottom:78px}.topbar{padding-inline:14px}.brand>small{display:none}.brand{grid-template-rows:42px;align-items:center}.portal-shell{width:min(100% - 20px,1040px);margin-top:12px}.portal-shell .hero{grid-template-columns:1fr 1fr;padding:22px}.portal-shell .hero>div:first-child{grid-column:1/-1}.hero-live-action{min-width:0}.partner-menu{position:fixed;inset:auto 0 0 0;z-index:20;margin:0;padding:6px 8px max(6px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0;box-shadow:0 -10px 30px rgba(20,50,43,.12)}.partner-menu a{min-height:58px;padding:5px;flex-direction:column;gap:2px;font-size:10px!important}.menu-icon{width:18px;height:18px;flex-basis:18px}.portal-shell .kpis{grid-template-columns:repeat(2,1fr)}#items .items{grid-template-columns:1fr}.product-tools{grid-template-columns:1fr}.bulk-pack-button{width:100%}.order-timeline ol{grid-template-columns:repeat(2,1fr)}.live-create-grid{grid-template-columns:1fr}.profile-blocks .profile-grid{grid-template-columns:1fr}.portal-view-profile .partner-payouts .payout-destination{grid-template-columns:1fr 1fr}.view-heading h1{font-size:28px}
}
@media(max-width:480px){
  .portal-shell{width:calc(100% - 16px)}.portal-shell .hero{grid-template-columns:1fr;padding:19px;border-radius:19px}.portal-shell .hero>div:first-child{grid-column:auto}.hero-live-action{min-height:70px}.portal-shell .kpis{grid-template-columns:1fr}.product-tools{padding:12px}.product-filters{margin-right:-12px}.product-summary{grid-template-columns:52px minmax(0,1fr);padding:11px}.product-monogram{width:52px;height:52px}.product-status{grid-column:2;justify-self:start}.product-money{grid-template-columns:1fr 1fr}.view-heading{display:grid;margin-top:18px}.public-live-link{width:100%;justify-content:center}.live-public-address{display:grid}.profile-identity{grid-template-columns:56px minmax(0,1fr)}.profile-avatar{width:56px;height:56px}.deposit-ok{grid-column:1/-1;justify-self:start}.profile-block>summary{grid-template-columns:40px minmax(0,1fr) auto}.profile-block>summary .payout-state{grid-column:2;justify-self:start}.profile-save{bottom:82px;align-items:stretch;flex-direction:column}.profile-save span{margin:0}.portal-view-profile .partner-payouts .payout-destination{grid-template-columns:1fr}
}
