.header{gap:16px;flex-wrap:wrap}.public-header{margin-left:auto;flex-wrap:wrap}.public-header .button{min-height:44px}.card-bottom{flex-wrap:wrap}.card-actions{flex-wrap:wrap;margin-left:auto;justify-content:flex-end}.card-actions .button{min-height:38px}.panel-area-info{display:flex;flex-direction:column;align-items:flex-start!important;gap:8px}.panel-area-info dd{font-size:19px;color:var(--green)}.panel-area-info span{font-size:11px;line-height:1.5;color:var(--muted)}.upload-policy{padding:12px;background:#f1f5ed;border-radius:9px}.admin-page{max-width:1400px;margin:0 auto;padding:40px 36px;min-height:calc(100dvh - 84px)}.admin-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.admin-heading h1{font-size:32px;font-weight:500;letter-spacing:-.8px}.admin-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:28px 0 16px}.admin-metric{padding:20px;background:#fff;border:1px solid #dfe5d9;border-radius:12px;display:flex;flex-direction:column;gap:12px}.admin-metric span{font-size:12px;color:#63735a}.admin-metric strong{font-size:23px;font-weight:500}.admin-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;margin-top:26px}.admin-layout>section{min-width:0}.admin-person{display:flex;text-align:left;justify-content:space-between;gap:15px;background:white;border:1px solid #dfe5d9;border-radius:12px;padding:18px;width:100%;margin:10px 0;color:var(--ink);font:inherit;cursor:pointer;transition:border-color .15s,background .15s}.admin-person:hover,.admin-person[aria-pressed=true]{border-color:#8a9c7c;background:#f5f8f2}.admin-identity,.admin-user-numbers{display:flex;flex-direction:column;gap:7px;overflow-wrap:anywhere;min-width:0}.admin-identity strong{font-size:14px;font-weight:550}.admin-identity span,.admin-user-numbers span{font-size:12px;line-height:1.6}.admin-identity small,.admin-user-numbers small{font-size:11px;color:#63735a;line-height:1.5}.plan-badge{align-self:flex-start;background:#eaf2e4;padding:2px 8px;border-radius:5px;color:#3d5731}.admin-detail{background:#fff;padding:24px;border:1px solid #dfe5d9;border-radius:12px;align-self:start;overflow-wrap:anywhere}.admin-detail h2{margin-top:0;font-size:23px;font-weight:500}.admin-detail h3{font-size:15px;margin:25px 0 12px}.admin-detail p{font-size:12px;line-height:1.6}.admin-project{padding:16px 0;border-top:1px solid #e5eade}.admin-project>strong{font-size:14px}.admin-connection{display:block;width:100%;text-align:left;background:#f4f7f0;border:1px solid #e0e7d9;border-radius:7px;padding:12px;color:#415439;font:inherit;font-size:12px;margin:7px 0;cursor:pointer;min-height:44px}.admin-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0}.admin-pagination span{font-size:12px}.admin-pagination .button{min-height:44px}#public-link-box{display:flex;flex-direction:column;gap:10px;margin:20px 0}#public-link-box label{font-size:12px}#public-link-value{width:100%;padding:12px;border:1px solid #cdd8c5;border-radius:8px;font:inherit;font-size:12px;color:var(--ink)}#public-revoke-confirm{border-top:1px solid #e0e7d9;padding-top:12px}.admin-page :focus-visible,.public-header :focus-visible{outline:2px solid #647f53;outline-offset:3px}
@media(max-width:1050px){.admin-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-layout{grid-template-columns:1fr}.header-right{flex-wrap:wrap;gap:8px}.admin-heading h1{font-size:26px}}
@media(max-width:600px){.admin-page{padding:26px 18px}.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-metric{padding:15px}.admin-person{flex-direction:column}.admin-detail{padding:18px}.public-header{width:100%;justify-content:flex-start}.public-header .button{font-size:11px}.admin-heading{align-items:flex-start}.admin-heading h1{font-size:24px}.card-actions{justify-content:flex-start;margin-left:0}.card-bottom{align-items:flex-start;gap:12px}}
@media(prefers-reduced-motion:reduce){.admin-person{transition:none}}
.texture-filters{display:grid;grid-template-columns:1fr 220px;gap:14px;margin-top:20px}.texture-filters label,.texture-picker-query{display:grid;gap:8px;font-size:12px;color:var(--muted)}.texture-filters input,.texture-filters select,.texture-picker-query input,.texture-match-settings select{min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);font:inherit}.texture-match-settings{padding:14px 0;font-size:12px}.texture-match-settings summary{cursor:pointer;min-height:36px}.texture-match-settings label{display:inline-flex;gap:8px;align-items:center;min-height:44px;margin-right:16px}.texture-pagination{display:flex;gap:8px;align-items:center;margin:16px 0;font-size:12px}.texture-pagination span{flex:1}.texture-picker{width:min(850px,calc(100vw - 24px));max-width:850px}.texture-picker h2{overflow-wrap:anywhere;padding-right:20px}.texture-picker-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.texture-picker-tools label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px}.texture-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.texture-choice{display:flex;flex-direction:column;gap:8px;align-items:stretch;text-align:left;background:white;padding:10px;border:1px solid var(--line);border-radius:10px;min-width:0}.texture-choice:hover,.texture-choice[aria-pressed=true]{border-color:var(--green);background:var(--soft)}.texture-choice img{width:100%;height:112px;object-fit:contain;background:#f4f5f1;border-radius:6px}.texture-choice strong{font-size:11px;overflow-wrap:anywhere}.texture-choice small{color:var(--muted);font-size:10px}.texture-swatch:not([src]){background:repeating-linear-gradient(45deg,#f2f4ef,#f2f4ef 8px,#e7ebe2 8px,#e7ebe2 16px)}select:focus-visible{outline:3px solid #74a38d;outline-offset:3px}
@media(max-width:600px){.texture-filters{grid-template-columns:1fr}.texture-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.texture-pagination{flex-wrap:wrap}.texture-pagination span{flex-basis:100%}.texture-picker-tools{align-items:stretch;flex-direction:column}.texture-match-settings label{display:flex}.texture-row>div{min-width:0}.texture-select{max-width:100%}}

.texture-footer{display:block;z-index:2}.texture-footer-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.texture-footer-actions>span{flex:1}.texture-job{display:grid;gap:9px;padding:12px 14px;margin-bottom:12px;border:1px solid #d6e1d0;border-radius:9px;background:#f3f7f0}.texture-job #texture-job-status{font-size:12px;line-height:1.5;color:#33543f;overflow-wrap:anywhere}.texture-job progress{width:100%;height:8px;accent-color:var(--green)}.texture-job[data-state=error]{background:#fff6e9;border-color:#e4cba4}.texture-job[data-state=error] #texture-job-status{color:#79572e}#texture-save:disabled{cursor:default}#texture-dialog[aria-busy=true] #texture-save{cursor:progress}@media(max-width:600px){.texture-footer-actions>span{flex-basis:100%}.texture-footer-actions .button{flex:1}}

/* Keep mobile navigation slots equal, independently of the account role/page. */
.account-actions{display:contents}
@media(max-width:760px){
  .header{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:12px 8px;height:auto;min-height:70px;padding:14px 18px}
  .header .brand{grid-column:1;grid-row:1;min-width:0}
  .header #account-nav{display:contents}
  .header .account-label{grid-column:2;grid-row:1;margin:0;min-width:0;max-width:110px}
  .header #logout{grid-column:3;grid-row:1;width:44px;height:44px;justify-self:end}
  .header .account-actions{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .header .account-actions:not(:has(>button:not([hidden]))){display:none}
  .header .account-actions>.button{width:100%;min-width:0;height:44px;min-height:44px;padding:0 12px;font-size:12px;line-height:1.3;justify-content:center;white-space:normal}
  .header .account-actions>.button:nth-last-child(1 of :not([hidden])):nth-child(odd of :not([hidden])){grid-column:1/-1}
  .header #nav-library{border:1px solid #dce3d9;background:#fff;color:var(--green)}
  .header .public-header{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;width:100%;margin:0}
  .header .public-header .button{height:auto;min-height:44px;padding:10px 12px;justify-content:center;line-height:1.3}
  .header:not(:has(#account-nav:not([hidden]))){grid-template-columns:minmax(0,1fr)}
}
