/* r1232 candidate: presentation only. Declare this layer before legacy layers
   so the limited important overrides do not require changing native owners. */
@layer sukun-r1232-polish {
 /* Frequency help uses the same gemstone artwork as before. Keep its
    native text inside the carved ends and centre it without clipping or
    shrinking long / enlarged labels. Equal side gutters also reserve
    space for the independent disclosure arrow. */
 html[data-r1074-theme="berhet"] body #frequencyWorkbenchR1120 :is(.fr1120-workbench,.fr1120-help)>summary {
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:relative!important;box-sizing:border-box!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  min-height:56px!important;height:auto!important;max-height:none!important;
  padding:14px 42px!important;border-image-width:12px 30px!important;
  text-align:center!important;white-space:normal!important;
  overflow-wrap:break-word!important;word-break:normal!important;
  line-height:1.45!important;letter-spacing:0!important;list-style:none!important;
 }
 html[data-r1074-theme="berhet"] body #frequencyWorkbenchR1120 :is(.fr1120-workbench,.fr1120-help)>summary::-webkit-details-marker {display:none!important}
 html[data-r1074-theme="berhet"] body #frequencyWorkbenchR1120 :is(.fr1120-workbench,.fr1120-help)>summary::after {
  position:absolute!important;inset:auto 29px auto auto!important;top:50%!important;
  width:12px!important;height:12px!important;margin:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  line-height:1!important;transform:translateY(-50%)!important;pointer-events:none!important;
 }
 html[data-r1074-theme="berhet"] body #frequencyWorkbenchR1120 :is(.fr1120-workbench,.fr1120-help)[open]>summary::after {transform:translateY(-50%) rotate(180deg)!important}
 html[data-r1074-theme="berhet"] body #frequencyWorkbenchR1120 :is(#fr1120-wave,#fr1120-noise) {
  text-align:center!important;text-align-last:center!important;
  padding-inline:32px!important;
 }
 html[data-r1074-theme="berhet"] body #frequencyWorkbenchR1120 :is(#fr1120-wave,#fr1120-noise)>option {text-align:start!important;text-align-last:auto!important}

 /* Keep all six navigation actions and their existing icons. The former
    9px side padding left most of a narrow gem unusable by its label. */
 @media (max-width:720px) {
  html[data-r1074-theme="berhet"] body .wrap>nav.tabs:not([hidden])>button {
   padding-inline:3px!important;border-image-width:9px 4px!important;
  }
  html[data-r1074-theme="berhet"] body .wrap>nav.tabs:not([hidden])>button>.tbL {
   font-size:clamp(9px,2.3vw,12px)!important;line-height:1.35!important;letter-spacing:-.02em!important;
   text-align:center!important;text-wrap:balance!important;
   white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  }
 }

 /* The checkbox remains a native, labelled 44px control. Only its painted
    face is 18px; labels, keyboard input, disabled and checked state survive. */
 html body #frequencyWorkbenchR1120 .fr1120-row:has(>input[type="checkbox"]) {
  grid-template-columns:44px minmax(0,1fr)!important;
  gap:4px 8px!important;margin:6px 0!important;min-height:44px!important;
 }
 html body #frequencyWorkbenchR1120 .fr1120-row:has(>input[type="checkbox"])>label {
  grid-column:2!important;grid-row:1!important;min-width:0!important;
  min-height:44px!important;padding:0!important;line-height:1.4!important;
 }
 html body #frequencyWorkbenchR1120 input[type="checkbox"] {
  grid-column:1!important;grid-row:1!important;box-sizing:border-box!important;
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  max-width:44px!important;max-height:44px!important;margin:0!important;padding:0!important;
  appearance:none!important;-webkit-appearance:none!important;border:0!important;border-image:none!important;
  border-radius:6px!important;box-shadow:none!important;filter:none!important;transform:none!important;
  background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='1' y='1' width='16' height='16' rx='3' fill='%230b2530' stroke='%23d3e1df' stroke-width='1.5'/%3E%3C/svg%3E") center/18px 18px no-repeat!important;
  cursor:pointer!important;touch-action:manipulation!important;
 }
 html body #frequencyWorkbenchR1120 input[type="checkbox"]:checked {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='1' y='1' width='16' height='16' rx='3' fill='%230e6b50' stroke='%2398f1cd' stroke-width='1.5'/%3E%3Cpath d='m4.5 9 3 3 6-6' fill='none' stroke='%23fff9de' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
 }
 html body #frequencyWorkbenchR1120 input[type="checkbox"]:focus-visible {
  outline:2px solid var(--sukun-material-focus,#ffe6a1)!important;outline-offset:1px!important;
 }
 html body #frequencyWorkbenchR1120 input[type="checkbox"]:disabled {opacity:.45!important;cursor:not-allowed!important}

 /* One shared reading surface contains the heading, description, filters and
    existing preset cards. The artwork and preset interaction are untouched. */
 html body #tab-frq>#r1107PresetsBox {
  box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
  margin:12px 0!important;padding:clamp(12px,2.5vw,20px)!important;
  border:1px solid var(--sukun-surface-line,#b5c5cf66)!important;border-image:none!important;border-radius:18px!important;
  background:linear-gradient(155deg,rgba(14,38,51,.80),rgba(7,25,35,.88))!important;
  box-shadow:inset 0 1px 0 #edf7f21f!important;color:#edf5f1!important;
  -webkit-backdrop-filter:blur(8px)!important;backdrop-filter:blur(8px)!important;
 }
 html body #r1107PresetsBox>:is(#binauralProductName,#binauralProductDescription,#binauralPresetIntro) {
  color:#edf5f1!important;-webkit-text-fill-color:currentColor!important;opacity:1!important;
  max-width:100%!important;line-height:1.55!important;text-shadow:0 1px 2px #0009!important;
  overflow-wrap:break-word!important;
 }
 html body #r1107PresetsBox>#binauralProductName {font-size:17px!important;margin:14px 0 5px!important}
 html body #r1107PresetsBox>:is(#binauralProductDescription,#binauralPresetIntro) {font-size:13px!important;margin:5px 0!important}
 html body #r1107PresetsBox>#presets {min-width:0!important;max-width:100%!important}

 /* Match the existing discovery-grid maximum on desktop and fill the
    available width on mobile. Native hidden state remains the owner. */
 html body .wrap>footer #r630TekkeQuick {
  box-sizing:border-box!important;width:min(100%,560px)!important;max-width:100%!important;min-width:0!important;
  margin:10px auto!important;padding:10px 18px!important;min-height:44px!important;height:auto!important;
  flex-wrap:wrap!important;white-space:normal!important;overflow-wrap:break-word!important;
 }
 /* Content-sized actions retain their current theme artwork and handlers. */
 html body #r920Practice :is(#r920TefEnter,#r1056FocusControlsToggle,#r938PanelToggle) {
  box-sizing:border-box!important;width:fit-content!important;min-width:44px!important;max-width:100%!important;
  min-height:44px!important;height:auto!important;max-height:none!important;
  flex:0 1 auto!important;align-self:center!important;justify-self:center!important;
  margin-inline:auto!important;padding:12px 24px!important;gap:8px!important;
  white-space:normal!important;overflow-wrap:break-word!important;line-height:1.4!important;
 }
 html[data-r1074-theme="berhet"] body #r920Practice :is(#r920TefEnter,#r1056FocusControlsToggle,#r938PanelToggle) {
  padding-inline:34px!important;border-image-width:12px 28px!important;
 }

 /* The settings gear keeps its existing position, visibility and click owner.
    A true circular rim replaces the square frame without clipping its focus. */
 html body #kandil.r1193Info[data-saver-content] #kandilSettingsButton {
  box-sizing:border-box!important;width:44px!important;height:44px!important;
  min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;
  padding:6px!important;border:2px solid #c8a45f!important;border-image:none!important;border-radius:50%!important;
  background:#102c30!important;box-shadow:inset 0 0 0 1px #e3ca8440!important;
 }
 html[data-r1074-theme="berhet"] body #kandil.r1193Info[data-saver-content] #kandilSettingsButton {
  border-color:#e0b761!important;background:radial-gradient(circle at 35% 24%,#286e59,#07382e 68%,#052820)!important;
  box-shadow:inset 0 1px 1px #fff1bc88,inset 0 -2px 2px #39270799!important;
 }
 html body #kandil.r1193Info[data-saver-content] #kandilSettingsButton svg.kSettingsCog {width:28px!important;height:28px!important;flex-basis:28px!important}
 html body #kandil.r1193Info[data-saver-content] #kandilSettingsButton:focus-visible {outline:2px solid #ffe6a3!important;outline-offset:3px!important}

 /* The native timer gets a complete row instead of competing with its clock,
    caption and help in a narrow desktop column. Mobile uses the same safe fit. */
  html body .wrap>.masterBar #dockTimer {
   display:grid!important;grid-template-columns:20px minmax(0,1fr) 44px!important;
   grid-template-rows:minmax(44px,auto) minmax(44px,auto)!important;
   min-width:0!important;height:auto!important;max-height:none!important;padding:4px!important;gap:2px 4px!important;
  }
  html body .wrap>.masterBar #dockTimer>#sleepTimer {
   grid-column:1/-1!important;grid-row:1!important;box-sizing:border-box!important;
   width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;
   padding:10px 16px!important;border-image-width:9px 12px!important;
   font:650 12px/1.3 system-ui,sans-serif!important;
  }
  html body .wrap>.masterBar #dockTimer>.di {grid-column:1!important;grid-row:2!important}
  html body .wrap>.masterBar #dockTimer>.dl {grid-column:2!important;grid-row:2!important;font-size:11px!important;line-height:1.3!important}
  html body .wrap>.masterBar #dockTimer>.dockTipHelp {grid-column:3!important;grid-row:2!important}
 /* Keep the original tour artwork; only bound its scrollable card to the
    available viewport, so every step and both native actions remain reachable. */
 html body #onboardCard {box-sizing:border-box!important;padding:24px!important}
 html body #onboardCard .obInner {
  box-sizing:border-box!important;min-width:0!important;max-width:380px!important;
  max-height:calc(100vh - 48px)!important;max-height:calc(100dvh - 48px)!important;
  overflow-y:auto!important;overscroll-behavior:contain!important;overflow-wrap:break-word!important;
 }
 html body #onboardCard .obDots {flex-wrap:wrap!important}
 html body #onboardCard .obDots span {flex:0 0 6px!important}
 html body #onboardCard :is(.obSkip,.obNext) {min-height:44px!important}
 html body #onboardCard :is(.obSkip,.obNext):focus-visible {
  outline:2px solid var(--sukun-material-focus,#ffe6a1)!important;outline-offset:2px!important;
 }
 @media(prefers-reduced-transparency:reduce) {
  html body #tab-frq>#r1107PresetsBox {background:#071b2b!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
 }
 @media(forced-colors:active) {
  html body #frequencyWorkbenchR1120 input[type="checkbox"],
  html body #frequencyWorkbenchR1120 input[type="checkbox"]:checked {appearance:auto!important;-webkit-appearance:auto!important;background:none!important;forced-color-adjust:auto!important}
  html body #frequencyWorkbenchR1120 input[type="checkbox"]:focus-visible {outline-color:Highlight!important}
  html body #tab-frq>#r1107PresetsBox {background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  html body #r1107PresetsBox>:is(#binauralProductName,#binauralProductDescription,#binauralPresetIntro) {color:CanvasText!important;text-shadow:none!important}
  html body #kandil.r1193Info[data-saver-content] #kandilSettingsButton,
  html[data-r1074-theme="berhet"] body #kandil.r1193Info[data-saver-content] #kandilSettingsButton {border-color:ButtonText!important;background:ButtonFace!important;color:ButtonText!important;box-shadow:none!important}
  html body #kandil.r1193Info[data-saver-content] #kandilSettingsButton:focus-visible {outline-color:Highlight!important}
 }
}

/* r1242: compact native actions. Keep the original buttons, confirmation
   owners and hidden flags; only their footprint changes. */
@layer sukun-r1232-polish {
 html body #r920Practice[data-r938-layout="1"] #r932WheelControls .r932EasyTransport {
  width:fit-content!important;max-width:100%!important;
  grid-template-columns:48px minmax(0,max-content) 48px!important;
 }
 html body #r920Practice[data-r938-layout="1"] :is(#r932EasyPlay,#r932EasyStop,#r920JourneyRestartAll) {
  width:fit-content!important;min-width:44px!important;max-width:100%!important;
  min-height:48px!important;height:auto!important;max-height:none!important;
  justify-self:center!important;align-self:center!important;flex:0 1 auto!important;
  padding:12px 18px!important;margin-inline:auto!important;
  white-space:normal!important;overflow-wrap:break-word!important;line-height:1.4!important;
 }
 html[data-r1074-theme="berhet"] body #r920Practice[data-r938-layout="1"] :is(#r932EasyPlay,#r932EasyStop,#r920JourneyRestartAll) {
  padding-inline:30px!important;border-image-width:12px 28px!important;
 }
 html body #r920Practice #r1056FocusControlsToggle:focus-visible {outline:2px solid #ffe6a1!important;outline-offset:2px!important}
 html body.sukun-tefekkur-mode #r920Practice[data-r1242-settings-hidden="true"] :is(#r938PanelToggle,#r938PanelBody,#r1056ReadingSummary) {display:none!important;pointer-events:none!important}
 @media(forced-colors:active) {
  html body #r920Practice #r1056FocusControlsToggle:focus-visible {outline-color:Highlight!important}
 }
}


/* Klasik + Feyz candidate: native shortcuts and existing readouts only. */
@layer sukun-r1232-polish {
 html body #tab-frq :is(#bandChips,#beatChips,#carChips) {flex-wrap:wrap!important;gap:6px!important}
 html body #tab-frq .frequencyShortcut {
  appearance:none!important;box-sizing:border-box!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;flex:0 1 auto!important;
  min-width:44px!important;min-height:44px!important;height:auto!important;margin:0!important;padding:8px 10px!important;
  font:500 12px/1.3 system-ui,sans-serif!important;letter-spacing:normal!important;
  color:var(--mut)!important;background:transparent!important;border:1px solid var(--line)!important;
  border-image:none!important;border-radius:7px!important;box-shadow:none!important;cursor:pointer!important;
  touch-action:manipulation!important;white-space:normal!important;transform:none!important;
 }
 html body #tab-frq #bandChips .frequencyShortcut {flex:1 0 64px!important;min-width:64px!important;white-space:nowrap!important}
 html body #tab-frq .frequencyShortcut::before,html body #tab-frq .frequencyShortcut::after {content:none!important}
 html body #tab-frq .frequencyShortcut[aria-pressed="true"] {color:var(--goldh)!important;border-color:var(--line2)!important;background:color-mix(in srgb,var(--gold) 10%,transparent)!important}
 html body #tab-frq :is(.frequencyShortcut,#carNum,#beatNum,#frVol,#frToggle):focus-visible {outline:2px solid var(--sukun-material-focus,#ffe6a1)!important;outline-offset:3px!important}
 html body #tab-frq :is(#carNum,#beatNum,#frToggle) {min-height:44px!important;box-sizing:border-box!important}
 html body #tab-frq :is(#carSld,#beatSld,#frVol) {min-height:44px!important}
 html body #r920Practice #r924WheelFrame .wheelCountUX {display:flex!important;align-items:baseline!important;justify-content:center!important;gap:4px!important;max-width:100%!important;white-space:nowrap!important}
 html body #r920Practice #r924WheelFrame #wheelTargetUX {display:none!important;font:500 clamp(11px,3.6cqi,15px)/1.2 system-ui,sans-serif!important;letter-spacing:0!important;color:inherit!important}
 html body #r920Practice #r924WheelFrame #wheelTargetUX[hidden] {display:none!important}
 html body #r920Practice #r1056ReadingSource {min-height:44px!important;white-space:normal!important}
 html body #r920Practice #r1056ReadingSource::after {content:"⌄"!important;display:inline-block!important;position:static!important;margin-inline-start:8px!important;transform:none!important;background:none!important;border:0!important;box-shadow:none!important}
 html body #r920Practice #r1056ReadingSource[aria-expanded="true"]::after {content:"⌃"!important}
 @media(forced-colors:active) {
  html body #tab-frq .frequencyShortcut {forced-color-adjust:auto!important;color:ButtonText!important;border-color:ButtonText!important;background:ButtonFace!important}
  html body #tab-frq .frequencyShortcut[aria-pressed="true"] {border:2px solid Highlight!important;color:Highlight!important}
  html body #tab-frq .frequencyShortcut:focus-visible {outline-color:Highlight!important}
 }
}

@layer sukun-r1232-polish {
 html body #r920Practice #r924WheelFrame[data-r1057-center="wide"][data-context-digits="3"] #r920Count {font-size:clamp(24px,9cqi,36px)!important}
 html body #r920Practice #r924WheelFrame[data-r1057-center="wide"][data-context-digits="4"] #r920Count {font-size:clamp(20px,7cqi,28px)!important}
}

@layer sukun-r1232-polish {
 html body #r920Practice #r924WheelFrame #wheelRemainingUX {display:none!important;font:500 11px/1.2 system-ui,sans-serif!important;letter-spacing:0!important;color:inherit!important}
 html body #r920Practice #r924WheelFrame[data-r1057-center="wide"][data-context-digits]:not([data-context-digits="0"]) :is(#wheelTargetUX,#wheelRemainingUX):not([hidden]) {display:inline!important}
 html body #r920Practice #r924WheelFrame[data-r1057-center="wide"][data-context-digits]:not([data-context-digits="0"]) #r920Percent {display:none!important}
}

/* Neutral wrappers keep the pre-existing inline controls in other themes. */
#ns .frequency-select-field {display:contents}

/* Frequency screenshot repair: reserve the actual nine-slice interior, not
   a percentage of a growing card. Presentation never owns hidden/audio state. */
@layer sukun-r1232-polish {
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns :is(.breath-mode-grid,.med-script-grid) {
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))!important;
  align-items:stretch!important;gap:12px!important;min-width:0!important;
 }
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns :is(.breath-mode-card,.med-script-card,.libRow) {
  box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
  height:auto!important;max-height:none!important;padding:20px 38px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:6px!important;text-align:center!important;white-space:normal!important;
  overflow:visible!important;overflow-wrap:break-word!important;word-break:normal!important;
  transform:none!important;
 }
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns :is(.breath-mode-card,.med-script-card) {min-height:144px!important}
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns .libRow {min-height:84px!important}
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns :is(.breath-mode-name,.breath-mode-pattern,.breath-mode-desc,.med-script-info,.med-script-name,.med-script-meta,.med-script-desc,.libRowT,.libRowS) {
  position:static!important;inset:auto!important;box-sizing:border-box!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;max-height:none!important;
  margin:0!important;padding:0!important;flex:none!important;text-align:center!important;
  white-space:normal!important;overflow:visible!important;overflow-wrap:break-word!important;word-break:normal!important;
  line-height:1.5!important;letter-spacing:normal!important;
 }
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns :is(.breath-mode-name,.med-script-name,.libRowT) {font:650 .875rem/1.5 system-ui,sans-serif!important}
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns :is(.breath-mode-pattern,.breath-mode-desc,.med-script-meta,.med-script-desc,.libRowS) {font-size:.8125rem!important}
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns .med-script-info {display:grid!important;gap:4px!important}
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns .med-script-icon {font-size:1.5rem!important;line-height:1.2!important}
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns .libRowT {display:block!important}
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns :is(.libSrc,.libJT) {
  position:static!important;float:none!important;display:inline-block!important;
  max-width:100%!important;margin:3px 4px!important;vertical-align:middle!important;white-space:normal!important;
 }
 /* Each native select has its own label, full row and equal end-cap reserve.
    The hidden time-window field stays out of the grid in FFT mode. */
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns .frequency-select-controls {
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;
  align-items:start!important;gap:12px!important;margin:12px 0!important;min-width:0!important;
 }
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns .frequency-select-field {display:grid!important;gap:5px!important;min-width:0!important}
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns .frequency-select-field:has(>select[hidden]) {display:none!important}
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns .frequency-select-field>label {font:600 .8125rem/1.4 system-ui,sans-serif!important;text-align:center!important}
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns .frequency-select-field>select {
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
  min-height:52px!important;height:auto!important;padding:12px 30px!important;
  font:500 .8125rem/1.5 system-ui,sans-serif!important;letter-spacing:normal!important;
  text-align:center!important;text-align-last:center!important;text-overflow:clip!important;
 }
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns .frequency-select-field>select>option {text-align:start!important;text-align-last:auto!important}
 /* Routine chips are outside the frequency tab and retain separate delete
    targets. Wrapping prevents a long user name hiding Save off-screen. */
 html[data-r1074-theme="berhet"] body #rutRow {flex-wrap:wrap!important;gap:8px!important;overflow:visible!important}
 html[data-r1074-theme="berhet"] body #rutRow>.rut {
  box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;
  flex:0 1 auto!important;min-width:0!important;max-width:100%!important;min-height:52px!important;
  height:auto!important;padding:12px 30px!important;gap:8px!important;
  white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;
 }
 html[data-r1074-theme="berhet"] body #rutRow>.rut>b {min-width:0!important;white-space:normal!important;line-height:1.5!important}
 html[data-r1074-theme="berhet"] body #rutRow>.rut>.rx {flex:0 0 44px!important;min-width:44px!important;min-height:44px!important;display:grid!important;place-items:center!important}
 @media(forced-colors:none) {
  html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns :is(.breath-mode-card,.med-script-card,.libRow),
  html[data-r1074-theme="berhet"] body #rutRow>.rut {
   --r1133-gem:var(--sukun-gem-sapphire)!important;
   border:1px solid transparent!important;border-radius:12px!important;
   border-image:var(--r1133-gem) 210 540 fill / 14px 34px / 0 stretch!important;
   background:none!important;box-shadow:none!important;color:#fff2d6!important;
   text-shadow:0 1px 1px #000!important;filter:none!important;
  }
  html[data-r1074-theme="berhet"] body #rutRow>.rut {border-image-width:10px 24px!important}
  html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns :is(.breath-mode-card.active,.med-script-card.active,[aria-pressed="true"].breath-mode-card) {
   --r1133-gem:var(--sukun-gem-emerald)!important;outline:2px solid #c6e8c0!important;outline-offset:2px!important;
  }
  html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns :is(.breath-mode-name,.breath-mode-pattern,.breath-mode-desc,.med-script-name,.med-script-meta,.med-script-desc,.libRowT,.libRowS,.libSrc,.libJT),
  html[data-r1074-theme="berhet"] body #rutRow>.rut>:is(b,.rx) {color:#fff2d6!important;-webkit-text-fill-color:currentColor!important;opacity:1!important}
  html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns .frequency-select-field>select {border-image-width:10px 24px!important}
  /* Square-cut masters suit short Hz/band controls without pinching text. */
  html[data-r1074-theme="berhet"] body #tab-frq .frequencyShortcut {
   border:1px solid transparent!important;
   border-image:var(--sukun-gem-sapphire-square) 330 fill / 9px / 0 stretch!important;
   background:none!important;color:#fff2d6!important;padding:11px 14px!important;
   text-shadow:0 1px 1px #000!important;
  }
  html[data-r1074-theme="berhet"] body #tab-frq .frequencyShortcut[aria-pressed="true"] {
   border-image-source:var(--sukun-gem-emerald-square)!important;
   background:none!important;color:#fff8dc!important;outline:2px solid #c6e8c0!important;outline-offset:1px!important;
  }
 }
 html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns :is(.breath-mode-card,.med-script-card,.libRow,select):focus-visible {
  outline:2px solid var(--sukun-material-focus,#ffe6a1)!important;outline-offset:3px!important;
 }
 @media(forced-colors:active) {
  html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns :is(.breath-mode-card,.med-script-card,.libRow,select),
  html[data-r1074-theme="berhet"] body #rutRow>.rut {
   border:1px solid ButtonText!important;border-image:none!important;background:ButtonFace!important;
   color:ButtonText!important;text-shadow:none!important;forced-color-adjust:auto!important;
  }
  html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns :is(.breath-mode-card,.med-script-card,.libRow) *,
  html[data-r1074-theme="berhet"] body #rutRow>.rut>:is(b,.rx) {color:ButtonText!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important}
  html[data-r1074-theme="berhet"] body #r1101FrequencyHub #ns :is(.breath-mode-card.active,.med-script-card.active,:focus-visible) {outline:2px solid Highlight!important;outline-offset:3px!important}
 }
}

/* Supplementary Klasik + Feyz candidate: text and layout only. */
@layer sukun-r1232-polish {
 html body #prSearchResults .prSearchGroupTitle {margin:12px 11px 5px!important;font:650 12px/1.4 system-ui,sans-serif!important;letter-spacing:.02em!important;color:var(--mut)!important}
 html body #prSearchResults .prResult {min-height:44px!important;align-items:flex-start!important}
 html body #prSearchResults .prResult>span {display:block!important;min-width:0!important;max-width:100%!important}
 html body #prSearchResults .prResult b {white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:break-word!important;line-height:1.4!important}
 html body #prSearchResults .prResultDescription {display:block!important;font-size:12px!important;line-height:1.45!important;margin-top:4px!important;white-space:normal!important;overflow-wrap:break-word!important;color:var(--mut)!important}
 html body #prSearchResults .prResultDescription[hidden] {display:none!important}
 html body #prSearchResults .prResultSection {font-size:11px!important;line-height:1.4!important;margin-top:4px!important}
 html body #tab-amb #mixer .chn>.chTop {row-gap:8px!important}
 html body #tab-amb #mixer .chn>.chTop>.chName b {font-size:14px!important;line-height:1.35!important}
 html body #tab-amb #mixer .chn>.chTop>.chName small {font-size:13px!important;line-height:1.45!important;margin-top:3px!important}
 html body #tab-amb #mixer .chn>.chTop>.chName .r409AmbDiff {font-size:12px!important;line-height:1.45!important;display:block!important;box-sizing:border-box!important;padding:4px 7px!important;margin-top:6px!important}
 html body #tab-amb #mixer .chn>.chTop>.chName :is(b,small,.r409AmbDiff) {white-space:normal!important;overflow:visible!important;overflow-wrap:break-word!important;text-overflow:clip!important;-webkit-line-clamp:unset!important;max-height:none!important}
 /* Preserve the horizontal makam/ney rails and their existing owners. */
 @media(max-width:600px) {
  html body #tab-amb #mixer .preAcc:not([data-ambacc="makam"]):not([data-ambacc="ney"]) .mixGrid {grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 }
 html body #rxInputLabelUX {display:block!important;font:600 13px/1.5 system-ui,sans-serif!important;color:var(--ink)!important;margin:12px 0 5px!important}
 /* Only support the letters and chip edges in Feyz; no new panel fill. */
 html body.r716-shell #rxChips .rxChip,
 html body.r716-shell #rxInputLabelUX {text-shadow:0 1px 2px rgba(0,0,0,.95),0 0 3px rgba(0,0,0,.65)!important}
 html body.r716-shell #rxChips .rxChip {border-color:color-mix(in srgb,var(--ink) 28%,var(--line))!important}
 @media(forced-colors:active) {
  html body.r716-shell #rxChips .rxChip,html body.r716-shell #rxInputLabelUX {text-shadow:none!important}
  html body.r716-shell #rxChips .rxChip {border-color:ButtonText!important}
  html body #prSearchResults :is(.prSearchGroupTitle,.prResultDescription,.prResultSection),html body #rxInputLabelUX {color:CanvasText!important}
 }
}
