/* Creo Network (/nfc/): Shell v2 structure + Warm Field skin. Layout and visual only.
   Spec: /workspace/tools-v10/SPEC.md (10 Nov 2026).
   Loaded after the page's inline <style> and after /shared/creo-tools.css.
   No markup, text, script or behaviour is changed by this file.

   Where the page's own elements go:
   >= 1024px  aside#desktopNav ........ THE tool rail (ink, --rail-w, fixed under the global bar, .ct-rail-item style)
              header.top .brand ....... rail head: tool name (+ one-line purpose, CSS-generated)
              header.top .pill ........ rail foot: status, behind the 1px --instrument-line divider
              .screen eyebrow/h1/p .... ink page header band at the top of the content column
              #storageNotice .......... notice directly under the band
   <  1024px  nav#mobileNav ........... ink pill row, fixed strip directly under the global bar
              header.top .............. end of the page (tool name + status stay reachable)
   The active .screen uses display:contents so its heading, the storage notice and
   its cards become one column; flex `order` puts the notice under the band. */

/* 1. Tokens: re-point the page's own :root variables */
:root{
  --bg:var(--paper-200);
  --card:var(--paper-050);
  --ink:var(--ink-950);
  --muted:#5F574B;
  --line:var(--paper-400);
  --accent:var(--orange-500);
  --accent2:var(--orange-500);
  --green:#1F6B45;
  --shadow:0 4px 0 var(--ink-950);
  --r:22px;
  --hard:0 4px 0 var(--ink-950);
  --hard-lg:0 6px 0 var(--ink-950);
  --edge:2px solid var(--ink-950);
  --edge-thin:1.5px solid var(--ink-950);
  --on-ink-muted:var(--instrument-muted);
  --on-ink-line:var(--instrument-line);
  --nfc-gutter:32px;      /* content gutters (spec: 24 to 32) */
  --nfc-max:1200px;       /* content max width */
  --nfc-strip:60px;       /* phone/tablet pill strip height */
}

/* Keyboard/anchor scrolling stops below the global bar (and the pill strip below 1024px) */
html{scroll-padding-top:calc(var(--shell-h) + 8px)}
@media (max-width:1023.98px){html{scroll-padding-top:calc(var(--shell-h) + var(--nfc-strip) + 8px)}}

/* 2. Base type */
body{font-family:var(--font);background:var(--paper-200);color:var(--ink-950)}
h1,h2,h3{font-family:var(--display);font-weight:700;color:var(--ink-950)}
h1{letter-spacing:-.035em;line-height:1.02}
h2{letter-spacing:-.02em;line-height:1.15}
h3{letter-spacing:-.015em}
p{color:var(--muted)}
.eyebrow{font-family:var(--mono);font-weight:600;letter-spacing:.08em;color:var(--muted)}
.small{color:var(--muted)}
hr{border-top:1.5px solid var(--paper-400)}
input[type=checkbox]{accent-color:var(--ink-950)}

/* 3. Gate (signed out / denied): under the global bar */
#nfc-auth-view,#nfc-denied-view{top:var(--shell-h);background:var(--paper-200)}
.nfc-gate-box{background:var(--paper-050);border:var(--edge);border-radius:22px;box-shadow:var(--hard-lg)}
.nfc-gate-box h1{font-family:var(--display);font-weight:700;font-size:28px;letter-spacing:-.03em;color:var(--ink-950)}
.nfc-gate-box h1 span{color:var(--ink-950);text-decoration:underline;text-decoration-color:var(--orange-500);text-decoration-thickness:4px;text-underline-offset:5px}
.nfc-gate-box p{color:var(--muted)}
.nfc-gate-box .nfc-mark{color:var(--ink-950)}
.nfc-email{color:var(--ink-950)!important;font-family:var(--mono)}
.nfc-google{display:flex;align-items:center;justify-content:center;min-height:48px;border:var(--edge);border-radius:999px;
  background:var(--paper-050);color:var(--ink-950);font-weight:700;text-decoration:none;box-shadow:var(--hard);
  transition:transform var(--t-micro) var(--ease),box-shadow var(--t-micro) var(--ease)}
a.nfc-google{background:var(--orange-500);color:#fff}
.nfc-google:hover{background:var(--paper-100)}
a.nfc-google:hover{background:#F04E0A}
.nfc-google:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink-950)}

/* 4. App frame (all widths) */
.app{max-width:none;margin:0;min-height:calc(100vh - var(--shell-h));display:flex;flex-direction:column}
.layout{display:block;min-height:0;flex:1 0 auto}
.top{-webkit-backdrop-filter:none;backdrop-filter:none}  /* no blur; also keeps .pill's fixed position viewport-based */
.brand{font-family:var(--display);font-weight:700;letter-spacing:-.02em}
.brand span{color:inherit}
/* One-line purpose under the tool name (reuses the Home eyebrow wording) */
.brand::after{content:"Personal relationship memory";display:block;margin-top:6px;font:400 13px/1.45 var(--font);letter-spacing:0}
.pill{background:transparent;border:0;border-radius:0;padding:0;font:500 12px/1.4 var(--mono);letter-spacing:.04em;text-transform:uppercase}

/* Content column: the active screen's children, the notice and the cards share one flex column */
.main{display:flex;flex-direction:column;padding:0 0 64px;min-width:0}
.screen.active{display:contents}
.main>.notice,.screen.active>*{order:2;width:min(var(--nfc-max),calc(100% - 2 * var(--nfc-gutter)));margin-left:auto;margin-right:auto;min-width:0}

/* 5. Page header band: the screen's existing eyebrow, h1 and subtitle, restyled */
.screen>.eyebrow:first-child,
.screen>.eyebrow:first-child+h1,
.screen>.eyebrow:first-child+h1+p,
#contactDetail::before{
  order:0;width:100%;margin:0;background:var(--ink-950);color:var(--paper-050);
  padding-left:max(var(--nfc-gutter),calc((100% - var(--nfc-max)) / 2));
  padding-right:max(var(--nfc-gutter),calc((100% - var(--nfc-max)) / 2))}
.screen>.eyebrow:first-child,#contactDetail::before{padding-top:30px;font:600 12px/18px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--instrument-muted)}
.screen>.eyebrow:first-child::before{content:"Network · "}
.screen>.eyebrow:first-child+h1{padding-top:8px;padding-bottom:32px;font:700 48px/1.04 var(--display);letter-spacing:-.03em;color:var(--paper-050)}
.screen>.eyebrow:first-child+h1:has(+p){padding-bottom:8px}
.screen>.eyebrow:first-child+h1+p{padding-bottom:32px;font-size:15px;line-height:1.5;color:var(--instrument-muted)}
.screen>.eyebrow:first-child+h1+p>*{max-width:72ch}
/* Contact detail: the screen has no heading of its own; the band carries the eyebrow and the existing back button */
#contactDetail::before{content:"Network · Contact";display:block;box-sizing:border-box;height:134px}
#contactDetail>.btn.ghost:first-child{order:0;width:auto;align-self:flex-start;position:relative;z-index:1;
  display:inline-flex;align-items:center;box-sizing:border-box;height:48px;min-height:48px;padding-top:0;padding-bottom:0;
  margin:-76px 0 28px max(var(--nfc-gutter),calc((100% - var(--nfc-max)) / 2));
  background:var(--paper-050);border-color:var(--paper-050);box-shadow:0 3px 0 var(--instrument-line)}
#contactDetail>.btn.ghost:first-child:active{box-shadow:0 0 0 var(--instrument-line)}
#contactDetailContent{margin-top:0!important}

/* 6. Notices: one style, directly under the band */
.notice,.profile-edit-note{background:var(--paper-100);color:#3F3A32;border:0;border-left:4px solid var(--ink-950);border-radius:0 8px 8px 0;
  padding:12px 16px;font-size:14px;line-height:1.5}
.main>.notice{order:1;margin-top:20px}
.notice .btn{margin-top:10px}
/* Screen content starts one gap below the band/notice */
.screen.active>.grid,.screen.active>.card,.screen.active>.profile-shell,#contactDetailContent>.grid{margin-top:24px}
.screen.active>.list{margin-top:12px}

/* 7. Cards and surfaces */
.grid{gap:20px}
.card{background:var(--paper-050);border:var(--edge);border-radius:22px;box-shadow:var(--hard);padding:22px}
.hero{background:var(--paper-050);color:var(--ink-950);box-shadow:inset 6px 0 0 var(--orange-500),var(--hard);padding:28px 28px 28px 34px}
.hero h2{color:var(--ink-950);font-size:30px}
.hero p,.hero .small{color:var(--muted)}
.metric{font-family:var(--display);font-weight:700;font-size:56px;letter-spacing:-.03em;color:var(--ink-950);line-height:1}

/* 8. Buttons: pills with a hard edge, 3px press */
.btn{min-height:44px;border:var(--edge);border-radius:999px;font-weight:700;box-shadow:0 3px 0 var(--ink-950);
  transition:transform var(--t-micro) var(--ease),box-shadow var(--t-micro) var(--ease),background var(--t-micro) var(--ease)}
.btn:active:not(:disabled){transform:translateY(3px);box-shadow:0 0 0 var(--ink-950)}
.primary{background:var(--orange-500);color:#fff}
.btn.primary:hover:not(:disabled){background:#F04E0A}
.secondary{background:var(--paper-100);color:var(--ink-950)}
.ghost{background:var(--paper-050);color:var(--ink-950);border:var(--edge)}
.btn.secondary:hover:not(:disabled),.btn.ghost:hover:not(:disabled){background:var(--paper-200)}
.btn:disabled{background:var(--paper-100);color:var(--muted);border:2px dashed #8A7F6E;box-shadow:none;cursor:not-allowed}
.close{width:44px;height:44px;background:var(--paper-100);border:var(--edge);border-radius:999px;color:var(--ink-950);font-size:22px;line-height:1;
  box-shadow:0 3px 0 var(--ink-950);transition:transform var(--t-micro) var(--ease),box-shadow var(--t-micro) var(--ease)}
.close:active{transform:translateY(3px);box-shadow:none}

/* 9. People, tags, timeline (small cards: radius 12) */
.person{background:var(--paper-050);border:var(--edge-thin);border-radius:12px}
.person[role=button]{cursor:pointer;box-shadow:0 3px 0 var(--ink-950);transition:transform var(--t-micro) var(--ease),box-shadow var(--t-micro) var(--ease)}
.person[role=button]:hover{background:var(--paper-100)}
.person[role=button]:active{transform:translateY(3px);box-shadow:none}
.card .person{box-shadow:none}
.card .list .person[role=button],#contactsList .person[role=button]{box-shadow:0 3px 0 var(--ink-950)}
.avatar{background:var(--paper-200);border:2px solid var(--ink-950);color:var(--ink-950);font-family:var(--display);font-weight:700}
.person .meta span{color:var(--muted)}
.tag{font-family:var(--mono);font-size:11.5px;font-weight:500;letter-spacing:.03em;border-radius:8px;background:var(--paper-100);color:var(--ink-950);border:1px solid var(--paper-400)}
.tag.due{background:var(--orange-500);color:#fff;border-color:var(--orange-500);font-weight:600}
.tag.done{background:#E1EFE4;color:#1F6B45;border-color:#B9D5C1}
.person .meta span.tag{font-size:12px;color:var(--ink-950)}
.person .meta span.tag.due{color:#fff}
.person .meta span.tag.done{color:#1F6B45}
.timeline{border-left:2px solid var(--ink-950)}
.timeline-item:before{background:var(--orange-500);border:2px solid var(--ink-950);width:12px;height:12px;left:-25px;top:5px}
.timeline-item strong{font-family:var(--display);font-weight:700}
.timeline-item details>summary{padding:12px 0;cursor:pointer}

/* 10. Forms */
input,textarea,select{background:var(--paper-050);color:var(--ink-950);border:1.5px solid var(--ink-950);border-radius:8px}
input::placeholder,textarea::placeholder{color:#6F6659}
input:focus,textarea:focus,select:focus{border-color:var(--ink-950);box-shadow:0 0 0 3px var(--orange-500)}
input:disabled{opacity:1}
label{font-weight:700;color:var(--ink-950)}
.checkbox input,.keep-row input{width:18px;height:18px}
select{min-height:44px}

/* 11. Profile preview */
.profile-shell{background:var(--paper-050);border:var(--edge);border-radius:22px;box-shadow:var(--hard-lg);overflow:hidden}
.cover{background:var(--ink-950);background-image:linear-gradient(90deg,var(--orange-500) 0 64px,transparent 64px);background-size:100% 6px;background-repeat:no-repeat;background-position:0 100%}
.profile-photo{background:var(--paper-200);border:5px solid var(--paper-050);box-shadow:0 0 0 2px var(--ink-950);color:var(--ink-950);font-family:var(--display);font-weight:700;border-radius:22px}
.public-handle{font-family:var(--mono)}
.linktree-link{background:var(--paper-050);border:var(--edge-thin);border-radius:12px;box-shadow:0 3px 0 var(--ink-950);color:var(--ink-950);
  transition:transform var(--t-micro) var(--ease),box-shadow var(--t-micro) var(--ease)}
.linktree-link:active{transform:translateY(3px);box-shadow:none}
.link-icon{background:var(--paper-200);border-radius:8px;color:var(--ink-950)}
.section-title-row h3{font-family:var(--display);font-weight:700}
.portfolio-card{background:var(--paper-050);border:var(--edge-thin);border-radius:12px;box-shadow:0 3px 0 var(--ink-950)}
.portfolio-thumb{background:var(--paper-200);border-bottom:1.5px solid var(--ink-950)}
.portfolio-actions button{min-height:44px;border:1.5px solid var(--ink-950);border-radius:999px;background:var(--paper-100);color:var(--ink-950);font-weight:700}
.portfolio-actions button:active{transform:translateY(3px)}

/* 12. Sheets and modals: solid backdrop, no blur */
.modal{background:rgba(25,23,19,.62)}
.sheet{background:var(--paper-050);border:var(--edge);border-radius:22px;box-shadow:0 6px 0 var(--ink-950)}
.toast{background:var(--ink-950);color:var(--paper-050);border:2px solid var(--paper-050);font-weight:600}

/* 13. Capture: namecard, upload, voice */
.capture-box{border:2px dashed #8A7F6E;border-radius:12px;background:var(--paper-100)}
.capture-box.has-image{border:var(--edge);background:var(--ink-950)}
.capture-icon{background:var(--paper-050);border:2px solid var(--ink-950);border-radius:12px;box-shadow:0 3px 0 var(--ink-950);color:var(--ink-950)}
.upload-drop{border:2px dashed #8A7F6E;border-radius:12px;background:var(--paper-100)}
.upload-preview{border-radius:8px;background:var(--paper-200)}
.file-chip{background:var(--paper-050);border:var(--edge-thin);border-radius:8px}
.scan-state{background:var(--paper-100);border:var(--edge-thin);border-radius:12px}
.progress{background:var(--paper-050);border:1.5px solid var(--ink-950);height:10px}
.progress>div{background:var(--orange-500)}
.conf{font-family:var(--mono);font-weight:600;letter-spacing:.03em;border-radius:8px}
.conf.high{background:#E1EFE4;color:#1F6B45}
.conf.med{background:#FBEBCB;color:#8A5200}
.conf.low{background:#F8E0D8;color:#A3321C}
.recorder{background:var(--paper-100);border:var(--edge);border-radius:12px}
.record-orb{background:var(--paper-050);border:2px solid var(--ink-950)}
.record-orb:before{background:var(--orange-500)}
.wave span{background:var(--paper-400)}
.wave.live span{background:var(--orange-500)}
.timer{font-family:var(--mono);font-weight:600;color:var(--ink-950)}
.status-line{color:var(--muted)}

/* 14. Desktop (>= 1024px): aside#desktopNav is the tool rail */
@media (min-width:1024px){
  .nav{position:fixed;z-index:40;top:var(--shell-h);left:0;bottom:0;width:var(--rail-w);height:auto;
    display:flex;flex-direction:column;gap:4px;padding:98px 14px 76px;overflow-y:auto;
    background:var(--ink-950);color:var(--paper-050);border:0}
  .nav button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;margin:0;padding:0 14px;border:0;border-radius:999px;
    background:transparent;color:var(--paper-050);font:600 15px var(--font);text-align:left;box-shadow:none;flex:none;
    transition:transform var(--t-micro) var(--ease)}
  .nav button:hover{background:#2A2620;color:var(--paper-050)}
  .nav button.active{background:var(--paper-050);color:var(--ink-950);font-weight:600;box-shadow:none}
  .nav button:active{transform:translateY(3px)}
  /* rail head: header.top sits over the rail's top (it no longer forms a bar) */
  .top{position:fixed;z-index:41;top:var(--shell-h);left:0;width:var(--rail-w);height:auto;display:block;
    padding:24px 24px 0;background:var(--ink-950);border:0;color:var(--paper-050);pointer-events:none}
  .top>*{pointer-events:auto}
  .brand{display:block;font-size:22px;line-height:1.15;color:var(--paper-050)}
  .brand::after{color:var(--instrument-muted)}
  /* rail foot: status behind the 1px divider */
  .pill{position:fixed;z-index:41;left:14px;bottom:18px;width:calc(var(--rail-w) - 28px);padding:16px 10px 0;
    border-top:1px solid var(--instrument-line);background:var(--ink-950);color:var(--instrument-muted)}
  .main{margin-left:var(--rail-w);min-height:calc(100vh - var(--shell-h))}
  .mobile-nav{display:none}
}

/* 15. Phone and tablet (< 1024px): pill strip under the global bar, no rail */
@media (max-width:1023.98px){
  .layout{display:block}
  .nav{display:none}
  .app{padding-top:var(--nfc-strip)}
  .main{padding:0 0 40px}
  #mobileNav{display:flex;align-items:center;gap:4px;position:fixed;z-index:45;top:var(--shell-h);left:0;right:0;bottom:auto;
    height:var(--nfc-strip);margin:0;padding:8px max(12px,env(safe-area-inset-left));
    overflow-x:auto;overflow-y:hidden;scrollbar-width:none;
    background:var(--ink-950);border:0;border-bottom:1px solid var(--instrument-line);border-radius:0;box-shadow:none;
    -webkit-backdrop-filter:none;backdrop-filter:none}
  #mobileNav::-webkit-scrollbar{display:none}
  #mobileNav button{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:0 18px;
    border:0;border-radius:999px;background:transparent;color:var(--instrument-muted);font:600 14px var(--font);white-space:nowrap;
    transition:transform var(--t-micro) var(--ease)}
  #mobileNav button:hover{color:var(--paper-050);background:#2A2620}
  #mobileNav button.active{background:var(--paper-050);color:var(--ink-950);font-weight:700}
  #mobileNav button:active{transform:translateY(3px)}
  /* header.top moves to the end of the page: tool name and status stay reachable */
  .top{order:2;position:static;height:auto;display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px 16px;
    margin:0;padding:22px var(--nfc-gutter) calc(26px + env(safe-area-inset-bottom));
    background:var(--paper-100);border:0;border-top:2px solid var(--ink-950);color:var(--ink-950)}
  .brand{font-size:19px;line-height:1.15;color:var(--ink-950)}
  .brand::after{color:var(--muted)}
  .pill{color:var(--muted);padding-top:3px}
  .screen>.eyebrow:first-child+h1{font-size:40px}
  .card{margin-bottom:16px}
  .grid>.card:last-child{margin-bottom:0}
  .hero h2{font-size:26px}
  .profile-shell{border:var(--edge);border-radius:22px;box-shadow:var(--hard-lg);background:var(--paper-050);overflow:hidden}
  .cover{border-radius:0}
  .sheet{border-radius:22px 22px 12px 12px;border-bottom-width:0;box-shadow:none}
}
@media (max-width:800px){
  .grid{margin-top:24px}
  .card{padding:18px}
  .hero{padding:22px 20px 22px 26px}
}
@media (max-width:520px){
  :root{--nfc-gutter:16px}
  .screen>.eyebrow:first-child,#contactDetail::before{padding-top:22px}
  .screen>.eyebrow:first-child+h1{font-size:32px;padding-bottom:24px}
  .screen>.eyebrow:first-child+h1+p{padding-bottom:24px;font-size:14px}
  #contactDetail::before{height:122px}
  #contactDetail>.btn.ghost:first-child{margin-top:-72px;margin-bottom:24px}
  #mobileNav button{padding:0 14px}
  .metric{font-size:48px}
  .hero h2{font-size:24px}
}
