/* Farm Ledger — sign-in, account and people screens (public/app/account.js).
   Large type and big targets: these screens are used on phones, often outdoors, by people
   who don't use apps much. Colours reuse the app's own tokens. */
.gate-card.acct{max-width:460px;padding:24px 22px 20px;}
.acct h2{font-family:var(--font-display);font-size:24px;margin:6px 0 6px;color:var(--pasture-dark,#22362B);}
.acct .lead{font-size:15.5px;line-height:1.45;margin:0 0 14px;color:var(--ink);}
.acct .field{margin:12px 0;}
.acct label.lbl{display:block;font-weight:600;font-size:14.5px;margin-bottom:5px;color:var(--ink);}
.acct .opt{font-weight:400;color:var(--ink-soft,#5C645F);font-size:13px;}
.acct input[type=text],.acct input[type=email],.acct input[type=password],.acct input[type=tel]{width:100%;padding:12px;font-size:16px;min-height:48px;border:1.5px solid var(--line);border-radius:8px;background:#fff;color:#1E2420;box-sizing:border-box;}
.acct input:focus-visible,.acct button:focus-visible,.acct a:focus-visible{outline:3px solid #E0A93B;outline-offset:2px;}
.acct input[aria-invalid=true]{border-color:#A8461F;background:#FFF6F2;}
.acct .ferr{color:#A8461F;font-size:13.5px;margin-top:4px;min-height:0;}
.acct .help{color:var(--ink-soft,#5C645F);font-size:13px;margin-top:4px;line-height:1.4;}
.acct .pw-wrap{position:relative;display:flex;}
.acct .pw-wrap input{padding-right:78px;}
.acct .pw-toggle{position:absolute;right:6px;top:6px;bottom:6px;min-width:64px;border:1px solid var(--line);background:#F4F1E8;border-radius:6px;font:600 13px var(--font-ui);color:#22362B;cursor:pointer;}
.acct .meter{display:flex;gap:4px;margin-top:6px;}
.acct .meter i{flex:1;height:6px;border-radius:3px;background:#DDD7C8;}
.acct .meter[data-s="1"] i:nth-child(-n+1){background:#C0392B;}
.acct .meter[data-s="2"] i:nth-child(-n+2){background:#D98E04;}
.acct .meter[data-s="3"] i:nth-child(-n+3){background:#5E8C3A;}
.acct .meter[data-s="4"] i{background:#2E6B3F;}
.acct .meter-label{font-size:13px;margin-top:3px;color:var(--ink-soft,#5C645F);}
.acct .code-input{font:700 28px/1.2 'Courier New',monospace !important;letter-spacing:10px;text-align:center;}
.acct .btn{width:100%;min-height:50px;font-size:16.5px;margin-top:8px;}
.acct .btn[disabled]{opacity:.55;cursor:not-allowed;}
.acct .linkrow{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:center;margin-top:14px;}
.acct .linkbtn{background:none;border:0;padding:8px 2px;min-height:40px;color:#22362B;font:600 14.5px var(--font-ui);text-decoration:underline;cursor:pointer;}
.acct .notice{border-radius:8px;padding:11px 13px;margin:10px 0;font-size:14.5px;line-height:1.45;}
.acct .notice.ok{background:#E6F0E2;border:1px solid #9BC28A;color:#1E4620;}
.acct .notice.warn{background:#FFF4DC;border:1px solid #E0C07A;color:#5A4210;}
.acct .notice.bad{background:#FBE9E3;border:1px solid #DFA28E;color:#7A2A12;}
.acct .gate-err{font-size:14.5px;}
.acct .check{display:flex;gap:10px;align-items:flex-start;margin:12px 0;font-size:14.5px;line-height:1.4;}
.acct .check input{width:22px;height:22px;margin-top:1px;flex:none;}
.acct .big-icon{font-size:44px;line-height:1;margin:4px 0 6px;}
.acct .farmlist{list-style:none;padding:0;margin:8px 0 12px;}
.acct .farmlist li{padding:10px 12px;border:1px solid var(--line);border-radius:8px;margin:6px 0;background:#fff;color:#1E2420;}
.acct .steps{margin:6px 0 12px;padding-left:20px;font-size:14.5px;line-height:1.6;}

/* account page (full screen, scrolls) */
.acct-page{position:fixed;inset:0;z-index:180;background:var(--paper);overflow-y:auto;-webkit-overflow-scrolling:touch;}
.acct-page[hidden]{display:none;}
.acct-page .ap-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 16px;background:var(--pasture,#22362B);color:#F2EEE3;}
.acct-page .ap-head h1{font:600 20px var(--font-display);margin:0;}
.acct-page .ap-close{min-height:44px;min-width:88px;border-radius:8px;border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;font:600 15px var(--font-ui);cursor:pointer;}
.acct-page .ap-body{max-width:760px;margin:0 auto;padding:16px 16px 60px;}
.acct-page section{background:var(--paper-raised,#FAF8F2);border:1px solid var(--line);border-radius:10px;padding:16px;margin:0 0 16px;}
.acct-page h3{font:600 17px var(--font-display);margin:0 0 10px;color:var(--pasture-dark,#22362B);}
.acct-page .row2{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
@media (max-width:600px){ .acct-page .row2{grid-template-columns:1fr;} }
.acct-page .btn{width:auto;min-height:44px;margin-top:6px;}
.acct-page .btnrow{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;}
.sess{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line);}
.sess:first-child{border-top:0;}
.sess .s-main{font-size:15px;}
.sess .s-sub{font-size:13px;color:var(--ink-soft,#5C645F);}
.sess .this{display:inline-block;background:#2E6B3F;color:#fff;border-radius:10px;padding:1px 8px;font-size:12px;margin-left:6px;}
.evlist{list-style:none;padding:0;margin:0;font-size:13.5px;}
.evlist li{padding:6px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;}
.evlist li:first-child{border-top:0;}

/* people & access */
.ppl-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px;}
.ppl-tabs button{min-height:40px;padding:6px 14px;border-radius:20px;border:1px solid var(--line);background:#fff;color:#22362B;font:600 14px var(--font-ui);cursor:pointer;}
.ppl-tabs button[aria-pressed=true]{background:#22362B;color:#fff;border-color:#22362B;}
.ppl-card{border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:8px 0;background:var(--paper-raised,#FAF8F2);}
.ppl-card .pc-top{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline;justify-content:space-between;}
.ppl-card .pc-name{font:600 17px var(--font-display);color:var(--ink);}
.ppl-card .pc-sub{font-size:13.5px;color:var(--ink-soft,#5C645F);margin-top:2px;word-break:break-word;}
.ppl-card .pc-farms{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;}
.ppl-card .pc-farm{font-size:13px;border:1px solid var(--line);border-radius:12px;padding:3px 10px;background:#fff;color:#1E2420;}
.ppl-card .pc-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.ppl-card .pc-actions .btn{min-height:42px;}
.st{display:inline-block;border-radius:12px;padding:2px 10px;font:600 12.5px var(--font-ui);}
.st-pending_verification{background:#ECE7DA;color:#5A4E32;}
.st-awaiting_approval{background:#FFE7B3;color:#6A4600;}
.st-approved{background:#DCEFD5;color:#1E4620;}
.st-rejected,.st-deactivated{background:#E8E3E0;color:#5A504B;}
.st-suspended{background:#F6D3C7;color:#7A2A12;}
.perm-grid{display:grid;grid-template-columns:1fr;gap:10px;}
.perm-farm{border:1px solid var(--line);border-radius:8px;padding:10px 12px;}
.perm-farm h4{margin:0 0 8px;font:600 15px var(--font-ui);}
.perm-farm select{width:100%;min-height:44px;font-size:15px;}
.perm-farm .check{margin:8px 0 0;}
.perm-farm.locked{opacity:.65;}
html[data-theme="dark"] .acct input[type=text],html[data-theme="dark"] .acct input[type=email],html[data-theme="dark"] .acct input[type=password],html[data-theme="dark"] .acct input[type=tel]{background:#FBFAF6;}
html[data-theme="dark"] .acct .linkbtn,html[data-theme="dark"] .acct-page .linkbtn{color:#BFE0C6;}
html[data-theme="dark"] .ppl-tabs button{background:#2A2F29;color:#E8E4D6;}
/* the sign-in card scrolls on short screens instead of being cut off at the top */
.gate{overflow-y:auto;-webkit-overflow-scrolling:touch;align-items:flex-start !important;}
.gate .gate-card{margin:auto 0;}
.acct label.lbl{text-transform:none;letter-spacing:normal;font-size:15px;}
.acct .opt{text-transform:none;letter-spacing:normal;}
/* V10 (Improvements #155): two-step sign-in — the QR code and the recovery codes, readable and easy to copy by hand */
.ts-qr{display:flex;justify-content:center;margin:8px 0 12px;}
.ts-qr svg{width:200px;height:200px;background:#fff;padding:8px;border-radius:8px;}
.ts-codes{list-style:none;padding:0;margin:8px 0 12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px;}
.ts-codes code{font-size:1.1rem;letter-spacing:.06em;}
