/* The webcore skin's chrome: the face, the type, and every control as a raised or sunken
   box — buttons, the selector, focus and the disabled state. */
:root[data-skin="webcore"],
:root[data-skin="webcore"] body {
    background: var(--wc-desktop);
    color: var(--wc-ink);
}
:root[data-skin="webcore"] *,
:root[data-skin="webcore"] *::before,
:root[data-skin="webcore"] *::after {
    font-family: var(--wc-font) !important;
    border-radius: 0 !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
}
/* `kbd` is excluded on purpose: a keycap is interface type, and monospace drew its glyph
   (⌥, ⇧) a third smaller than the word beside it. */
:root[data-skin="webcore"] :is(.script-input, .script-highlight, code, pre) {
    font-family: 'Menlo', 'Consolas', monospace !important;
}
:root[data-skin="webcore"] ::selection { background: var(--wc-select); color: var(--wc-on-select); }
:root[data-skin="webcore"] :focus-visible { outline: 1px dotted var(--wc-ink); outline-offset: -3px; }
:root[data-skin="webcore"] a { color: var(--wc-link); }

/* ── Surfaces ── */
:root[data-skin="webcore"] .container,
:root[data-skin="webcore"] .controls,
:root[data-skin="webcore"] .controls-wrapper,
:root[data-skin="webcore"] .info,
:root[data-skin="webcore"] .coordinates-panel,
:root[data-skin="webcore"] #selection-panel,
:root[data-skin="webcore"] .selection-panel-inner {
    background: var(--wc-face);
    border-color: var(--wc-shadow);
    box-shadow: none;
}
:root[data-skin="webcore"] .container { box-shadow: var(--wc-raised); border: 0; }
:root[data-skin="webcore"] .ctrl-section + .ctrl-section::before,
:root[data-skin="webcore"] .info-divider,
:root[data-skin="webcore"] .sel-sep {
    background: var(--wc-shadow);
    box-shadow: 1px 0 var(--wc-hilight);
}
:root[data-skin="webcore"] .ctrl-section-label,
:root[data-skin="webcore"] .selection-label,
:root[data-skin="webcore"] label { color: var(--wc-ink); }

/* ── Buttons: raised; pressed and active sink ── */
:root[data-skin="webcore"] button,
:root[data-skin="webcore"] .btn-icon,
:root[data-skin="webcore"] .btn-icon-text,
:root[data-skin="webcore"] .zoom-controls button,
:root[data-skin="webcore"] .name-edit-btn,
:root[data-skin="webcore"] .idle-create-btn,
:root[data-skin="webcore"] .chat-hbtn,
:root[data-skin="webcore"] .chat-abtn,
:root[data-skin="webcore"] .ctx-assist-abtn,
:root[data-skin="webcore"] .pill-toggle,
:root[data-skin="webcore"] #toggle-controls,
:root[data-skin="webcore"] #toggle-coord-panel,
:root[data-skin="webcore"] #theme-toggle,
:root[data-skin="webcore"] #draw-toggle,
:root[data-skin="webcore"] #zoom-fit,
:root[data-skin="webcore"] #settings-btn,
:root[data-skin="webcore"] #visuals-btn,
:root[data-skin="webcore"] #info-btn,
:root[data-skin="webcore"] #chat-btn,
:root[data-skin="webcore"] #voice-chat-btn,
:root[data-skin="webcore"] #fullscreen-toggle,
:root[data-skin="webcore"] #incognito-toggle {
    background: var(--wc-face);
    color: var(--wc-ink);
    border: 0 !important;   /* the settings row's own outline is !important (components/settings/settings.css) */
    box-shadow: var(--wc-raised);
    transform: none;
    filter: none;
    opacity: 1;
}
:root[data-skin="webcore"] button.primary,
:root[data-skin="webcore"] button[type="submit"] {
    box-shadow: 0 0 0 1px var(--wc-dark), var(--wc-raised);
}
/* The pointer draws a frame in --wc-focus — the mic tile's own answer, which every control now
   gives, only where a pointer hovers: a touch screen holds a tap's hover on the control (user report).
   !important because half of them carry an id rule of their own, which outranks any selector this
   sheet could spell. Depth is still said by the press: a pressed or checked control sinks into its bevel. */
@media (hover: hover) {
    :root[data-skin="webcore"] :is(button, .btn-icon, .btn-icon-text, .chat-hbtn, .chat-abtn,
    .ctx-assist-abtn, .pill-toggle, .name-edit-btn, .idle-create-btn, .coord-tab, .oi-tab,
    .accent-dd-trigger):hover:not(:disabled),
    :root[data-skin="webcore"] :is(#theme-toggle, #draw-toggle, #zoom-fit, #chat-btn, #incognito-toggle, #fullscreen-toggle):hover:not(:disabled),
    :root[data-skin="webcore"] #voice-chat-btn:not(.active):not(:disabled):hover {
        background: var(--wc-face);
        color: var(--wc-ink);
        border-color: transparent;
        box-shadow: inset 0 0 0 2px var(--wc-focus) !important;
        transform: none;
    }
    :root[data-skin="webcore"] .accent-dd-trigger:hover:not(:disabled) {
        background: var(--wc-window);
        box-shadow: inset 0 0 0 2px var(--wc-focus) !important;
    }
}
:root[data-skin="webcore"] :is(button, .btn-icon, .btn-icon-text, .chat-hbtn, .chat-abtn):active:not(:disabled),
:root[data-skin="webcore"] button.active,
:root[data-skin="webcore"] #draw-toggle.active:not(:disabled),
:root[data-skin="webcore"] #chat-btn.active,
:root[data-skin="webcore"] #incognito-toggle.active,
:root[data-skin="webcore"] #fullscreen-toggle.active,
:root[data-skin="webcore"] #voice-chat-btn.active,
:root[data-skin="webcore"] .pill-toggle.on,
:root[data-skin="webcore"] .chat-dock-btn-active,
:root[data-skin="webcore"] .oi-tab.is-active,
:root[data-skin="webcore"] .coord-tab-active {
    background: var(--wc-light);
    color: var(--wc-ink);
    box-shadow: var(--wc-sunken);
    transform: none;
}
:root[data-skin="webcore"] button.danger,
:root[data-skin="webcore"] button.danger:hover:not(:disabled) {
    background: var(--wc-face);
    color: var(--wc-ink);   /* a button's word is read, never colour-coded: Win95 had no red label */
    box-shadow: var(--wc-raised);
}
:root[data-skin="webcore"] :is(button, select, input, textarea):disabled,
:root[data-skin="webcore"] button.primary:disabled,
:root[data-skin="webcore"] :is(label, .vs-row, .hotkey-row, .ctrl-section-label):has(> :disabled),
:root[data-skin="webcore"] [aria-disabled="true"],
:root[data-skin="webcore"] .is-disabled {
    background: var(--wc-face);
    /* --disabled-text, not --wc-shadow: on the dark face the shadow is #1c1c1c and the greyed
       label vanished into the box. The 1px emboss under it is the skin's own greyed look. */
    color: var(--disabled-text);
    text-shadow: 1px 1px var(--wc-hilight) !important;
    box-shadow: var(--wc-raised);
    opacity: 1;
    cursor: not-allowed;
}
:root[data-skin="webcore"] :is(input, textarea):disabled { background: var(--wc-face); box-shadow: var(--wc-sunken); }
:root[data-skin="webcore"] :is(button, select):disabled:hover { box-shadow: var(--wc-raised); }

/* A selector is a sunken field with a raised arrow button, exactly as the desktop's combo is. */
:root[data-skin="webcore"] .accent-dd-trigger {
    background: var(--wc-window);
    color: var(--wc-ink);
    border: 0;
    box-shadow: var(--wc-sunken);
    padding: 2px 22px 2px 6px;
    position: relative;
    transform: none;
}
:root[data-skin="webcore"] .accent-dd-caret {
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wc-face);
    box-shadow: var(--wc-raised);
}
