/* ============================================================================
   (2026-11-06, design delta 2) Cross-screen finish rules the designer added after the v1.1 screen ports
   (design-review/reference-viewer/directions/visual-finish.css, external reviews 41–162, newest 2026-11-06 12:21 KST).
   Scope: the rebuilt v1.1 screens inside the shell main (.v11s-main), never the full-bleed chart & trade screen
   (that area is owned by the trade work). Every rule behind html[data-cc-brand="v11"]:not([data-app-design="v1"]).
   Loaded after every other v1.1 stylesheet. Screen-specific deltas live in each screen's own CSS.
   ============================================================================ */

/* Reviews 41–53: one select surface and touch size across browser engines.
   Strong part: no native arrow, the design's 16px chevron, room for it. */
html[data-cc-brand="v11"]:not([data-app-design="v1"]) .v11s:not(.v11s--full) .v11s-main select:not([multiple]):not([size]) {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23626575' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
html[data-cc-brand="v11"]:not([data-app-design="v1"])[data-theme="dark"] .v11s:not(.v11s--full) .v11s-main select:not([multiple]):not([size]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23B5B4C1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* Weak part (a screen's own select rule wins): 44px, 8px radius, control line, surface. */
html[data-cc-brand="v11"]:not([data-app-design="v1"]) :where(.v11s:not(.v11s--full) .v11s-main) select:not([multiple]) {
  box-sizing: border-box;
  min-height: 44px;
  padding-inline-start: 12px;
  border: 1px solid var(--cc-control-line, var(--cc-line));
  border-radius: var(--cc-control-radius, 8px);
  color: var(--cc-ink);
  background-color: var(--cc-surface);
  font: inherit;
  font-size: 14px;
}
html[data-cc-brand="v11"]:not([data-app-design="v1"]) .v11s:not(.v11s--full) .v11s-main select[aria-invalid="true"] { border-color: var(--cc-danger); }

/* Review 102: native choice controls use ink. */
html[data-cc-brand="v11"]:not([data-app-design="v1"]) .v11s:not(.v11s--full) .v11s-main input:is([type="checkbox"], [type="radio"]) {
  accent-color: var(--cc-ink);
}

/* Review 124: no blue browser cancel glyph — a muted 18px × with a 36px target (same clear action, same field). */
html[data-cc-brand="v11"]:not([data-app-design="v1"]) .v11s:not(.v11s--full) .v11s-main input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-inline-start: 8px;
  background: var(--cc-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 5l8 8M13 5l-8 8' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 5l8 8M13 5l-8 8' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  cursor: pointer;
}
html[data-cc-brand="v11"]:not([data-app-design="v1"]) .v11s:not(.v11s--full) .v11s-main input[type="search"]::-webkit-search-cancel-button:hover { background: var(--cc-ink); }

/* Reviews 139–160: dialogs open on the dialog itself (read from the top); that static focus draws no ring.
   Keyboard focus on the close button and every control keeps the shared 2px ring. */
html[data-cc-brand="v11"]:not([data-app-design="v1"]) .v11s :is(dialog, [role="dialog"], [role="alertdialog"]):focus:not(:focus-visible) {
  outline: none;
}
html[data-cc-brand="v11"]:not([data-app-design="v1"]) .v11s :is(dialog, [role="dialog"], [role="alertdialog"])[tabindex="-1"]:focus {
  outline: none;
}
/* Review 156: the main landmark receives focus after navigation without a big box. */
html[data-cc-brand="v11"]:not([data-app-design="v1"]) .v11s .v11s-main:focus { outline: none; }

/* Selection contract (visual-finish.css): tabs have one accent underline and a neutral bold ink label, 44px high. */
html[data-cc-brand="v11"]:not([data-app-design="v1"])[data-theme] .v11s .v11s-main :is(.pf-workspace-tabs a, .an-workspace-tabs a, .oh-workspace-tabs a, .oh-record-tabs > button) {
  min-height: 44px;
  height: 44px;
  padding-block: 0;
}
html[data-cc-brand="v11"]:not([data-app-design="v1"])[data-theme] .v11s .v11s-main :is(.pf-workspace-tabs a, .an-workspace-tabs a, .oh-workspace-tabs a, .oh-record-tabs > button):is([aria-selected="true"], [aria-pressed="true"], [aria-current="page"]) {
  color: var(--cc-ink);
  border-bottom-color: var(--cc-tab-accent);
  font-weight: 650;
}

/* Reviews 125 · 153: a filter or search with no result — one shared line art, 16px/650 title, 13px hint, 44px secondary
   "Reset filters". Failed reads and "nothing recorded yet" keep their own, different notices.
   (2026-11-22, design audit CH-19) the chart's Indicators panel uses it too — the panel is drawn outside .v11s-main, so
   the seven selectors below name both places (same specificity as before). */
html[data-cc-brand="v11"]:not([data-app-design="v1"]) :is(.v11s-main, .chart-ind-panel) .v11-empty-state:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 236px;
  padding: 32px 16px;
  border: 0;
  background: transparent;
  color: var(--cc-ink);
  text-align: center;
}
html[data-cc-brand="v11"]:not([data-app-design="v1"]) :is(.v11s-main, .chart-ind-panel) .v11-empty-state::before {
  content: "";
  display: block;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  margin: 0 0 4px;
  background: var(--cc-muted);
  opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='8' width='32' height='44' rx='3'/%3E%3Cpath d='M20 19h16M20 26h10M20 43h7'/%3E%3Ccircle cx='39' cy='38' r='10' fill='none'/%3E%3Cpath d='m46 45 9 9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='8' width='32' height='44' rx='3'/%3E%3Cpath d='M20 19h16M20 26h10M20 43h7'/%3E%3Ccircle cx='39' cy='38' r='10' fill='none'/%3E%3Cpath d='m46 45 9 9'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-cc-brand="v11"]:not([data-app-design="v1"]) :is(.v11s-main, .chart-ind-panel) .v11-empty-state > svg { display: none; }
html[data-cc-brand="v11"]:not([data-app-design="v1"]) :is(.v11s-main, .chart-ind-panel) .v11-empty-state > :is(strong, h2, h3) {
  margin: 0;
  color: var(--cc-ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 24px;
}
html[data-cc-brand="v11"]:not([data-app-design="v1"]) :is(.v11s-main, .chart-ind-panel) .v11-empty-state > p {
  max-width: 40ch;
  margin: 0;
  color: var(--cc-muted);
  font-size: 13px;
  line-height: 1.7;
}
html[data-cc-brand="v11"]:not([data-app-design="v1"]) :is(.v11s-main, .chart-ind-panel) .v11-empty-state > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 6px;
  padding: 9px 15px;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-control-radius, 8px);
  background: var(--cc-surface);
  color: var(--cc-ink);
  box-shadow: none;
  font-size: 14px;
  line-height: 24px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
}
html[data-cc-brand="v11"]:not([data-app-design="v1"]) :is(.v11s-main, .chart-ind-panel) .v11-empty-state > button:hover { background: var(--cc-hover); }

/* Review 173: a focused select shows one ring — its own border turns transparent under the focus outline (errors keep theirs). */
html[data-cc-brand="v11"]:not([data-app-design="v1"]) .v11s:not(.v11s--full) .v11s-main select:not([multiple]):not([size]):focus-visible:not([aria-invalid="true"]) {
  border-color: transparent;
}
