/* One warm, neutral palette for every form, including browser autofill. */
:root{--field-bg:#181919;--field-text:#f0e5d1;--field-border:#514638;--field-placeholder:#a9a294;--field-selection:#514632}
/* One single-line input size across discussion, reports, updates and other forms.
   Keep file pickers, checkboxes, hidden fields and multiline editors untouched. */
:root{--text-input-height:38px;--text-input-font-size:13px}
:root input:is(:not([type]),[type=text],[type=email],[type=url],[type=tel],[type=search],[type=password],[type=number],[type=date],[type=datetime-local],[type=time]){box-sizing:border-box;min-height:var(--text-input-height);padding:7px 10px;font-size:var(--text-input-font-size);line-height:22px}
@media(max-width:600px){:root{--text-input-height:40px;--text-input-font-size:16px}}
/* Shared introduction spacing for discussion and error-report composers. */
.community-compose>h2{margin:0 0 12px}
.community-compose>p.small{margin:0 0 18px}
.community-compose>form{display:flow-root;margin-bottom:16px}
.community-compose>form>.form-status:empty{display:none}
/* Repeated clicks/drags on controls must not start a document text selection.
   Leave prose, paths and editable fields selectable for intentional copying. */
:is(summary,button,select,option,.btn,[role=button],[role=tab]){
 -webkit-user-select:none;
 user-select:none;
}
.field :is(input,textarea,select){background-color:var(--field-bg);color:var(--field-text);border-color:var(--field-border);caret-color:var(--gold);accent-color:var(--gold)}
.field :is(input,textarea)::placeholder{color:var(--field-placeholder);opacity:1}
.field :is(input,textarea,select):focus{border-color:var(--gold)}
.field :is(input,textarea,select):focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.field :is(input,textarea)::selection{background:var(--field-selection);color:var(--text)}
.field select option{background:var(--field-bg);color:var(--field-text)}
.field select:not([multiple]):not([size]){appearance:none;-webkit-appearance:none;background-image:url('./assets/select-chevron.svg');background-repeat:no-repeat;background-size:18px 18px;background-position:right 14px center;padding-right:44px;cursor:pointer}
/* Native form semantics, with a fully themed top-layer picker where supported. */
@supports (appearance:base-select){
 .field select:not([multiple]):not([size]),.field select:not([multiple]):not([size])::picker(select){appearance:base-select}
 .field select:not([multiple]):not([size]){display:flex;align-items:center;background-image:none;padding-right:14px;gap:12px;line-height:20px;transition:border-color .18s,border-radius .18s}
 .field select:not([multiple]):not([size])::picker-icon{content:'';display:block;width:18px;height:18px;flex:none;align-self:center;margin:0 0 0 auto;background:url('./assets/select-chevron.svg') center/18px 18px no-repeat;transition:transform .18s ease}
 .field select:not([multiple]):not([size]):open{border-color:var(--gold);border-radius:7px 7px 0 0;outline:none}
 .field select:not([multiple]):not([size]):open::picker-icon{transform:rotate(180deg)}
 .field select:not([multiple]):not([size])::picker(select){background:var(--field-bg);color:var(--field-text);border:1px solid var(--gold);border-top-color:var(--field-border);border-radius:0 0 7px 7px;margin:-1px 0 0;padding:4px;box-shadow:0 12px 24px #0006;max-height:min(280px,45dvh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--field-border) var(--field-bg);width:anchor-size(width);box-sizing:border-box}
 .field select:not([multiple]):not([size])::picker(select){position-anchor:auto;position-area:none;top:anchor(bottom);left:anchor(left);right:auto;bottom:auto;position-try-order:normal;position-try-fallbacks:flip-block}
 .field select:not([multiple]):not([size])::picker(select):popover-open{animation:select-expand .16s ease-out}
 .field select:not([multiple]):not([size]) option{display:flex;align-items:center;gap:10px;min-height:40px;padding:9px 10px;border:0;border-radius:4px;white-space:normal;overflow-wrap:anywhere;font:inherit;cursor:pointer}
 .field select:not([multiple]):not([size]) option:hover,.field select:not([multiple]):not([size]) option:focus{background:var(--field-selection);color:var(--text);outline:none}
 .field select:not([multiple]):not([size]) option:checked{background:#2b271e;color:var(--gold)}
 .field select:not([multiple]):not([size]) option:disabled{opacity:.5;cursor:not-allowed}
 .field select:not([multiple]):not([size]) option::checkmark{color:var(--gold);margin-left:auto;order:1}
 @keyframes select-expand{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
 @media(prefers-reduced-motion:reduce){.field select:not([multiple]):not([size])::picker(select):popover-open{animation:none}.field select:not([multiple]):not([size])::picker-icon{transition:none}}
}
.report-actions{display:flex;align-items:stretch;gap:10px}
.report-actions>.btn{min-width:0;gap:8px}
.report-actions svg{width:18px;height:18px;flex:none}
@media(max-width:480px){.report-actions>.btn{flex:1;padding:9px 8px;font-size:11px;line-height:1.5}.report-actions>.btn span{min-width:0}}
@media(forced-colors:active){.field select:not([multiple]):not([size]){appearance:auto;background-image:none;padding-right:12px}}
input[type=checkbox],input[type=radio]{accent-color:var(--gold)}
/* Chromium's autofill background is !important; an inset surface masks it. */
.field :is(input,textarea,select):-webkit-autofill{
  -webkit-text-fill-color:var(--field-text);
  caret-color:var(--gold);
  -webkit-box-shadow:0 0 0 1000px var(--field-bg) inset;
  box-shadow:0 0 0 1000px var(--field-bg) inset;
}
.field :is(input,textarea,select):autofill{background-color:var(--field-bg);color:var(--field-text);box-shadow:0 0 0 1000px var(--field-bg) inset}
@media(forced-colors:active){.field :is(input,textarea,select):-webkit-autofill{-webkit-text-fill-color:FieldText;box-shadow:none;-webkit-box-shadow:none}}
/* Dim only published content; management controls and editors stay readable. */
.card.is-content-hidden{border-color:#393a3b}
.is-content-hidden[data-about-section]>:is(h2,.card-header,.about-section-content,.project-gallery-empty),
.is-content-hidden>.project-gallery-header>h2,
.is-content-hidden .project-gallery-open,
.is-content-hidden>.post>.post-avatar,
.is-content-hidden>.post>.post-content>:is(.post-meta,.manual-update-header,.post-title,.rich-content),
.is-content-hidden>.release-head>div:first-child,
.is-content-hidden>:is(.release-description,.release-notes){filter:grayscale(1);opacity:.5}
