/* GraftAccount web app. The header, the frame and the title-block footer are the SITE'S parts, copied unchanged into assets/site/*.css (owner 2026-11-28).
   This file holds the fonts, the site's variables and buttons, and the app's own pieces (fields, cards with the site's hover, the account chip and menu),
   laid out as GraftLab – Design's mockup web-studio-r1. */
@font-face { font-family: "Chakra Petch"; src: url("/assets/fonts/chakra_petch_bold.woff") format("woff"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm_plex_mono_regular.woff") format("woff"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm_plex_mono_bold.woff") format("woff"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm_plex_sans_regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm_plex_sans_semibold.woff") format("woff"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm_plex_sans_bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/assets/fonts/ibm_plex_sans_arabic_regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/assets/fonts/ibm_plex_sans_arabic_semibold.woff") format("woff"); font-weight: 500 700; font-display: swap; }

/* the site's variables (shared_parts.py VARS + the V13 tokens) */
:root { --title: "Chakra Petch", system-ui, sans-serif; --text: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --paper: #EDE9DF; --light: #F3ECDD; --ink: #201E19; --header: #201E1B; --muted: #625B50; --rule: #BDB5A6; --rule2: #D6CFC2; --accent: #E85D04; --accent-text: #A93D08; --accent-soft: #F4DDC6;
  --ok: #2F6B4F; --bad: #B3261E; --r-owner: #201E19; --r-designer: #B8327F; --r-tech: #2B63C6; --r-site: #0B7385; --r-acc: #6E4FC9; --ease: cubic-bezier(.2, .7, .2, 1); }
html[lang=ar] { --title: "Chakra Petch", "IBM Plex Sans Arabic", system-ui, sans-serif; --text: "IBM Plex Sans Arabic", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 15px/1.5 var(--text); display: flex; flex-direction: column; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
@keyframes orbit { 0% { transform: translate(0, 0) } 22% { transform: translate(var(--ox, -82px), 0) } 44% { transform: translate(var(--ox, -82px), var(--oy, -82px)) } 66% { transform: translate(0, var(--oy, -82px)) } 88%, 100% { transform: translate(0, 0) } }
/* Arabic words never in the mono font, never spaced, never capitals (the site's .ar-t rule, applied by language here) */
html[lang=ar] .label, html[lang=ar] .fld label, html[lang=ar] .kv > div:nth-child(odd), html[lang=ar] .tag, html[lang=ar] .tblock small, html[lang=ar] .foot-links, html[lang=ar] .hbtn, html[lang=ar] .acct small, html[lang=ar] .mlang-row .ml, html[lang=ar] .menu small { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
html[lang=ar] * { letter-spacing: 0; }

/* frame: the site's part as it is (r41: 5 px corner bars centred on the 1 px line) */

/* header additions for the app: the section words (site nav style + the orange underline growing on hover), the account chip, its menu */
header.top nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--accent); transition: right .3s; }
header.top nav a:hover::after, header.top nav a.on::after { right: 0; }
header.top .logo .sub { font: 600 11px var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; border-left: 1px solid var(--rule); padding-left: 10px; margin-left: 2px; }
.acct { display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 2px 0; color: var(--ink); }
.acct .t { text-align: left; line-height: 1.2; } .acct b { display: block; font: 600 13px var(--text); } .acct small { font: 500 11px var(--mono); color: var(--muted); letter-spacing: .04em; }
.acct svg.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.acct-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 14px); width: 270px; background: var(--paper); border: 1px solid var(--ink); z-index: 60; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); text-align: start; }
.menu .mh { padding: 14px 16px; border-bottom: 1px solid var(--rule); display: flex; gap: 10px; align-items: center; }
.menu .mh b { display: block; } .menu .mh small { font: 500 12px var(--mono); color: var(--muted); }
.menu a, .menu button { display: flex; width: 100%; justify-content: space-between; padding: 12px 16px; text-decoration: none; font: 500 14px var(--text); border: 0; border-bottom: 1px solid var(--rule); background: none; cursor: pointer; color: var(--ink); text-align: start; }
.menu > :last-child { border-bottom: 0; } .menu a:hover, .menu button:hover { background: #F3F0E8; }
@media (max-width: 1180px) { .acct .t { display: none; } }
@media (max-width: 820px) { header.top .right > .acct-wrap { display: none; } .mmenu .macct { display: flex; gap: 12px; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--ink); } .mnav button.mout { width: 100%; text-align: start; background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 15px 2px; font: 700 25px var(--title); cursor: pointer; color: var(--bad); } }

/* people: initials CENTRED in the circle */
.av { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 12px/1 var(--text); letter-spacing: 0; color: #fff; flex: none; background: var(--rc, var(--ink)); text-align: center; }
.av.lg { width: 56px; height: 56px; font-size: 19px; }
.av.client { background: transparent; color: var(--ink); border: 1.5px dashed var(--ink); }
[data-r=owner] { --rc: var(--r-owner); } [data-r=designer] { --rc: var(--r-designer); } [data-r=tech] { --rc: var(--r-tech); } [data-r=site] { --rc: var(--r-site); } [data-r=accountant] { --rc: var(--r-acc); }
.role { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--text); padding: 2px 8px; border: 1px solid var(--rule); border-radius: 4px; white-space: nowrap; }
.role::before { content: ""; width: 8px; height: 8px; background: var(--rc, var(--ink)); }
.role[data-r=client]::before { background: transparent; border: 1px dashed var(--ink); border-radius: 50%; }

/* page */
main { width: 100%; max-width: 1320px; margin: 0 auto; padding: 34px 40px 24px; flex: 1; }
.label { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.label em { font-style: normal; color: var(--accent-text); margin-inline-end: 10px; }
h1 { font: 700 clamp(34px, 4.4vw, 52px)/1 var(--title); letter-spacing: -.02em; margin: 0; }
h2 { font: 700 24px/1.1 var(--title); margin: 0; } h3 { font: 700 19px/1.15 var(--title); margin: 0; }
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3 { line-height: 1.3; }
.lead { color: var(--muted); font-size: 16px; margin: 10px 0 0; max-width: 62ch; }
.phead { margin-bottom: 26px; }

/* the site's buttons: primary (orange, arrow cell, arrow hop on hover) and outline (.hbtn from the header part) */
.btn { background: var(--accent); color: #fff; font: 700 15px var(--text); padding: 0 18px; height: 46px; border: 0; display: inline-flex; gap: 16px; align-items: center; text-decoration: none; cursor: pointer; transition: background-color .25s, transform .25s; }
.btn span { border-inline-start: 1px solid rgba(255, 255, 255, .45); padding-inline-start: 14px; overflow: hidden; display: inline-flex; align-self: stretch; align-items: center; }
.btn .ar { display: inline-block; font-style: normal; }
.btn:hover { background: #D25203; } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .6; cursor: default; }
.btn:hover .ar { animation: arrow .5s cubic-bezier(.6, 0, .3, 1); } html[dir=rtl] .btn:hover .ar { animation-name: arrowR; } html[dir=rtl] .btn .ar { transform: scaleX(-1); }
@keyframes arrow { 0% { transform: none } 45% { transform: translate(9px, -9px); opacity: 0 } 46% { transform: translate(-9px, 9px); opacity: 0 } 100% { transform: none; opacity: 1 } }
@keyframes arrowR { 0% { transform: scaleX(-1) } 45% { transform: scaleX(-1) translate(9px, -9px); opacity: 0 } 46% { transform: scaleX(-1) translate(-9px, 9px); opacity: 0 } 100% { transform: scaleX(-1); opacity: 1 } }
.btn.full { width: 100%; justify-content: space-between; }
.hbtn.dlb:hover, .hbtn.ob:hover { background: var(--ink); color: var(--paper); }
.tl { font: 600 13px var(--text); color: var(--accent-text); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; white-space: nowrap; }
.tl:hover { text-decoration: underline; text-underline-offset: 3px; } .tl.red { color: var(--bad); }

/* cards: the site's card — hover = soft highlight + the drafting grid appearing under the pointer, inside the card (WEB_UI "Every card") */
.panel, .card { position: relative; background: var(--light); border: 1px solid var(--ink); min-width: 0; transition: background-color .35s; isolation: isolate; }
.panel::before, .panel::after, .card::before, .card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; z-index: -1; }
.panel::before, .card::before { background-image: linear-gradient(#62594326 1px, transparent 1px), linear-gradient(90deg, #62594326 1px, transparent 1px); background-size: 18px 18px;
  -webkit-mask: radial-gradient(190px circle at var(--mx, 50%) var(--my, 50%), #000 0, rgba(0, 0, 0, .55) 45%, transparent 75%); mask: radial-gradient(190px circle at var(--mx, 50%) var(--my, 50%), #000 0, rgba(0, 0, 0, .55) 45%, transparent 75%); }
.panel::after, .card::after { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 93, 4, .11), transparent 65%); }
.panel:hover, .card:hover { background: #F3F0E8; } .panel:hover::before, .panel:hover::after, .card:hover::before, .card:hover::after { opacity: 1; }
@media (hover: none) { .panel::before, .panel::after, .card::before, .card::after { display: none; } }
.panel > .ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rule2); }
.panel > .pb { padding: 18px 20px; } .panel > .pb.tight { padding-top: 4px; padding-bottom: 4px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.col { display: grid; gap: 24px; align-content: start; min-width: 0; }

/* fields (WEB_UI §11: app-like pages use 40 px controls, mono 12 px labels) */
.fld { margin-bottom: 16px; }
.fld label { display: block; font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.in { height: 40px; width: 100%; border: 1px solid var(--ink); background: #fff; padding: 0 12px; font-size: 15px; border-radius: 0; }
input.in:focus { outline: 0; box-shadow: 0 0 0 2px var(--accent); }
.eye { display: flex; } .eye input { flex: 1; min-width: 0; }
.eye button { width: 44px; border: 1px solid var(--ink); border-inline-start: 0; background: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.eye button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.err { font-size: 13px; color: var(--bad); margin-top: 6px; }
.fld.bad .in { border-color: var(--bad); }
.fg2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.rules { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.rules li { display: flex; gap: 8px; align-items: center; } .rules li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rule); } .rules li.ok::before { background: var(--ok); }
.msg { font-size: 14px; margin-top: 12px; } .msg:empty { display: none; } .msg.bad { color: var(--bad); } .msg.ok { color: var(--ok); }
.alert { border: 1px solid var(--bad); background: #F8E7E4; color: #7A1A14; font-size: 14px; padding: 10px 12px; margin-bottom: 16px; }
.more { padding: 12px 0 8px; } .gap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }

/* sign-in layout (AC-010) */
.si-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: start; padding-top: 24px; }
.si-grid .side ul { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--rule2); }
.si-grid .side li { display: grid; grid-template-columns: 34px 1fr; padding: 12px 0; border-bottom: 1px solid var(--rule2); font-size: 15px; }
.si-grid .side li i { font: 600 11px var(--mono); color: var(--accent-text); font-style: normal; padding-top: 3px; }
.card { padding: 28px; } .card h2 { margin-bottom: 18px; }
.right-a { display: flex; justify-content: flex-end; margin-top: 8px; }
.note { font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule2); margin-top: 20px; padding-top: 14px; }

/* My account (AC-020) */
.prof { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.prof b { font: 700 22px var(--title); display: block; } .prof .r { margin-top: 4px; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-top: 1px solid var(--rule2); }
.kv > div { padding: 11px 0; border-bottom: 1px solid var(--rule2); overflow-wrap: anywhere; }
.kv > div:nth-child(odd) { font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 13px; }
.mono { font: 500 14px var(--mono); }
.dev { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule2); }
.dev:last-child { border-bottom: 0; }
.dev svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dev b { display: block; font-weight: 600; } .dev small { color: var(--muted); font-size: 13px; }
.tag { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--ok); color: var(--ok); padding: 1px 6px; margin-inline-start: 6px; }
.apps a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule2); text-decoration: none; font-weight: 600; }
.apps a:last-child { border-bottom: 0; } .apps a small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; } .apps a:hover { color: var(--accent-text); }
.desk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); border: 1px dashed var(--rule); padding: 10px 12px; }
.desk svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.plist > div { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule2); }
.plist > :last-child { border-bottom: 0; } .plist small { font: 500 12px var(--mono); color: var(--muted); }
.notice { border-inline-start: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 16px; margin: 0 0 16px; }
/* the site footer's links row on the app: Privacy · Terms · email */
.gfoot { width: 100%; max-width: 1320px; margin-inline: auto; }

@media (max-width: 1180px) { .si-grid { gap: 40px; grid-template-columns: minmax(0, 1fr) 400px; } }
@media (max-width: 820px) {
  main { padding: 24px 16px 16px; }
  .si-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 0; } .si-grid .side ul { display: none; } .card { padding: 20px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); } .fg2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; } .kv > div:nth-child(odd) { padding-bottom: 0; border-bottom: 0; }
  .eye button, .btn, .tl, .hbtn { min-height: 44px; } .tl { display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
