/* public/look-rb.css — THE RULEBOOK LOOK (html.look-rb).
   Ken's "yes" 2026-11-16 14:5x JST in his MAIN window 7e379616 to "Fix the CRM app to the rulebook? Yes or no."
   (COURIER 2026-11-16_1455). The rulebook is the One Look Rulebook, his yes 13:52 the same day:
   Reference/2026-11-16_all-apps-look-audit/2026-11-16_one-look-rulebook.html (10 rules).
   ⛔ Every rule here starts with html.look-rb, so staff keep today's look until he says yes to the pictures
   (lib/look-switch.js: RULEBOOK_LOOK off | preview | on; one phone opts in with ?rb=1). __tests__/look-rb.test.js
   refuses any loose selector. html.look-rb only ever sits on top of html.look-new (index.html's first script). */

/* ── Rule 1 · the app wears its own colour. The CRM's icon is pink (#FF2D55); small words, links and the one
   main button wear the darker pink #C2185B (read score 5.87 on white; the bright pink as text scores only 3.65).
   Every blue in this app is a token, so the swap is made once, here. The OS app's own blue tile on "Your apps"
   and the sign-in row stays blue on purpose: it is the OS app's colour, not ours. */
html.look-rb{
  --blue:#C2185B;
  --blue-ink:#C2185B;
  --blue-tint:#FDEEF3;
  --blue-tint-2:#FCE4EC;
  --blue-tint-a:#C2185B1a;
  --crm-fill:#FF2D55;          /* the bright pink: fills, bars, the selected day */
  --crm-ink:#C2185B;           /* the darker pink: words and the one main button */
  --chart-seq-2:#FF5C7C;
  --chart-seq-3:#FF9AAE;
  --chart-seq-4:#FFCCD6;
  --shadow-inset-seg:inset 0 -2px 0 #C2185B;
  --gradient-ai:linear-gradient(135deg, #FFF6F9, #FDEEF3);
  /* Rule 9 · the OS grey everywhere (the new look already set it; said again here so this layer stands alone). */
  --text2:#6e6e73;
}
html.look-rb .cal-day--selected,
html.look-rb .vm-b.on{background:var(--crm-ink);border-color:var(--crm-ink);}
html.look-rb .bottom-nav .nav-item.active{color:var(--crm-ink);}

/* ── Rule 3 · words in normal case. Capitals only for the small grey section label (.eye and its kin keep
   theirs). Chips, pills and buttons were set in capitals by .chip — they now read as written. */
html.look-rb .chip,
html.look-rb .chip-toggle,
html.look-rb .mone-card-salon,
html.look-rb .merge-src,
html.look-rb .card-client-number-label{
  text-transform:none;letter-spacing:0;
}
html.look-rb .chip{font-size:12px;font-weight:600;padding:3px 9px;}
html.look-rb .chip-toggle{font-weight:500;}
/* The dashed boxes with no job become plain pale buttons (rule 3 + rule 6). */
html.look-rb .clients-lookbook-link,
html.look-rb .insights-lookbook-link,
html.look-rb .insights-risk-open{border-style:solid;border-color:transparent;}

/* ── Rule 6 · one main button per screen, full colour; every other button is PALE: a soft pink fill, pink
   words, no outline. (.btn stays the one full button; a screen that drew two now draws one — see the
   screens.) */
html.look-rb .btn{background:var(--crm-ink);}
html.look-rb .btn-ghost,
html.look-rb .today-log,
html.look-rb .karte-enter-btn,
html.look-rb .card-report-btn,
html.look-rb .clients-lookbook-link,
html.look-rb .insights-lookbook-link,
html.look-rb .insights-risk-open,
html.look-rb .erase-cancel-btn,
html.look-rb .slow-retry,
/* 2026-11-20: Reject on the two review screens (teaching cases, merges) is a .btn too, so the line above painted it
   full pink with its grey words — unreadable. It is the second button: pale, like every other. */
html.look-rb .btn.btn-merge-reject,
html.look-rb .btn-pale{
  background:var(--blue-tint);color:var(--crm-ink);border:1px solid transparent;font-weight:600;
}
html.look-rb .btn-ghost:hover{border-color:transparent;color:var(--crm-ink);}
html.look-rb .chip-toggle{background:var(--fill-tint);border-color:transparent;color:var(--text);}
html.look-rb .chip-toggle.active{background:var(--blue-tint);border-color:var(--crm-ink);color:var(--crm-ink);}
html.look-rb .day-nav-arrow,
html.look-rb .day-nav-cal,
html.look-rb .day-nav-today,
html.look-rb .cal-nav-btn,
html.look-rb .karte-skip-opt{background:var(--fill-tint);border-color:transparent;}
html.look-rb .day-nav-today:not(:disabled){color:var(--crm-ink);}
html.look-rb .karte-skip-opt.sel{background:var(--blue-tint);border-color:var(--crm-ink);}

/* Rows sit together in ONE white card with thin lines between them (the OS list), never one card per row.
   Left: icon or initials · middle: title + one grey line · right: a pill or an arrow. */
html.look-rb .today-list,
html.look-rb .clients-list,
html.look-rb .kc-list,
html.look-rb .insights-list,
html.look-rb .concern-nudge-list{
  gap:0;padding:0;margin:var(--space-3) var(--gutter) var(--space-7);
  background:var(--white);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;
}
html.look-rb .today-list:empty,
html.look-rb .clients-list:empty,
html.look-rb .kc-list:empty{display:none;}
html.look-rb .today-list::before,
html.look-rb .today-list > .today-row::before{display:none;}
html.look-rb .today-list > .row,
html.look-rb .clients-list > .row,
html.look-rb .kc-list > .row,
html.look-rb .insights-list > .row,
html.look-rb .concern-nudge-list > .row{
  border:0;border-radius:0;margin:0;background:transparent;
  border-bottom:1px solid var(--border-soft);
  padding:12px 16px;
}
html.look-rb .today-list > .row:last-child,
html.look-rb .insights-list > .row:last-child,
html.look-rb .clients-list > .row:last-child,
html.look-rb .kc-list > .row:last-child,
html.look-rb .concern-nudge-list > .row:last-child{border-bottom:0;}
html.look-rb .row-head{font-size:15px;}
html.look-rb .row-sub{font-size:13px;}
html.look-rb .walkin-cta{background:var(--blue-tint) !important;}

/* The icon square at the left of a row (rule 2): thin line icon, one set, a small grey square. */
html.look-rb .rb-ic{
  width:32px;height:32px;flex:none;border-radius:var(--radius-md);background:var(--fill-tint);color:var(--text-mid);
  display:inline-flex;align-items:center;justify-content:center;
}
html.look-rb .rb-ic svg{width:18px;height:18px;display:block;}

/* ── Rule 4 · a bar beside every level. */
html.look-rb .rb-bar{display:block;height:6px;border-radius:3px;background:var(--fill-tint);overflow:hidden;margin-top:6px;}
html.look-rb .rb-bar > i{display:block;height:100%;border-radius:3px;background:var(--crm-fill);}
html.look-rb .rb-bar.is-ok > i{background:var(--green);}
html.look-rb .rb-bar.is-warn > i{background:var(--orange);}

/* ── Rule 8 · loading is grey shapes, never a spinner; empty is an icon, one sentence, one button. */
html.look-rb .bv-placeholder:has(.sk-wrap){display:block;padding:var(--space-3) 0;}
html.look-rb .rb-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:36px 24px;}
html.look-rb .rb-e-ic{width:48px;height:48px;border-radius:14px;background:var(--fill-tint);color:var(--text-mid);display:flex;align-items:center;justify-content:center;}
html.look-rb .rb-e-ic svg{width:24px;height:24px;}
html.look-rb .rb-e-t{margin:0;font-size:15px;line-height:1.45;color:var(--text);max-width:300px;}
html.look-rb .rb-e-btn{margin-top:4px;min-height:44px;padding:0 18px;border-radius:var(--radius-lg);border:0;background:var(--blue-tint);color:var(--crm-ink);font:inherit;font-size:15px;font-weight:600;cursor:pointer;}
html.look-rb .me-nr-wait .sk-wrap{padding:0;}

/* ── Rule 7 · a box in the middle with an × on top: the app's own "are you sure" box (ui-helpers confirmBox). */
html.look-rb .rb-confirm .rb-confirm-msg{margin:0 0 var(--space-7);font-size:15px;line-height:1.5;color:var(--text);}
html.look-rb .rb-confirm .rb-confirm-acts{display:flex;gap:10px;}
html.look-rb .rb-confirm .rb-confirm-acts button{flex:1;min-height:48px;border-radius:var(--radius);font:inherit;font-size:15px;font-weight:600;cursor:pointer;}
html.look-rb .rb-confirm .rb-confirm-no{background:var(--fill-tint);color:var(--text);border:0;}
html.look-rb .rb-confirm .rb-confirm-yes{background:var(--crm-ink);color:var(--white);border:0;}
html.look-rb .rb-confirm .rb-confirm-yes.is-danger{background:var(--red);}
/* The photo lightbox gets its × at the top (it closed only by a tap). */
html.look-rb .rb-lightbox-x{position:absolute;top:calc(12px + env(safe-area-inset-top, 0px));right:12px;width:44px;height:44px;border-radius:50%;border:0;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;}

/* ── Rule 10 · the frame. Nothing in the top bar but the icon, ASSORT CRM, EN / JP and the initials: the
   admin's View-as box moves to Me (screen-me.js draws it there). */
html.look-rb .app-hdr #viewAsSelect{display:none !important;}
html.look-rb .app-hdr::after{display:none;}
html.look-rb .karte-back-btn{color:var(--crm-ink);}
html.look-rb .me-viewas-sel{min-height:40px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--white);font:inherit;font-size:15px;padding:0 28px 0 10px;color:var(--text);}

/* Me rows: icon · words · the right side (a pill, a count, an arrow). */
html.look-rb .me-group-row{gap:12px;}
html.look-rb .me-group-row > .rb-ic + span{margin-right:auto;}
html.look-rb .me-group-row > span:first-child.rb-ic{margin-right:0;}
html.look-rb .mone-attach-btn svg{width:20px;height:20px;display:block;}

/* The concern accent was the Customer Service app's indigo; in the CRM it wears the CRM's own pink pair. */
html.look-rb{--indigo:#C2185B;--indigo-tint:#FDEEF3;}
/* A concern card's two answers sit side by side, pale (rule 6). */
html.look-rb .complaint-card .chip-toggle.report-update-toggle,
html.look-rb .complaint-card .complaint-gotit-btn{background:var(--blue-tint);color:var(--crm-ink);border-color:transparent;font-weight:600;min-height:40px;}
/* Today's time-of-day label sits on the card edge, like every other section label. */
html.look-rb .today-group-eye{margin:var(--space-7) 0 0;}
html.look-rb .today-log{font-size:var(--body-sm-size);padding:6px 14px;border-radius:var(--radius-full);}
/* Rule 9 · small grey words use the OS grey, never the faint one. */
html.look-rb .me-karte-q,
html.look-rb .row-stat-lbl,
html.look-rb .row-stat-qualifier,
html.look-rb .chev{color:var(--text2);}
html.look-rb .me-karte-q{font-size:12px;}
html.look-rb .mone-privacy,
html.look-rb .me-rev,
html.look-rb .gte-no-match,
html.look-rb .chip-status--cancelled,
html.look-rb .empty-glyph,
html.look-rb .board-group-none,
html.look-rb .login-family-cap,
html.look-rb .login-pwa-hint,
html.look-rb .login-webview-hint #webviewCopied,
html.look-rb .mone-recording,
html.look-rb .kc-staff-muted .row-sub{color:var(--text2);}

/* Karte rows: the icon square on the left, the words beside it. */
html.look-rb .card-visit-toprow{gap:12px;align-items:flex-start;}
html.look-rb .card-note-row.rb-has-ic{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:12px;row-gap:var(--space-1);}
html.look-rb .card-note-row.rb-has-ic > *{grid-column:2;}
html.look-rb .card-note-row.rb-has-ic > .rb-ic{grid-column:1;grid-row:1 / span 6;}

/* Report a concern: the form in white cards, each part's title a small label above its card. */
html.look-rb #page-report-concern{padding-left:0;padding-right:0;}
html.look-rb #page-report-concern > .report-head,
html.look-rb #page-report-concern > .report-rule,
html.look-rb #page-report-concern > .report-open-case,
html.look-rb #page-report-concern > .report-already,
html.look-rb #page-report-concern > .report-error{margin-left:var(--gutter);margin-right:var(--gutter);}
html.look-rb #page-report-concern > .karte-back-btn{margin-left:var(--space-3);}
html.look-rb #page-report-concern > .rb-form-card{margin:var(--space-3) var(--gutter) var(--space-5);padding:var(--space-5) 18px;}
html.look-rb #page-report-concern > .report-section{margin:var(--space-7) 0 0;padding:0 var(--label-inset);border-top:0;
  font-size:var(--eyebrow-size);font-weight:var(--eyebrow-weight);letter-spacing:var(--eyebrow-track);text-transform:uppercase;color:var(--text2);}
html.look-rb #page-report-concern > .report-submit{display:block;width:calc(100% - 2 * var(--gutter));margin:var(--space-5) var(--gutter) var(--space-10);}
html.look-rb .report-title svg{color:var(--crm-ink);}
