/* Controls: segmented control, buttons, capsules, counts, fields, switches, messages, avatar, progress, RichEditor, FieldTree and choice trees.
   Loaded after base.css (the order is in base.css). The look is the Apple design system's (docs/design/apple-system: Button, TextField,
   DateField, ComboBox, Switch, SegmentedControl, Capsule; FW-UI-182, M05). Every control answers the pointer as macOS controls do (P30):
   hover lifts it, a press darkens it at once, the keyboard focus rings it in the accent; one rule per kind of control. */
/* Segmented control (SegmentedControl): language, view modes, Current / History. A fill-2 track, the chosen segment on seg-on. */
.language,.segmented{display:inline-flex;gap:2px;padding:2px;border-radius:8px;background:var(--fill-2);color:var(--label)}
.language a,.segmented>*{display:inline-flex;align-items:center;min-height:22px;border:0;background:none;box-shadow:none;padding:0 10px;border-radius:6px;font:var(--type-mac-callout);color:var(--label);text-decoration:none;white-space:nowrap;cursor:default;transition:background-color .12s}
.language a:hover,.segmented>*:hover{text-decoration:none}
.language a:not([aria-current]):hover,.segmented>:not([aria-pressed=true],[aria-current]):hover{background-color:color-mix(in srgb,var(--label) 8%,transparent)}
.language a:not([aria-current]):active,.segmented>:not([aria-pressed=true],[aria-current]):active{background-color:color-mix(in srgb,var(--label) 15%,transparent);transition:none}
.language a[aria-current],.segmented>[aria-pressed=true],.segmented>[aria-current]{background:var(--seg-on);box-shadow:0 .5px 2px #00000033;font-weight:500}

/* ---------- Controls ---------- */
/* Buttons (Button): capsules of ctl-mac. A bare <button> (a form's submit)
   is the default button in the accent - the theme's Buttons zone; type=button
   buttons are plain on fill-2 over the theme's secondary ground; danger
   buttons are red text; plain and text buttons have no chrome. */
.plain-button{margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:inherit}
.button,.primary-button,:where(button:not(.text-button,[role=tab],.plain-button)){display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:var(--ctl-mac);padding:0 11px;margin:0;border:0;border-radius:var(--r-capsule);background:var(--button);color:var(--on-button);font:var(--type-mac-body);text-decoration:none;white-space:nowrap;box-shadow:0 .5px 1px #00000014;cursor:default;transition:background-color .12s,box-shadow .12s,color .12s}
.button:hover,.primary-button:hover,:where(button:not(.text-button,[role=tab],.plain-button)):hover{background:var(--button-hover);text-decoration:none}
.button:active,.primary-button:active,:where(button:not(.text-button,[role=tab],.plain-button)):active{background:var(--button-pressed);transition:none}
:is(.button,.primary-button,.quiet-button,.danger-button,.secondary,.button-link,.link-button,.quiet-link,:where(button:not(.text-button,[role=tab],.plain-button))):focus-visible{outline:3px solid var(--focus);outline-offset:1px}
/* The actions at the foot of a side pane, a row editor and a dialog are the
   mockup's large buttons (.btn.lg: 30 px high, 16 px at the sides). */
@media(min-width:701px){:is(.ie-panel-foot,.in-pane .scroll>.settings-form>.settings-footer,dialog>.settings-footer,dialog>form>.settings-footer)>:is(.button,.primary-button,.quiet-button,.danger-button,.secondary,button:not(.text-button,.icon-button,.audit-button)){min-height:30px;padding:0 16px}}
button:disabled,.primary-button:disabled{opacity:.45;cursor:default;filter:none}
/* A number has no spinner arrows: it is typed (PO 2026-10-30 «Вообще не понятно, зачем они нужны в HR системе»). */
input[type=number]{-moz-appearance:textfield;appearance:textfield}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}
/* A button that waits is grey but answers (P34, aria-disabled): it takes the
   pointer and tells why - a click opens its reason card (FW-UI-077). */
:is(.button,.primary-button,button,.icon-button)[aria-disabled="true"]{opacity:.45;cursor:default}
/* On iPhone the reason stands as a short line (the mockup's .foot-hint, P34):
   above the buttons of a row editor, a dialog or a popover, and under a
   section's head for its Save; on the Mac the tooltip says it. */
.foot-hint{display:none}
@media(max-width:700px){
 :is(.ie-panel-foot,.settings-footer,.popover-footer):has(>.foot-hint:not([hidden])){flex-wrap:wrap}
 .foot-hint:not([hidden]){display:block;flex-basis:100%;order:-2;margin:0 0 2px;color:var(--label-2);font:var(--type-ios-footnote);text-align:center}
 .window-head>.foot-hint:not([hidden]){order:9;margin:2px 0 0;text-align:left}
}
:is(.button,.primary-button):is([aria-disabled="true"]):is(:hover,:active),:where(button:not(.text-button,[role=tab],.plain-button,[type=button]))[aria-disabled="true"]:is(:hover,:active){background:var(--button)}
/* The mockup has one button size and a large one (.btn, .btn.lg): a button
   once marked small is the plain 24 px button (FW-UI-208). */
.button.large{min-height:30px;padding:0 16px}
.quiet-button,.danger-button,.secondary,:where(button[type=button]:not(.text-button,[role=tab],.plain-button)){display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:var(--ctl-mac);padding:0 11px;border:0;border-radius:var(--r-capsule);background:linear-gradient(var(--fill-2),var(--fill-2)),var(--button-secondary);color:var(--on-button-secondary);font:var(--type-mac-body);line-height:1.38;white-space:nowrap;cursor:default;text-decoration:none;box-shadow:0 .5px 1px #00000014}
.quiet-button:hover,.danger-button:hover,.secondary:hover,:where(button[type=button]:not(.text-button,[role=tab],.plain-button)):hover{background:linear-gradient(color-mix(in srgb,var(--label) 13%,transparent),color-mix(in srgb,var(--label) 13%,transparent)),var(--button-secondary);text-decoration:none}
.quiet-button:active,.danger-button:active,.secondary:active,:where(button[type=button]:not(.text-button,[role=tab],.plain-button)):active{background:linear-gradient(color-mix(in srgb,var(--label) 22%,transparent),color-mix(in srgb,var(--label) 22%,transparent)),var(--button-secondary);transition:none}
:is(.quiet-button,.danger-button,.secondary,.button-link,:where(button[type=button]:not(.text-button,[role=tab],.plain-button)))[aria-disabled="true"]:is(:hover,:active){background:linear-gradient(var(--fill-2),var(--fill-2)),var(--button-secondary)}
.danger-button{color:var(--red-text)}
:where(button:not(.text-button,[role=tab],.plain-button)[data-remove-assignment]),:where(button:not(.text-button,[role=tab],.plain-button)[data-remove-match]),:where(button:not(.text-button,[role=tab],.plain-button)[data-remove-field]){color:var(--red-text)}
/* Adjacent buttons in running content keep apart; flex rows use gap. */
:where(button:not(.text-button,[role=tab],.plain-button))+:where(button:not(.text-button,[role=tab],.plain-button)){margin-left:8px}
.text-button{display:block;padding:8px 0;margin:0;background:none;border:0;font:var(--type-mac-body);color:var(--label);text-align:left}
/* Link button: the plain button of Apple's sheets (Button, .btn.plain) - an
   action in accent text without a capsule at rest; hover and a press show
   its capsule (P30). The same for a link and a button (Back, Sign out). */
.link-button,button.link-button{display:inline-flex;align-items:center;gap:4px;min-height:var(--ctl-mac);margin:0;padding:0 4px;border:0;border-radius:var(--r-capsule);background:none;box-shadow:none;font:var(--type-mac-body);color:var(--link);text-decoration:none;cursor:pointer;transition:background-color .12s}
.link-button:hover,button.link-button:hover{background:var(--fill-2);text-decoration:none}
.link-button:active,button.link-button:active{background:color-mix(in srgb,var(--label) 16%,transparent);transition:none}
/* Icon button and remove button: a symbol without chrome, 24 x 20 with 4px
   corners in the label colour, as the mockup's table + and - (FW-UI-193);
   its square answers the pointer (P30). */
.icon-button{display:inline-grid;place-items:center;width:var(--ctl-mac);height:20px;min-height:0;margin:0;padding:0;border:0;border-radius:4px;background:none;box-shadow:none;color:var(--label);cursor:default;flex:none;transition:background-color .12s,color .12s}
.icon-button:hover{background:color-mix(in srgb,var(--label) 11%,transparent);color:var(--label)}
.icon-button:active{background:color-mix(in srgb,var(--label) 20%,transparent);transition:none}
.icon-button[aria-disabled="true"]:is(:hover,:active){background:none;color:var(--label)}
.icon-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.remove-button{display:inline-grid;place-items:center;width:24px;height:20px;min-height:0;margin:0;padding:0;border:0;border-radius:4px;background:none;box-shadow:none;color:var(--label);line-height:1;cursor:default;flex:none}
.remove-button:hover{background:color-mix(in srgb,var(--label) 11%,transparent);color:var(--label)}
.remove-button:active{background:color-mix(in srgb,var(--label) 20%,transparent);transition:none}

/* Capsule (Capsule): a state or a kind (Draft, Active, Standard) as wide
   as its text (P48), in its status colour with its word. Its line is the
   line of the text round it in the mockup (.capsule inherits it): 1.38,
   1.29 on iPhone, a list cell's 1.4 (FW-UI-208). */
.badge{display:inline-flex;align-items:center;gap:4px;width:fit-content;max-width:100%;min-height:var(--capsule-h);padding:0 8px;border:0;border-radius:calc(var(--capsule-h) / 2);background:var(--fill-2);color:var(--label-2);font:var(--type-mac-caption);line-height:1.38;white-space:nowrap}
.badge.blue{background:var(--accent-soft);color:var(--accent-text)}
.badge.green{background:var(--green-soft);color:var(--green-text)}
.badge.orange{background:var(--orange-soft);color:var(--orange-text)}
.badge.red{background:var(--red-soft);color:var(--red-text)}
.badge.purple{background:var(--purple-soft);color:var(--purple-text)}
button.badge{min-height:var(--capsule-h);padding:0 8px;box-shadow:none;cursor:default}
/* Count: unread and pending numbers in red. */
.count{display:inline-block;min-width:16px;height:16px;padding:0 4px;border-radius:var(--r-capsule);background:var(--badge);color:var(--on-badge);font-size:.625rem;font-weight:600;line-height:16px;text-align:center;font-variant-numeric:tabular-nums;vertical-align:middle}

/* Fields (TextField, DateField): one frame of ctl-mac on the control
   ground with the control line, 6px corners; the focus rings it in the
   accent. The text is leading, as Apple's (P46). A required field's label
   keeps its «*» in the label's colour. */
label{display:block;font:var(--type-mac-body);margin:12px 0;color:var(--label)}
label>i.required,.required-mark{color:inherit;font-style:normal}
input,select,textarea{width:100%;min-width:0;display:block;height:var(--ctl-mac);min-height:var(--ctl-mac);margin-top:4px;padding:0 7px;background:var(--control);color:var(--label);border:var(--hairline-w) solid var(--control-line);border-radius:6px;font:var(--type-mac-body);box-shadow:none;outline:none;transition:box-shadow .12s,border-color .12s}
textarea{height:auto;min-height:72px;padding:4px 7px;line-height:1.45}
/* A pop-up button (DateField): a short list with its chevrons at the end. */
select{padding-left:10px;padding-right:26px;border-radius:var(--r-control);appearance:none;-webkit-appearance:none;box-shadow:0 .5px 2px #1d31281a}
select[multiple]{height:auto;padding-right:7px;background-image:none}
select:hover:not(:disabled){border-color:color-mix(in srgb,var(--control-line),var(--label) 30%);box-shadow:0 .5px 2px #1d31282a}
input:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-field)}
/* A pop-up button keeps its frame when it has the focus; the keyboard's
   focus is the page's outline, as the mockup's .popup (ref.css
   :focus-visible) - not a field's accent frame (FW-UI-208). */
select:not([multiple],.plain-popup):focus{border-color:var(--control-line)}
select:not([multiple],.plain-popup):focus-visible{outline:3px solid var(--focus);outline-offset:1px}
/* A plain pop-up button (DateField; the mockup's .popup.plain): Apple's
   borderless pop-up of inspectors and toolbars - its label and the
   chevrons at its end, no frame and no ground, as wide as its choice and
   read from the trailing edge. The pointer and the focus ring it as the
   framed one (P30). */
select.plain-popup:not([multiple]){width:auto;max-width:100%;margin-top:0;padding-left:4px;border-color:transparent;background-color:transparent;box-shadow:none;text-align:right;text-align-last:right}
select.plain-popup:not([multiple],:disabled):hover{border-color:color-mix(in srgb,var(--control-line),var(--label) 30%)}
/* Its keyboard focus is the page's focus outline, as the mockup's (ref.css
   :focus-visible): no accent frame on a control that has no frame. */
select.plain-popup:not([multiple]):focus{border-color:transparent;box-shadow:none}
select.plain-popup:not([multiple]):focus-visible{outline:3px solid var(--focus);outline-offset:1px}
/* One ring: the field's own, never the page's outline beside it; a plain pop-up has no frame, so its ring is the outline. */
input:not([type=checkbox]):not([type=radio]):focus-visible,select[multiple]:focus-visible,textarea:focus-visible{outline:none}
input[readonly]:not([type=checkbox]):not([type=radio]){background:transparent;border-color:transparent;color:var(--label-2)}
input:disabled,select:disabled,textarea:disabled{opacity:.6}
input::placeholder,textarea::placeholder{color:var(--label-3)}
input[type=checkbox],input[type=radio]{display:inline-block;width:var(--check);height:var(--check);min-height:0;margin:0;padding:0;border:0;box-shadow:none;accent-color:var(--accent);vertical-align:middle}
input[type=checkbox]:focus,input[type=radio]:focus{box-shadow:none}
input[type=checkbox]:focus-visible,input[type=radio]:focus-visible{outline:3px solid var(--focus);outline-offset:1px}
.check{display:inline-flex;align-items:center;gap:6px;font-weight:400}
.check input{margin:0}
.field-error{color:var(--red-text);font:var(--type-mac-callout)}
/* Field row of a form sheet: label 150px, control; error and hint under the
   control. On a phone the label stands above. */
.field{display:grid;grid-template-columns:150px minmax(0,1fr);gap:4px 12px;align-items:center;padding:6px 0}
/* A pair of related controls inside one Field (Digits, Range). */

.field>label{margin:0}
.field :is(input,select,textarea,.combobox,.clearable){margin:0}
.field>:not(label){grid-column:2}
.field>p{margin:0}
.field.wide{grid-template-columns:1fr}
.field.wide>:not(label){grid-column:1}
fieldset{border:0;border-radius:var(--r-group);padding:4px 14px 12px;margin:18px 0;min-width:0;background:var(--group);box-shadow:0 0 0 var(--hairline-w) var(--group-line)}
legend{font:var(--type-mac-emphasis);color:var(--label-2);padding:0 4px}

/* Switch (Switch): 32 x 18, green when on (P13); a press widens the knob. */
input.switch{appearance:none;-webkit-appearance:none;flex:none;position:relative;width:var(--switch-w);height:18px;min-height:0;margin:0;padding:0;border:0;border-radius:9px;background:var(--fill-2);box-shadow:none;cursor:default;transition:background .15s}
input.switch::after{content:"";position:absolute;top:1px;left:1px;width:16px;height:16px;border-radius:8px;background:#fff;box-shadow:0 1px 2px #0000004d;transition:left .15s,width .15s}
input.switch:checked{background:var(--green);box-shadow:none}
input.switch:checked::after{left:15px}
input.switch:hover:not(:disabled){background:color-mix(in srgb,var(--label) 20%,transparent)}
input.switch:checked:hover:not(:disabled){background:color-mix(in srgb,var(--green) 88%,#000)}
input.switch:active:not(:disabled)::after{width:20px}
input.switch:checked:active:not(:disabled)::after{left:11px}
input.switch:focus{box-shadow:none}
input.switch:focus-visible{outline:3px solid var(--focus);outline-offset:1px}

/* Messages: a soft ground in the state's colour, 10px corners. Their size
   is the accepted mockup's .banner (orchestrator 2026-11-21, «the accepted
   mockup comes first»): 10px 12px inside, 12 px under it, its text 12 px on
   the body's 1.38 lines (ref.css .banner sets only the size). */
.message{padding:10px 12px;border-radius:var(--r-lg);font:var(--type-mac-callout);line-height:1.38;margin:0 0 12px;border:0}
.error{background:var(--red-soft);color:var(--red-text)}
.notice{background:var(--green-soft);color:var(--green-text)}
.message.warning{background:linear-gradient(var(--msg-warning),var(--msg-warning)),var(--window);color:var(--label);box-shadow:inset 0 0 0 1px var(--message-warning-line)}
.message.info{background:linear-gradient(var(--msg-info),var(--msg-info)),var(--window);color:var(--label);box-shadow:inset 0 0 0 1px var(--message-info-line)}
/* One palette for the four messages (PO 2026-10-18): information, warning,
   error and success alike, text in ink; each tone lies over the surface, so
   it stays pale on a grey window ground too (PO 2026-10-30 «почему оно
   серое?»); a 1px inset line in the tone keeps its edge (PO 2026-10-30 «Все
   отлично. Заливай», FW-UI-080). The product's own look, not the mockup's
   filled .banner: PO 2026-11-18 «Давай вернем наши, - они красивее.
   Скругление оставим» (MIGRATION-PLAN «Divergences»). Every banner of every
   stylesheet draws its line (web/banner_look_test.go).
   A capsule's corners are half its height, as the mockup's .capsule (10 px
   of 20): a capsule of two lines keeps them. */
.message.error{background:linear-gradient(var(--msg-error),var(--msg-error)),var(--window);color:var(--label);box-shadow:inset 0 0 0 1px var(--message-error-line)}
.message.notice{background:linear-gradient(var(--msg-success),var(--msg-success)),var(--window);color:var(--label);box-shadow:inset 0 0 0 1px var(--message-success-line)}
/* A message with actions (FW-UI-106, PO 2026-11-05 «ок»): its buttons stand
   at the right; when the text needs the width they wrap under it, still right. */
.message.has-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.message.has-actions>p{flex:1 1 320px;margin:0}
.message-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;margin-left:auto}
/* Avatar: a person without a photo, initials on a grey disc - 30, 40 or 72px. */
.avatar{flex:none;display:inline-grid;place-items:center;width:var(--avatar);height:var(--avatar);border-radius:50%;background:linear-gradient(var(--avatar-from),var(--avatar-to));color:var(--on-avatar);font-size:14px;font-weight:600}
.avatar.small{width:var(--avatar-sm);height:var(--avatar-sm);font-size:11px}
.avatar.large{width:var(--avatar-lg);height:var(--avatar-lg);font-size:24px}
/* A person with a photo (PA-DATA-046): the image fills the disc. The Hero's
   avatar is a plain button opening the photo dialog for one who may change
   the photo (PA-FORMS-016): the accent ring on hover. */
.avatar>img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
button.avatar:hover{box-shadow:0 0 0 2px var(--accent)}
/* Phone: the same control sizes; sidebars become lists, panes open full width. */
@media(max-width:700px){
 .field>:not(label){grid-column:1}
}
/* iPhone (700 px and less): controls of ctl-ios, the body type of iOS. */
@media(max-width:700px){
 .button,.primary-button,.quiet-button,.danger-button,.secondary,:where(button:not(.text-button,[role=tab],.plain-button)){min-height:var(--ctl-ios);padding:0 14px;font-size:15px;line-height:1.29}
 .icon-button{width:var(--ctl-ios);height:var(--ctl-ios)}
 .link-button,button.link-button{min-height:var(--ctl-ios);padding:0 4px;font-size:15px}
 input:not([type=checkbox]):not([type=radio]),select,textarea{height:var(--ctl-ios);min-height:var(--ctl-ios);font:var(--type-ios-body)}
 textarea{height:auto;min-height:88px}
 select[multiple]{height:auto}
 .badge{min-height:22px;font-size:12px;line-height:1.29}
}
/* Progress bar: the indeterminate bar of macOS, a thin track with a moving highlight. */
.window-progress{display:grid;gap:6px;margin:4px 0 14px}
.window-progress[hidden]{display:none}
.window-progress small{color:var(--label-2);font-size:var(--text-sm)}
/* Bar: an 8px track with 4px corners (progress, shares, balances). */
.bar{position:relative;display:flex;height:8px;border-radius:4px;background:var(--fill);overflow:hidden}
.bar>span{display:block;height:100%}
@keyframes progress-slide{from{left:-35%}to{left:100%}}

/* RichEditor (accepted 2026-10-22, FUT-012): formatted text edited in place. A toolbar on the bar ground,
   the text on the field ground with the field's focus ring; a field of the record is a chip that moves as
   one character; Insert a field opens a menu with a search. The palette is the colours of an email's text,
   which read on white. */
.rich-editor{position:relative;border:0;border-radius:var(--r-group);background:var(--group);box-shadow:0 0 0 var(--hairline-w) var(--group-line),0 .5px 1.5px #0000000a}
.rich-editor:focus-within{box-shadow:0 0 0 var(--hairline-w) var(--accent),0 0 0 3px var(--focus-field)}
/* On a phone a group has no line round it (the mockup's .group at 375 px). */
@media(max-width:700px){.rich-editor:not(:focus-within){box-shadow:none}}
/* RichEditor (notification.html's .group.rich, FW-UI-191): a group box; the
   toolbar on the quiet fill (.rich-bar), its symbols 26 px capsules, the text
   under one separator line. */
.rich-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:2px;padding:6px 8px;background:var(--fill);border-bottom:var(--hairline-w) solid var(--separator);border-radius:var(--r-group) var(--r-group) 0 0}
.rich-toolbar .icon-button{width:auto;min-width:26px;height:26px;padding:0 6px;border-radius:var(--r-capsule);color:var(--label)}
.rich-toolbar .icon-button:hover{background:color-mix(in srgb,var(--label) 11%,transparent)}
.rich-toolbar .icon-button.is-on{background:var(--fill-2);color:var(--label)}
.rich-toolbar .icon-button svg{width:14px;height:14px}
/* Its Block and Size are the mockup's framed pop-up buttons, 28 px high
   (.popup.tb-pop in .rich-bar); the mockup hides them on iPhone, where a
   message is formatted by its buttons alone (FW-UI-182). */
.rich-toolbar select{height:28px;min-height:0;margin:0;width:auto}
@media(max-width:700px){.rich-toolbar select{display:none}}
.rich-sep{width:var(--hairline-w);height:18px;background:var(--separator);margin:0 4px}
.rich-insert{border-radius:var(--r-capsule)}
.rich-spacer{flex:1}
.sel-cols .rich-insert{margin-left:auto}
.rich-area{min-height:140px;padding:10px 12px;font-size:var(--text-base);line-height:1.38;color:var(--label);outline:none;overflow-wrap:anywhere}
.rich-area p,.rich-area ul,.rich-area ol{margin:0 0 8px}
.rich-area a{color:var(--link)}
.rich-area h2{font-size:var(--text-xl);margin:0 0 8px}
.rich-area h3{font-size:var(--text-lg);margin:0 0 8px}
.rich-area blockquote{margin:0 0 8px;padding-left:10px;border-left:3px solid var(--line-strong);color:var(--label-2)}
.rich-area img{max-width:100%;height:auto;border-radius:var(--r-xs)}
.rich-area img.is-chosen{outline:2px solid var(--accent)}
.rich-files{padding:6px 12px 10px;border-top:var(--hairline-w) solid var(--separator)}
.rich-editor.is-line .rich-area{min-height:34px;padding:10px 12px;white-space:nowrap;overflow:hidden}
.rich-area:empty::before{content:attr(data-placeholder);color:var(--tertiary)}
/* A field in the text is the mockup's chip (.field-chip): 5 px corners, 12 px. */
.rich-field{display:inline-block;padding:0 6px;margin:0 1px;border-radius:5px;background:var(--accent-soft);color:var(--accent-text);font-size:12px;white-space:nowrap;vertical-align:baseline;cursor:default}
/* FieldTree (FUT-013): the fields of a notification opened node by node; each
   opened node's rows sit in an .ft-group, which indents them. */
.field-tree{position:absolute;right:6px;top:34px;z-index:20;width:400px;max-width:calc(100vw - 48px);padding:6px;background:var(--window);border-radius:var(--r-md);box-shadow:var(--popover-shadow)}
.field-tree input[type=search]{width:100%;margin-bottom:4px}
.ft-list{max-height:320px;overflow:auto}
.ft-group{padding-left:16px}
.ft-row{display:flex;align-items:center;gap:6px;min-height:26px;padding:0 6px;border-radius:var(--r-xs);color:var(--label);font-size:var(--text-base);cursor:pointer}
.ft-row:hover,.ft-row:focus{background:var(--fill-2);outline:none}
.ft-row.is-leaf:hover,.ft-row.is-leaf:focus{background:var(--accent);color:var(--on-accent)}
.ft-row.is-leaf:hover small,.ft-row.is-leaf:focus small{color:inherit}
.ft-toggle{display:inline-grid;place-items:center;flex:none;width:18px;height:18px;border:0;border-radius:var(--r-xs);background:var(--fill);color:var(--label-2);font:600 13px/1 var(--font-text);padding:0;cursor:pointer}
.ft-gap{flex:none;width:18px}
.ft-row small{margin-left:auto;color:var(--tertiary);font-size:var(--text-xs);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ft-root{font-weight:600}
.ft-row.is-make{color:var(--accent-text)}
/* A notification's selection (FUT-013): its order beside the direction, its
   conditions as rule blocks of one line. */
.sel-order{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sel-order select{width:auto;flex:1}
.sel-where{display:grid;gap:6px}
.sel-where .rv-ln{gap:6px}
.sel-where select,.sel-where input{width:auto;min-width:0;height:26px;padding:0 6px;font-size:var(--text-sm)}
.sel-cols{width:100%}
.sel-cols .rich-area{min-height:0;padding:6px 8px}
.sel-cols .rich-toolbar{border-radius:0 0 var(--r-group) var(--r-group);border-top:var(--hairline-w) solid var(--separator);border-bottom:0}
.sel-cols .field-tree{top:auto;bottom:34px}
/* Opened by an anchor over the page, as the menus of the rules (FW-UI-037). */
.field-tree.is-popup{position:fixed;left:var(--ft-left,8px);top:var(--ft-top,8px);right:auto;z-index:60}
/* A selection's table in the editor: its columns and a row of what each
   writes, one block the author places or removes. */
.rich-area table[data-field]{margin:6px 0;cursor:default}
/* A choice in a tree (FW-UI-090): the current row in our blue, the row a
   search keeps for its place muted, the letters found marked. */
.field-tree.is-choice{width:460px}
.field-tree.is-choice .ft-row{min-width:0}
.field-tree.is-choice .ft-row:hover,.field-tree.is-choice .ft-row:focus{background:var(--fill-2)}
.field-tree.is-choice .ft-row.is-context{color:var(--label-2)}
.field-tree.is-choice .ft-row.is-current,.field-tree.is-choice .ft-row.is-current:hover,.field-tree.is-choice .ft-row.is-current:focus{background:var(--accent);color:var(--on-accent)}
.ft-row.is-current :is(small,.ft-code,.ft-sub,.ft-chevron){color:inherit}
/* A chosen record's two lines, as the Combo Box list's (FW-OPS-080): the
   name, then its Code and state in the list's muted line. */
.ft-text{display:flex;flex-direction:column;min-width:0;padding:3px 0}
.ft-sub{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--label-2);font-size:var(--text-xs);font-weight:400}
.ft-row.is-leaf:hover .ft-sub,.ft-row.is-leaf:focus .ft-sub{color:inherit}
.ft-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ft-toggle.ft-chevron{background:transparent}
.ft-chevron svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6}
.ft-chevron.is-open svg{transform:rotate(90deg)}
.field-tree.is-choice mark{background:var(--accent-soft-strong);color:var(--accent-pressed);border-radius:2px}
.ft-row.is-current mark{background:color-mix(in srgb,var(--on-accent) 36%,transparent);color:inherit}
.field-tree.is-choice .ft-row small{flex:none;max-width:45%}
.ft-path{margin:6px 6px 2px;padding-top:6px;border-top:var(--hairline-w) solid var(--group-line);font-size:var(--text-xs);color:var(--label-2);min-height:16px}
.file-button{display:inline-flex;align-items:center}
