/* Arts academy design system. One palette, shared by custom and native Moodle pages. */
@font-face {
    font-family: "Yisu Academy Serif";
    src: url("fonts/academy-serif-bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Yisu Academy Sans";
    src: url("fonts/academy-sans-400.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Yisu Academy Sans";
    src: url("fonts/academy-sans-600.woff") format("woff");
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}
:root {
    color-scheme: light;
    --ys-bg: #d4cbbf;
    --ys-header: #c9c0b3;
    --ys-surface: #ffffff;
    --ys-surface-alt: #f3efe8;
    --ys-selected: #f7eee4;
    --ys-line: #bfb5a7;
    --ys-text: #252522;
    --ys-muted: #66665f;
    --ys-subtle: #74746c;
    --ys-accent: #af4524;
    --ys-accent-hover: #8d351c;
    --ys-on-accent: #ffffff;
    --ys-success: #286544;
    --ys-warning: #795316;
    --ys-danger: #a02f2b;
    --ys-success-bg: #eaf3ec;
    --ys-warning-bg: #faf0dc;
    --ys-danger-bg: #f9e9e6;
    --ys-radius: 6px;
    --ys-card-radius: 12px;
    --ys-edge-light: #fffdf8;
    --ys-edge-dark: #b2a28d;
    --ys-shadow-control: inset 0 1px 0 #ffffffb3, inset 0 -2px 0 #55402a26, 0 2px 3px #32281e26;
    --ys-shadow-card: inset 0 1px 0 #fff, 0 4px 0 #b2a28d, 0 7px 5px #32281e38, 5px 16px 24px #32281e40;
    --ys-shadow-panel: inset 0 1px 0 #fff, 0 2px 0 #b2a28d, 0 6px 14px #32281e24;
    --ys-shadow-header: inset 0 1px 0 #fff, 0 2px 0 #bfb3a1, 0 6px 12px #32281e29;
    --ys-shadow-popover: inset 0 1px 0 #fff, 0 3px 0 #b2a28d, 0 12px 28px #32281e3d;
    --ys-sidebar-width: 216px;
    --ys-font: "Yisu Academy Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --ys-display: "Yisu Academy Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
    --blue: var(--ys-accent);
    --blue-light: var(--ys-selected);
    --text: var(--ys-text);
    --muted: var(--ys-muted);
    --line: var(--ys-line);
    --bs-body-bg: var(--ys-bg);
    --bs-primary: var(--ys-accent);
    --bs-primary-rgb: 175, 69, 36;
    --bs-body-color: var(--ys-text);
    --bs-border-color: var(--ys-line);
    --bs-link-color: var(--ys-accent);
    --bs-link-hover-color: var(--ys-accent-hover);
    --bs-tertiary-bg: var(--ys-surface-alt);
    --bs-secondary-bg: var(--ys-surface);
    --bs-secondary-color: var(--ys-muted);
}
html { background: var(--ys-bg); }
body.ys-commercial, body.ys-learning, body.ys-console, body.ys-phone-auth {
    background: var(--ys-bg); color: var(--ys-text); font-family: var(--ys-font);
    font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
body.ys-commercial, body.ys-learning, body.ys-console, body.ys-phone-auth { box-shadow: inset 0 160px 180px -120px #fff8; }
body * { scrollbar-color: var(--ys-line) var(--ys-header); }
::selection { background: var(--ys-accent); color: var(--ys-on-accent); }
a { color: var(--ys-accent); }
a:hover { color: var(--ys-accent-hover); }
:focus-visible { outline: 2px solid var(--ys-accent); outline-offset: 4px; }
body :is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--ys-accent) !important; outline-offset: 3px; }
input, select, textarea { accent-color: var(--ys-accent); }
body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]),select,textarea) {
    color: var(--ys-text); background-color: var(--ys-surface); border-color: var(--ys-line); border-radius: var(--ys-radius);
    font-family: var(--ys-font); font-size: 14px; min-height: 44px;
    box-shadow: inset 0 2px 3px #32281e14, 0 1px 0 #fff9;
}
body :is(input,textarea)::placeholder { color: var(--ys-subtle); opacity: 1; }
body :is(input,textarea,select):focus { border-color: var(--ys-accent); box-shadow: 0 0 0 2px #a1492f20; }
body :is(input,select,textarea,button):disabled { opacity: .55; cursor: not-allowed; }
body :is(.form-control,.custom-select,.input-group-text,.form-autocomplete-selection [role=option]) { background: var(--ys-surface); color: var(--ys-text); border-color: var(--ys-line); }
body :is(.btn,.yl-button,.ys-btn) { border-radius: var(--ys-radius); font-size: 14px; min-height: 40px; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s; }
body :is(.btn-primary,.yl-primary,.ys-btn-primary,.pa-primary) {
    background: var(--ys-accent) !important; color: var(--ys-on-accent) !important; border-color: var(--ys-accent) !important; font-weight: 600;
    box-shadow: inset 0 2px 0 #ffd5bfa6, inset 0 9px 7px -7px #ffc3a699, inset 0 -2px 0 #58220c66, 0 3px 0 #6b321c, 0 5px 7px #32281e38;
}
body :is(.btn-primary,.yl-primary,.ys-btn-primary,.pa-primary):hover { background: var(--ys-accent-hover) !important; border-color: var(--ys-accent-hover) !important; }
body :is(.btn-secondary,.btn-outline-secondary,.btn-outline-primary,.yl-button:not(.yl-primary),.ys-btn:not(.ys-btn-primary)) {
    background: var(--ys-surface); color: var(--ys-accent) !important; border-color: var(--ys-line); box-shadow: var(--ys-shadow-control);
}
body :is(.btn-secondary,.btn-outline-secondary,.yl-button:not(.yl-primary),.ys-btn:not(.ys-btn-primary)):hover { background: var(--ys-selected); border-color: var(--ys-accent); }
body :is(.btn,.yl-button,.ys-btn):active:not(:disabled):not([aria-disabled=true]) { transform: translateY(1px); box-shadow: inset 0 2px 3px #32281e26; }
body :is(.btn-link,.btn-icon,.btn-close) { box-shadow: none; }
body :is(.text-muted,.text-secondary,.yl-muted,.ys-row-sub,.description,.dimmed) { color: var(--ys-muted) !important; }
body :is(.text-dark,.text-body,.text-body-secondary) { color: var(--ys-text) !important; }
body :is(.text-primary,.text-info) { color: var(--ys-accent) !important; }
body :is(.text-success,.valid-feedback) { color: var(--ys-success) !important; }
body .text-warning { color: var(--ys-warning) !important; }
body :is(.text-danger,.invalid-feedback) { color: var(--ys-danger) !important; }
body :is(.bg-white,.bg-light,.bg-body,.bg-body-secondary,.card,.modal-content,.popover,.dropdown-menu,.form-autocomplete-suggestions,.toast) {
    background-color: var(--ys-surface) !important; color: var(--ys-text); border-color: var(--ys-line);
}
body :is(.dropdown-item,.list-group-item,.popover-body,.modal-title,.close,.btn-close) { color: var(--ys-text); }
body :is(.dropdown-item:hover,.dropdown-item:focus,.list-group-item.active,.form-autocomplete-suggestions [aria-selected=true]) { background: var(--ys-selected); color: var(--ys-accent); }
body :is(.dropdown-divider,.modal-header,.modal-footer,.card-header,.card-footer,.border,.border-top,.border-bottom) { border-color: var(--ys-line) !important; }
body :is(.alert-info,.alert-primary,.yl-notice) { background: var(--ys-selected); border-color: var(--ys-line); color: var(--ys-text); }
body :is(.alert-success,.badge-success) { background: var(--ys-success-bg); border-color: #456b53; color: var(--ys-success); }
body :is(.alert-warning,.badge-warning) { background: var(--ys-warning-bg); border-color: #6a5b3a; color: var(--ys-warning); }
body :is(.alert-danger,.yl-notice.error,.pa-error) { background: var(--ys-danger-bg); border-color: #77504b; color: var(--ys-danger); }
body .form-check-input { background-color: var(--ys-header); border-color: var(--ys-line); }
body .form-check-input:checked { background-color: var(--ys-accent); border-color: var(--ys-accent); }
body :is(.table,table.generaltable) { color: var(--ys-text); --bs-table-bg: transparent; --bs-table-color: var(--ys-text); --bs-table-border-color: var(--ys-line); }
body :is(.table,table.generaltable) :is(th,td) { border-color: var(--ys-line); }
body :is(.table thead,table.generaltable thead,.table-striped tbody tr:nth-of-type(odd)) { background: var(--ys-surface-alt); }
body :is(.page-link,.pagination .page-item .page-link) { background: var(--ys-surface); color: var(--ys-accent); border-color: var(--ys-line); box-shadow: var(--ys-shadow-control); }
body .page-item.active .page-link { background: var(--ys-accent); color: var(--ys-on-accent); }

/* Shared learner navigation, including native assignments, quiz, content and recovery. */
.ys-learning .yl-header { min-height: 78px; padding: 0 max(32px,calc((100vw - 1348px)/2)); gap: 96px; justify-content: flex-start; background: var(--ys-header); border-color: var(--ys-line); }
.yl-header .yl-brand { color: var(--ys-text) !important; }
.yl-header .yl-brand>span, .ys-login-brand>span, .pa-brand>span { display: none; }
.yl-header .yl-brand strong, .ys-login-brand strong, .pa-brand strong { font-family: var(--ys-display); font-weight: 600; font-size: 30px; letter-spacing: 2px; max-width: 250px; }
.yl-header .yl-brand small { display: none; }
.ys-learning .yl-header nav { flex: 1; align-items: stretch; gap: 32px; font-size: 17px; }
.ys-learning .yl-header nav>a { display: flex; align-items: center; min-height: 78px; padding: 0; color: var(--ys-muted); border-bottom: 2px solid transparent; }
.ys-learning .yl-header nav>a:hover { color: var(--ys-text); text-decoration: none; }
.ys-learning .yl-header nav>a[aria-current=page] { color: var(--ys-text); border-color: var(--ys-accent); }
.yl-header details { margin-left: auto; align-self: center; color: var(--ys-text); font-size: 14px; z-index: 60; }
.yl-header details summary { padding: 8px 0; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yl-header details[open] { position: relative; }
.yl-header details[open]>a { position: relative; min-width: 174px; background: var(--ys-header); padding: 10px 16px; border-inline: 1px solid var(--ys-line); color: var(--ys-muted); }
.yl-header details[open]>a:last-child { border-bottom: 1px solid var(--ys-line); border-radius: 0 0 6px 6px; }
.yl-header details[open]>a:hover { background: var(--ys-selected); color: var(--ys-accent); }
.yl-header details[open] summary { margin-bottom: -1px; }
.ys-learning .yl-main { max-width: 1414px; padding: 40px 32px 64px; }
.yl-main>.yl-breadcrumb { margin-bottom: 24px; font-size: 13px; color: var(--ys-subtle); }
.yl-main .yl-heading { margin-bottom: 28px; }
.yl-main .yl-heading h1 { color: var(--ys-text); font-family: var(--ys-display); font-size: 34px; font-weight: 600; line-height: 1.4; letter-spacing: 1px; }
.ys-learning .ys-page-head h1 { color: var(--ys-text); font-family: var(--ys-display); font-size: 34px; font-weight: 600; }
.ys-learning .ys-page-head p { font-size: 14px; color: var(--ys-muted); }
.yl-main .yl-eyebrow { font-size: 12px; color: var(--ys-subtle); letter-spacing: 1px; margin-bottom: 8px; }
.ys-learning :is(h2,h3) { color: var(--ys-text); }
.yl-main .yl-card { background: var(--ys-surface); border: 1px solid var(--ys-edge-light); padding: 26px; border-radius: var(--ys-card-radius); box-shadow: var(--ys-shadow-panel); }
.yl-main .yl-section-head h2 { font-size: 18px; }
.yl-main .yl-muted { font-size: 14px; }
.yl-main .yl-tabs { gap: 28px; flex-wrap: nowrap; overflow-x: auto; border-bottom: 1px solid var(--ys-line); margin-bottom: 24px; }
.yl-main .yl-tabs a { padding: 12px 0; border-radius: 0; color: var(--ys-muted); font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; }
.yl-main .yl-tabs a.is-active { color: var(--ys-accent); background: transparent; border-color: var(--ys-accent); }
.yl-main .yl-tabs a span { margin-left: 4px; font-size: 12px; opacity: .8; }
.yl-tabs, .ys-list-tabs, .ys-editor-steps { scrollbar-width: none; }
.yl-tabs::-webkit-scrollbar, .ys-list-tabs::-webkit-scrollbar, .ys-editor-steps::-webkit-scrollbar { display: none; }
.yl-main .yl-pages { font-size: 13px; color: var(--ys-subtle); padding-top: 20px; border-top: 1px solid var(--ys-line); }
.yl-footer { border-top: 1px solid var(--ys-line); padding: 26px 20px; color: var(--ys-subtle); font-size: 12px; }

/* The selected cinematic course composition uses actual enrolment and completion data. */
.yc-collection .yl-breadcrumb, .yc-collection .yl-eyebrow { display: none; }
.ys-learning .yc-collection { padding-top: 28px; }
.yc-collection .yl-heading { margin: 4px 0 14px; }
.yc-collection .yl-heading h1 { font-size: 48px; font-weight: 700; }
.yc-collection .yc-tools { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin-bottom: 22px; }
.yc-tools .yc-search { order: 2; margin: 0; gap: 8px; }
.yc-tools .yc-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.yc-tools .yc-search input:not([type=hidden]) { width: 230px; min-width: 0; flex: initial; max-width: 100%; }
.yc-tools .yl-tabs { order: 1; margin: 0; flex: 1; min-width: 0; }
.academy-feature { display: grid; grid-template-columns: minmax(0,2.45fr) minmax(250px,1fr); gap: 34px; margin-bottom: 38px; }
.academy-feature-main { min-width: 0; background: var(--ys-surface); border: 1px solid var(--ys-edge-light); border-radius: var(--ys-card-radius); box-shadow: var(--ys-shadow-card); }
.academy-feature-cover { display: block; overflow: hidden; border-radius: 11px 11px 0 0; aspect-ratio: 2.65; background: var(--ys-header); }
.academy-feature-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.academy-feature-info { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 22px; }
.academy-feature-info>div { min-width: 0; flex: 1; }
.academy-feature-info h2 { font-family: var(--ys-display); font-weight: 700; font-size: 36px; line-height: 1.4; margin: 0 0 8px; overflow-wrap: anywhere; }
.academy-feature-info h2 a { color: var(--ys-text); }
.academy-feature-info p { color: var(--ys-muted); font-size: 17px; margin: 0 0 12px; }
.academy-feature-info>.yl-primary { padding: 13px 28px; min-width: 170px; min-height: 48px; flex-shrink: 0; font-size: 16px; }
.academy-progress { display: flex; gap: 18px; align-items: center; color: var(--ys-muted); font-size: 15px; }
.academy-progress progress { flex: 1; height: 5px; max-width: 450px; border: 0; border-radius: 4px; background: var(--ys-line); }
progress { accent-color: var(--ys-accent); }
progress::-webkit-progress-bar { background: var(--ys-line); border-radius: 4px; }
progress::-webkit-progress-value { background: var(--ys-accent); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--ys-accent); border-radius: 4px; }
.academy-outline { min-width: 0; padding: 18px 22px; background: var(--ys-surface); border: 1px solid var(--ys-edge-light); border-radius: var(--ys-card-radius); box-shadow: var(--ys-shadow-panel); }
.academy-outline h2 { font-family: var(--ys-display); font-size: 25px; padding: 10px 0 20px; border-bottom: 1px solid var(--ys-line); }
.academy-outline>a { display: flex; gap: 14px; align-items: center; min-height: 64px; padding: 14px 12px; border-bottom: 1px solid var(--ys-line); color: var(--ys-muted); font-size: 14px; }
.academy-outline>a:hover { color: var(--ys-accent); text-decoration: none; background: var(--ys-selected); }
.academy-outline>a>span { font-variant-numeric: tabular-nums; flex-shrink: 0; color: var(--ys-subtle); }
.academy-outline>a>strong { font-size: 16px; font-weight: 400; min-width: 0; overflow-wrap: anywhere; }
.academy-outline>a>small { margin-left: auto; font-size: 11px; white-space: nowrap; }
.academy-outline>a.is-current { background: var(--ys-selected); color: var(--ys-accent); }
.academy-outline>a.is-current>span { color: var(--ys-accent); }
.academy-outline .yl-muted { font-size: 14px; margin: 20px 0; }
.academy-collection-heading { font-family: var(--ys-display); font-size: 24px !important; margin-bottom: 20px !important; }
.yc-collection .yc-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 38px; }
.yc-collection .yc-course { display: grid; grid-template-columns: 44% minmax(0,1fr); gap: 20px; padding: 18px; background: var(--ys-surface); border: 1px solid var(--ys-edge-light); border-radius: var(--ys-card-radius); box-shadow: var(--ys-shadow-panel); overflow: visible; align-items: center; }
.yc-collection .yc-cover { aspect-ratio: 2; border-radius: 4px; }
.yc-collection .yc-kind { display: none; }
.yc-collection .yc-course-body { padding: 0; display: block; }
.yc-collection .yc-course h2 { font-family: var(--ys-display); font-size: 23px; font-weight: 600; }
.yc-collection .yc-course h2 a { color: var(--ys-text); }
.yc-collection .yc-summary { display: none; }
.yc-collection .yc-validity { margin: 7px 0; font-size: 12px; }
.yc-collection .yc-course-body>.yl-button { min-height: 34px; padding: 5px 12px; border: 1px solid var(--ys-line); background: var(--ys-surface) !important; color: var(--ys-accent) !important; font-size: 13px; box-shadow: var(--ys-shadow-control); }
.yc-collection .yc-progress { margin: 8px 0; }
.yc-collection .yc-progress span { font-size: 12px; }
.yc-collection .yc-progress progress { margin-top: 5px; height: 4px; }
.yc-progress progress { appearance: none; accent-color: var(--ys-accent); border: 0; background: var(--ys-line); }
.yc-progress progress::-webkit-progress-bar { background: var(--ys-line); }
.yc-progress progress::-webkit-progress-value { background: var(--ys-accent); }
.yc-progress progress::-moz-progress-bar { background: var(--ys-accent); }
.academy-gift-link { font-size: 13px; }
.academy-course-help { margin-top: 26px; color: var(--ys-subtle); font-size: 13px; }
.yc-detail-grid .yc-study { position: sticky; top: 24px; }

/* Store, assignments and account screens follow the same restrained hierarchy. */
.ys-storefront .sf-tools { background: transparent; border: 0; padding: 0; margin-bottom: 28px; }
.sf-tools .yl-section-head { margin-bottom: 18px; }
.sf-tools .yl-section-head h2 { font-weight: 400; font-size: 15px; color: var(--ys-muted); }
.sf-tools .sf-filters { margin: 0 0 18px; }
.sf-tools .sf-filters label { color: var(--ys-muted); font-size: 12px; }
.sf-tools .yl-tabs { margin-bottom: 0; }
.sf-products .sf-product { padding: 0; background: transparent; border: 0; border-radius: 0; margin: 0; }
.sf-cover { aspect-ratio: 1.9; border-radius: 5px; }
.sf-cover small { background: var(--ys-header); color: var(--ys-accent); padding: 4px 9px; }
.sf-products .sf-product-body { padding: 17px 0 22px; }
.sf-products .sf-product h2 { font-size: 19px; font-weight: 500; line-height: 1.6; }
.sf-products .sf-product h2 a { color: var(--ys-text); }
.sf-products .sf-summary { color: var(--ys-muted); font-size: 14px; }
.sf-products .sf-validity { font-size: 12px; color: var(--ys-subtle); padding-top: 8px; }
.sf-products .sf-product footer { margin-top: 14px; }
.sf-products .sf-product footer strong, .sf-price { color: var(--ys-accent); }
.sf-products .sf-product footer .yl-primary { background: transparent !important; border-color: var(--ys-line) !important; color: var(--ys-accent) !important; }
.sf-product-art { background: var(--ys-header); }
.sf-order-row { border-color: var(--ys-line); }
.yw-main>.yl-card:first-of-type { background: transparent; border: 0; padding: 0; box-shadow: none; }
.yw-main .yw-filters { align-items: flex-end; margin-bottom: 20px; }
.yw-main .yw-filters label { color: var(--ys-muted); font-size: 13px; }
.yw-main .yw-books { gap: 24px; }
.yw-main .yw-books>.yl-card { border-top: 2px solid var(--ys-accent); }
.yw-main .yw-stats { display: flex; gap: 0; overflow-x: auto; margin-bottom: 18px; border-bottom: 1px solid var(--ys-line); }
.yw-main .yw-stats>.yl-card { background: transparent; padding: 14px 20px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; flex: 1; min-width: 130px; margin: 0; box-shadow: none; }
.yw-main .yw-stats>.yl-card.is-active { border-color: var(--ys-accent); background: var(--ys-selected); }
.yw-main .yw-stats strong { font-size: 26px; }
.yw-main .yw-task h3 { font-size: 17px; }
.yw-main .yw-task small { font-size: 13px; }
.yl-empty { padding: 64px 24px !important; }
.yl-empty h2 { font-size: 23px; font-weight: 500; }
.yl-empty p { max-width: 530px; margin: 14px auto 24px; color: var(--ys-muted); font-size: 14px; }
.yl-empty .yl-button { margin: 4px 6px; }

/* Native login and phone login share photographic branding, with real native forms. */
body.ys-native-login { background: var(--ys-bg) !important; }
.ys-native-login .ys-login-header, .ys-phone-auth .pa-header { background: var(--ys-header); border-color: var(--ys-line); height: 78px; }
.ys-native-login .ys-login-header a, .ys-phone-auth .pa-header a { color: var(--ys-muted); }
.ys-native-login .ys-login-brand, .ys-phone-auth .pa-brand { color: var(--ys-text) !important; }
.ys-native-login #page-content { padding-top: 78px; }
.ys-native-login .ys-login-story { top: 78px; min-height: calc(100vh - 78px); background: var(--ys-header); padding: 0; align-items: stretch; }
.ys-login-story::before, .ys-login-story::after { display: none; }
.ys-native-login .ys-login-story-content { max-width: none; width: 100%; display: flex; flex-direction: column; padding: 52px; justify-content: flex-end; position: relative; }
.academy-login-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58%; opacity: .6; }
.ys-login-story-content>:not(.academy-login-photo) { position: relative; }
.ys-native-login .ys-login-kicker { color: var(--ys-accent); font-size: 13px; }
.ys-native-login .ys-login-story h2 { color: var(--ys-text); font-family: var(--ys-display); font-size: 42px; line-height: 1.5; letter-spacing: 2px; margin: 18px 0; }
.ys-native-login .ys-login-story p { color: var(--ys-text); font-size: 15px; margin-bottom: 0; max-width: 320px; }
.ys-native-login .ys-login-story-note { color: var(--ys-muted); font-size: 12px; margin-top: 36px; }
.ys-native-login .login-layout-right { min-height: calc(100vh - 78px); background: var(--ys-bg) !important; }
.ys-native-login .login-container { background: var(--ys-surface); border: 1px solid var(--ys-edge-light); border-radius: var(--ys-card-radius); padding: 32px; box-shadow: var(--ys-shadow-card); }
.ys-native-login .loginform>.h2 { font-family: var(--ys-display); font-size: 34px; color: var(--ys-text); }
.ys-native-login .loginform>p { color: var(--ys-muted) !important; font-size: 14px; }
.ys-native-login .loginform .form-label { color: var(--ys-muted); font-size: 14px; }
.ys-native-login .loginform .form-control { color: var(--ys-text); background: var(--ys-surface); border-color: var(--ys-line); height: 48px; }
.ys-native-login .loginform .form-control::placeholder { color: var(--ys-subtle); opacity: 1; }
.ys-native-login .loginform :is(.btn-link,.btn-secondary,.login-languagemenu) { color: var(--ys-muted) !important; }
.ys-native-login .loginform a { color: var(--ys-accent); }
.ys-native-login .loginform .btn-primary { background: var(--ys-accent); border-color: var(--ys-accent); color: var(--ys-on-accent); }
.ys-native-login .loginform .login-input-icon { color: var(--ys-subtle); }
.ys-native-login .loginform .login-divider { border-color: var(--ys-line); }
.ys-native-login .loginform .login-languagemenu { color: var(--ys-muted); }
.ys-phone-auth .pa-main { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,440px); align-items: center; gap: 90px; max-width: 1240px; padding: 70px 32px; min-height: calc(100vh - 160px); }
.academy-phone-story { position: relative; min-height: 510px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 6px; }
.academy-phone-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58%; opacity: .65; }
.academy-phone-story div { position: relative; padding: 34px; }
.academy-phone-story h2 { font-family: var(--ys-display); font-size: 36px; line-height: 1.5; color: var(--ys-text); }
.academy-phone-story p { color: var(--ys-accent); font-size: 13px; margin: 0 0 14px; }
.ys-phone-auth .pa-card { padding: 30px; background: var(--ys-surface); border: 1px solid var(--ys-edge-light); border-radius: var(--ys-card-radius); box-shadow: var(--ys-shadow-card); width: 100%; max-width: none; }
.ys-phone-auth .pa-card h1 { font-family: var(--ys-display); font-size: 32px; color: var(--ys-text); }
.ys-phone-auth .pa-card :is(label,.pa-intro,.pa-help) { color: var(--ys-muted); }
.ys-phone-auth .pa-card a { color: var(--ys-accent); }
.ys-phone-auth .pa-card button { min-height: 46px; border-color: var(--ys-line); border-radius: 6px; }
.ys-phone-auth .pa-footer { color: var(--ys-subtle); }

/* Original Moodle screens stay functional and receive the same surfaces and type. */
body.ys-commercial :is(#page,#page-wrapper,#region-main,#page-content,.main-inner,.secondary-navigation,.moremenu .nav-tabs,.activity-header) { background-color: var(--ys-bg) !important; color: var(--ys-text); }
body.ys-commercial :is(.navbar,.navbar.fixed-top,.drawer,.drawerheader,.drawercontent,#page-footer) { background-color: var(--ys-header) !important; color: var(--ys-text); border-color: var(--ys-line); }
body.ys-commercial .navbar :is(a,.nav-link,.navbar-brand,.usermenu,.icon) { color: var(--ys-muted); }
body.ys-commercial .navbar .nav-link.active { color: var(--ys-accent); }
body.ys-commercial :is(.nav-tabs,.nav-tabs .nav-link,.activity-item,.course-section,.activity,.list-group-item) { border-color: var(--ys-line); }
body.ys-commercial .nav-tabs .nav-link { color: var(--ys-muted); }
body.ys-commercial .nav-tabs .nav-link.active { background: var(--ys-selected); color: var(--ys-accent); }
body.ys-commercial :is(.courseindex-item,.courseindex-section-title) { color: var(--ys-text); }
body.ys-commercial :is(.courseindex-item.pageitem,.courseindex-item:hover,.courseindex-section-title:hover) { background: var(--ys-selected); }
body.ys-commercial :is(.activityname,.activity-header h2,.page-header-headings h1,.card-title,.sectionname) { color: var(--ys-text); }
body.ys-commercial :is(.page-header-headings h1,.sectionname) { font-family: var(--ys-display); }
body.ys-commercial :is(.que .formulation,.que .info,.path-mod-quiz .qnbutton,.submissionstatustable,.gradingtable) { background: var(--ys-surface); color: var(--ys-text); border-color: var(--ys-line); }
body.ys-commercial .que .outcome { background: var(--ys-warning-bg); color: var(--ys-warning); }
body.ys-commercial .que :is(.rightanswer,.specificfeedback,.generalfeedback) { color: var(--ys-warning); }
body.ys-commercial #quiz-timer { background: var(--ys-selected) !important; color: var(--ys-text) !important; border: 1px solid var(--ys-line); border-radius: 5px; padding: 8px 12px; }
body.ys-commercial #quiz-time-left { color: var(--ys-accent); font-variant-numeric: tabular-nums; }
body.ys-commercial .qnbutton { background: var(--ys-header) !important; color: var(--ys-text) !important; border-color: var(--ys-line) !important; }
body.ys-commercial .qnbutton :is(.thispageholder,.trafficlight) { border-color: var(--ys-accent); }
body.ys-commercial .qnbutton.correct { background: var(--ys-success-bg) !important; color: var(--ys-success) !important; }
body.ys-commercial .qnbutton.incorrect { background: var(--ys-danger-bg) !important; color: var(--ys-danger) !important; }
body.ys-commercial :is(.moodle-dialogue-wrap,.moodle-dialogue-hd,.moodle-dialogue-bd,.moodle-dialogue-ft,.yui3-panel-content) { background: var(--ys-surface) !important; color: var(--ys-text) !important; border-color: var(--ys-line) !important; }
body.ys-commercial .moodle-dialogue-wrap :is(h1,h2,h3,h4,h5,legend,label,p) { color: var(--ys-text); overflow-wrap: anywhere; }
body.ys-commercial .moodle-dialogue-wrap .mform { min-width: 0; max-width: 100%; }
body.ys-commercial .moodle-dialogue-base .moodle-dialogue-wrap { box-shadow: 0 20px 70px #0005; }
body.ys-commercial :is(.filemanager-container,.fp-content,.fp-repo-items,.filepicker-filelist,.filemanager,.fp-navbar,.fp-toolbar,.fp-repo-area) { background: var(--ys-header); color: var(--ys-text); border-color: var(--ys-line); }
body.ys-commercial :is(.filemanager .fp-filename-field,.filemanager .fp-filename,.fp-repo-name) { color: var(--ys-text); }
body.ys-commercial .tox-tinymce { border-color: var(--ys-line); }
body.ys-commercial .activity-description .generalbox { background: var(--ys-surface-alt) !important; color: var(--ys-text) !important; }
body.ys-commercial .activity-details { background: var(--ys-surface-alt) !important; color: var(--ys-text); border-color: var(--ys-line); }
body.ys-commercial :is(.btn-icon,.btn-light,.fheader) { background-color: var(--ys-surface) !important; color: var(--ys-muted) !important; border-color: var(--ys-line); }
body.ys-commercial .submissionstatustable td { color: var(--ys-text) !important; }
body.ys-commercial .activity-description .box { max-width: none; }
body.ys-commercial .tox :is(.tox-editor-header,.tox-menubar,.tox-toolbar,.tox-toolbar__primary,.tox-toolbar__overflow,.tox-toolbar-overlord,.tox-statusbar,.tox-edit-area,.tox-sidebar-wrap,.tox-dialog,.tox-dialog__header,.tox-dialog__body,.tox-dialog__footer,.tox-menu) { background: var(--ys-header) !important; color: var(--ys-text) !important; border-color: var(--ys-line) !important; }
body.ys-commercial .tox :is(.tox-mbtn,.tox-tbtn,.tox-statusbar a,.tox-statusbar__path-item,.tox-statusbar__wordcount,.tox-label,.tox-collection__item) { background: transparent; color: var(--ys-muted) !important; }
body.ys-commercial .tox :is(.tox-tbtn,.tox-mbtn) svg { fill: var(--ys-muted) !important; }
body.ys-commercial .tox :is(.tox-tbtn:hover,.tox-tbtn--enabled,.tox-mbtn:hover,.tox-collection__item--active) { background: var(--ys-selected) !important; color: var(--ys-accent) !important; }
body.ys-commercial .tox .tox-split-button:hover { box-shadow: 0 0 0 1px var(--ys-accent) inset; }
body.ys-commercial .tox .tox-editor-header { box-shadow: none !important; border-bottom: 1px solid var(--ys-line) !important; }
body.ys-commercial .tox :is(.tox-edit-area__iframe,.tox-promotion,.tox-promotion-link) { background-color: var(--ys-header) !important; color: var(--ys-muted); }
body.ys-commercial .tox .tox-tbtn svg [fill]:not([fill=none]) { fill: var(--ys-muted) !important; }
body.ys-commercial .tox .tox-statusbar__branding :is(svg,path) { fill: var(--ys-muted) !important; }
body.ys-commercial .collapsible-actions .btn { background: var(--ys-surface); color: var(--ys-accent); border-color: var(--ys-line); }

/* Operations pages share the palette, with denser readable data layouts. */
.ys-console { --blue: var(--ys-accent); --blue-light: var(--ys-selected); --text: var(--ys-text); --muted: var(--ys-muted); --line: var(--ys-line); }
.ys-console .ys-topbar { background: var(--ys-surface); border-color: var(--ys-line); box-shadow: var(--ys-shadow-header); }
.ys-console .ys-sidebar { background: var(--ys-header); border-color: var(--ys-line); box-shadow: inset -1px 0 0 var(--ys-edge-light), 4px 0 10px #32281e24; }
.ys-console .ys-logo { background: transparent; color: var(--ys-accent); border: 1px solid var(--ys-line); border-radius: 5px; }
.ys-console .ys-brand strong { font-family: var(--ys-display); font-size: 22px; }
.ys-console :is(.ys-panel,.ys-setting-card,.ys-metric,.ys-picker) { background: var(--ys-surface); border: 1px solid var(--ys-edge-light); box-shadow: var(--ys-shadow-panel); }
.ys-console :is(.ys-panel,.ys-setting-card) :is(.ys-panel,.ys-setting-card,.ys-metric) { box-shadow: none; border-color: var(--ys-line); }
.ys-console :is(.ys-breadcrumb,.ys-panel-head p,.ys-row-sub,.ys-metric span,.ys-metric small) { color: var(--ys-muted); font-size: 12px; }
.ys-console :is(.ys-main-heading h1,.ys-page-heading h1) { font-family: var(--ys-display); font-size: 29px; }
.ys-console .ys-page-head h1 { font-family: var(--ys-display); font-size: 29px; font-weight: 600; }
.ys-console .ys-page-head p { color: var(--ys-muted); font-size: 13px; }
.ys-console .ys-sidebar a { font-size: 13px; }
.ys-console .ys-panel-head h2 { font-size: 16px; }
.ys-console .ys-chart polyline { stroke: var(--ys-accent); }
.ys-console .ys-chart stop { stop-color: var(--ys-accent); }
.ys-console .ys-chart circle { fill: var(--ys-accent); stroke: var(--ys-header); }
.ys-console .ys-chart text { fill: var(--ys-muted); }
.ys-console .ys-chart-key i { background: var(--ys-accent); }
.ys-console :is(th,td) { border-color: var(--ys-line); font-size: 13px; }
.ys-console th { background: var(--ys-surface-alt); color: var(--ys-muted); }
.ys-console td { color: var(--ys-text); }
.ys-console .ys-btn-primary, .ys-console .ys-btn-primary:hover { color: var(--ys-on-accent) !important; }
.ys-console .ys-guide-art { display: none; }
.ys-console .ys-picker::backdrop { background: #0009; }
.ys-console .ys-scrim { background: #0009 !important; }
.ys-console .ys-entity-cover { background: var(--ys-selected); color: var(--ys-accent); border-color: var(--ys-line); }

@media(min-width:1101px) {
    .yl-header details { height: 46px; }
    .yl-header details[open] { overflow: visible; }
    .yl-header details[open]>a { left: 0; }
}
@media(max-width:1100px) {
    .ys-learning .yl-header { padding: 0 24px; gap: 20px; }
    .ys-learning .yl-header nav { gap: 20px; }
    .yl-header details { margin-left: auto; max-width: 130px; }
    .academy-feature { grid-template-columns: minmax(0,2fr) minmax(220px,1fr); gap: 24px; }
    .academy-feature-cover { aspect-ratio: 2.25; }
    .academy-feature-info { align-items: flex-start; }
    .academy-feature-info h2 { font-size: 24px; }
    .academy-feature-info>.yl-primary { min-width: 120px; padding: 12px 16px; }
    .yc-collection .yc-grid { gap: 24px; }
    .yc-collection .yc-course { gap: 15px; }
    .yc-collection .yc-course h2 { font-size: 18px; }
    .ys-phone-auth .pa-main { gap: 42px; }
}
@media(max-width:800px) {
    .ys-console .ys-page-head { flex-direction: column; align-items: stretch; gap: 16px; }
    .ys-console .ys-page-head>div { width: 100%; max-width: none; }
    .ys-learning .yl-header { position: relative; padding: 16px 20px 0; flex-wrap: wrap; gap: 10px; }
    .yl-header .yl-brand strong { font-size: 24px; }
    .ys-learning .yl-header nav { flex: 0 0 100%; width: 100%; gap: 24px; overflow: visible; justify-content: flex-start; flex-wrap: wrap; font-size: 14px; }
    .ys-learning .yl-header nav>a { min-height: 44px; }
    .yl-header details { position: absolute; top: 14px; right: 20px; margin: 0; max-width: 130px; }
    .yl-header details[open] { position: absolute; width: 180px; max-width: 180px; }
    .yl-header details summary { text-align: right; }
    .ys-learning .yl-main { padding: 28px 20px 48px; }
    .academy-feature { grid-template-columns: minmax(0,1fr); gap: 26px; }
    .academy-outline h2 { font-size: 21px; padding: 0 0 14px; }
    .academy-outline>a { min-height: 54px; }
    .yc-tools .yc-search { order: 1; width: 100%; }
    .yc-tools .yc-search input:not([type=hidden]) { width: auto; flex: 1; }
    .yc-tools .yl-tabs { order: 2; flex-basis: 100%; }
    .yc-collection .yc-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .ys-phone-auth .pa-main { display: block; max-width: 500px; padding: 42px 24px; min-height: calc(100vh - 160px); }
    .academy-phone-story { display: none; }
    .ys-native-login .login-layout-right { background: var(--ys-bg) !important; }
    .ys-native-login .login-container { background: var(--ys-surface); border: 1px solid var(--ys-edge-light); }
}
@media(max-width:480px) {
    body.ys-commercial .moodle-dialogue-base .moodle-dialogue { max-width: 100vw; }
    body.ys-commercial .moodle-dialogue-wrap { max-width: 100%; }
    body.ys-learning { font-size: 14px; }
    .ys-learning .yl-header { padding: 14px 18px 0; }
    .ys-learning .yl-header nav { column-gap: 20px; row-gap: 0; }
    .ys-learning .yl-header nav>a { font-size: 13px; min-height: 42px; }
    .yl-header details { top: 12px; right: 18px; width: auto; max-width: 110px; margin: 0; }
    .yl-header details summary { padding: 7px 0; font-size: 12px; max-width: 100%; }
    .yl-header details[open]>a { padding: 10px 16px; }
    .ys-learning .yl-main { padding: 26px 18px 40px; }
    .yl-main .yl-heading h1, .yc-collection .yl-heading h1 { font-size: 30px; }
    .ys-learning .ys-page-head h1, .ys-console .ys-page-head h1 { font-size: 28px; line-height: 1.4; }
    .yl-main .yl-heading { gap: 12px; }
    .yc-collection .yl-heading { flex-direction: row; align-items: center; }
    .yl-main .yl-card { padding: 20px; }
    .yc-collection .yc-tools, .ys-storefront .sf-tools, .yw-main>.yl-card:first-of-type { padding: 0; }
    .yl-main .yl-tabs { gap: 24px; }
    .yl-main .yl-tabs a { font-size: 13px; }
    .yc-tools .yc-search { flex-wrap: nowrap; }
    .yc-tools .yc-search input:not([type=hidden]) { min-width: 0; width: 100%; flex: 1 1 0; }
    .yc-tools .yc-search .yl-button { flex: 0 0 auto; padding-inline: 11px; }
    .academy-feature-cover { aspect-ratio: 1.85; }
    .academy-feature-info { flex-direction: column; gap: 16px; }
    .academy-feature-info>div { width: 100%; }
    .academy-feature-info h2 { font-size: 25px; }
    .academy-feature-info>.yl-primary { width: 100%; }
    .academy-progress progress { max-width: none; }
    .academy-outline>a { padding-inline: 8px; }
    .yc-collection .yc-course { grid-template-columns: 38% minmax(0,1fr); gap: 16px; padding: 16px; }
    .yc-collection .yc-cover { aspect-ratio: 1.25; }
    .yc-collection .yc-course h2 { font-size: 18px; }
    .yc-collection .yc-course-body>.yl-button { width: auto; }
    .ys-storefront .sf-products { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .sf-tools .sf-filters label:first-of-type { flex-basis: 100%; }
    .sf-tools .sf-filters label { width: auto; flex: 1; }
    .sf-tools .sf-filters>.yl-button { flex: 0 0 auto; }
    .sf-tools .sf-filters input { width: 100%; }
    .ys-native-login .ys-login-header { padding: 0 20px; }
    .ys-native-login .ys-login-brand strong, .ys-phone-auth .pa-brand strong { font-size: 23px; max-width: 65vw; }
    .ys-native-login .login-layout-right { padding: 34px 22px; }
    .ys-native-login .login-container { padding: 24px; }
    .ys-native-login .loginform>.h2 { font-size: 30px; }
    .ys-phone-auth .pa-header { padding: 0 20px; }
}
@media(prefers-reduced-motion:reduce) { body :is(.btn,.yl-button,.ys-btn) { transition: none; } }
@media print {
    :root { color-scheme: light; --ys-bg: #fff; --ys-header: #fff; --ys-surface: #fff; --ys-text: #17251e; --ys-muted: #43564b; --ys-line: #bcc7c0; --ys-accent: #284e3c; }
    .yl-header,.yl-footer,.ys-topbar,.ys-sidebar { display: none !important; }
    .ys-main-wrap { margin: 0; padding: 0; }
}

/* Approved tactile revision, 2026-11-14: top-left light, raised objects and structural rails. */
.academy-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.academy-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--ys-sidebar-width); padding: 34px 6px 34px 18px; background: var(--ys-header); border-right: 1px solid var(--ys-edge-light); box-shadow: inset -1px 0 0 #ffffffb3, inset 0 120px 100px -100px #fff8, 5px 0 12px #32281e30; z-index: 1035; overflow-y: auto; }
.academy-brand { display: flex; flex-direction: column; gap: 8px; color: var(--ys-text) !important; text-decoration: none !important; }
.academy-brand strong { display: block; font-family: var(--ys-display); font-size: 32px; line-height: 1.5; letter-spacing: 2px; font-weight: 700; overflow-wrap: anywhere; }
.academy-brand>span { font: 11px/1.7 var(--ys-font); letter-spacing: 6px; }
.academy-brand { padding-inline: 16px; }
.academy-nav { display: flex; flex-direction: column; gap: 14px; margin-top: 50px; }
.academy-nav>a { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 8px 14px; border: 1px solid transparent; border-left: 4px solid transparent; border-radius: 7px; color: var(--ys-text); font-size: 20px; white-space: nowrap; text-decoration: none !important; }
.academy-nav>a>span { padding: 4px 0; border: 0; }
.academy-nav>a>img { flex: 0 0 24px; opacity: .85; }
.academy-nav>a:hover { color: var(--ys-accent); background: #ffffff40; }
.academy-nav>a[aria-current=page] { color: var(--ys-accent); background: var(--ys-selected); border-color: var(--ys-edge-light); border-left-color: var(--ys-accent); box-shadow: var(--ys-shadow-card); font-weight: 600; }
.academy-nav>a[aria-current=page]>span { border: 0; }
.academy-nav>a[aria-current=page]>img { filter: invert(32%) sepia(30%) saturate(1346%) hue-rotate(329deg) brightness(93%); opacity: 1; }
.ys-learning #academy-utility { position: relative; height: 64px; min-height: 64px; margin: 0 0 0 var(--ys-sidebar-width); padding: 0 36px 0 52px; display: flex; flex-wrap: nowrap; gap: 24px; justify-content: space-between; background: var(--ys-surface); border-bottom: 1px solid var(--ys-edge-light); box-shadow: var(--ys-shadow-header); z-index: 1030; }
.academy-space { color: var(--ys-text); font-size: 19px; letter-spacing: .5px; }
#academy-utility>a.sf-login { color: var(--ys-text) !important; font-size: 18px; }
#academy-utility .academy-account { margin: 0; height: auto; max-width: 220px; position: relative; align-self: center; }
#academy-utility .academy-account summary { padding: 8px 0 8px 16px; max-width: 220px; color: var(--ys-text); cursor: pointer; }
#academy-utility .academy-account[open] { position: relative; overflow: visible; }
#academy-utility .academy-account[open]>a { display: block; position: relative; left: 0; min-width: 180px; background: var(--ys-surface); border-inline: 1px solid var(--ys-line); color: var(--ys-text); padding: 10px 16px; text-decoration: none; }
#academy-utility .academy-account[open]>a:first-of-type { border-top: 1px solid var(--ys-line); }
#academy-utility .academy-account[open]>a:last-child { border-bottom: 1px solid var(--ys-line); border-radius: 0 0 4px 4px; }
#academy-utility .academy-account[open]>a:hover { background: var(--ys-selected); color: var(--ys-accent); }
.ys-learning .yl-main { width: auto; max-width: none; margin-left: var(--ys-sidebar-width); margin-right: 0; padding: 28px 36px 52px 52px; }
.ys-learning .yl-footer { margin-left: var(--ys-sidebar-width); background: var(--ys-bg); }
.yl-main .yl-heading h1, .ys-learning .ys-page-head h1, .yc-collection .yl-heading h1 { font-family: var(--ys-display); font-size: 40px; font-weight: 700; line-height: 1.4; letter-spacing: 1px; }
.yl-main .yl-heading { margin-bottom: 24px; }
.yl-main .yl-card { border-radius: var(--ys-card-radius); }
.yl-main .yl-tabs { gap: 30px; }
.yl-main .yl-tabs a { font-size: 15px; }
.yl-main .yl-tabs a.is-active { color: var(--ys-accent); border-color: var(--ys-accent); font-weight: 600; }
.yl-main .yl-tabs a:hover { color: var(--ys-accent); text-decoration: none; }
.ys-learning .sf-catalog-heading { align-items: flex-start; min-height: 100px; margin-bottom: 18px; gap: 30px; }
.sf-catalog-heading h1 { font-size: 40px !important; }
.sf-catalog-intro { font-size: 18px; color: var(--ys-muted); margin: 2px 0 0; letter-spacing: .5px; }
.sf-catalog-search { flex: 0 1 440px; min-width: 240px; padding-top: 12px; }
.sf-search-field { display: flex; align-items: center; background: var(--ys-surface); border: 1px solid var(--ys-line); border-radius: 8px; height: 46px; overflow: hidden; box-shadow: inset 0 2px 3px #32281e1c, 0 2px 0 #b2a28d, 0 5px 7px #32281e26; }
.sf-search-field:focus-within { border-color: var(--ys-accent); outline: 2px solid #a1492f22; outline-offset: 2px; }
.sf-search-field button { background: transparent; border: 0; padding: 0; height: 44px; width: 46px; flex: 0 0 46px; display: grid; place-items: center; cursor: pointer; }
.sf-search-field img { opacity: .65; }
body.ys-commercial .sf-search-field input:not([type=hidden]) { min-width: 0; width: 100%; flex: 1; height: 44px; min-height: 44px; padding: 0 12px 0 0; font-size: 16px; background: transparent; border: 0; border-radius: 0; outline: 0 !important; box-shadow: none; }
.sf-search-options { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 12px; font-size: 14px; color: var(--ys-muted); }
.sf-price-filter { position: relative; }
.sf-price-filter summary { cursor: pointer; padding: 5px 12px; background: var(--ys-surface); border: 1px solid var(--ys-line); border-radius: var(--ys-radius); box-shadow: var(--ys-shadow-control); }
.sf-price-filter>div { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; min-width: 210px; padding: 18px; background: var(--ys-surface); border: 1px solid var(--ys-edge-light); border-radius: 8px; box-shadow: var(--ys-shadow-popover); }
.sf-price-filter label { display: flex; flex-direction: column; gap: 7px; }
.sf-price-filter select { margin-bottom: 12px; padding: 8px 10px; width: 100%; }
.sf-price-filter .yl-button { width: 100%; }
.ys-catalog .sf-tools { margin-bottom: 24px; box-shadow: none; }
.ys-catalog .sf-tools .yl-tabs { margin-bottom: 0; gap: 28px; }
.ys-catalog .sf-tools .yl-tabs a { font-size: 18px; padding: 10px 4px 16px; }
.ys-catalog .sf-tools .yl-tabs a span { font-size: 11px; color: var(--ys-subtle); margin-left: 5px; font-weight: 400; }
.ys-catalog .sf-products { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 34px 28px; }
.ys-catalog .sf-products .sf-product { padding: 0; margin: 0; background: var(--ys-surface); border: 2px solid var(--ys-edge-light); border-radius: var(--ys-card-radius); box-shadow: var(--ys-shadow-card); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s; }
.ys-catalog .sf-products .sf-product:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 4px 0 var(--ys-edge-dark), 0 7px 7px #32281e38, 6px 19px 28px #32281e45; }
.sf-products .sf-cover { aspect-ratio: 2.05; border-radius: 9px 9px 0 0; flex-shrink: 0; }
.sf-products .sf-cover img { transition: opacity .18s ease; }
.sf-products .sf-cover:hover img { opacity: .9; }
.sf-products .sf-product-body { padding: 6px 18px 14px; display: flex; flex-direction: column; flex: 1; }
.sf-products .sf-product h2 { font: 600 24px/1.5 var(--ys-font); margin: 0; }
.sf-products .sf-product h2 a { color: var(--ys-text); text-decoration: none; }
.sf-products .sf-product h2 a:hover { color: var(--ys-accent); }
.sf-products .sf-summary { font-size: 15px; line-height: 1.8; margin: 2px 0 0; -webkit-line-clamp: 1; }
.sf-products .sf-validity { font-size: 11px; padding-top: 0; margin: 4px 0 0; }
.sf-products .sf-product footer { padding-top: 6px; margin-top: auto; min-height: 50px; gap: 12px; }
.sf-products .sf-product footer strong { color: var(--ys-text); font-family: var(--ys-display); font-weight: 700; font-size: 29px; line-height: 1.4; }
.sf-products .sf-product footer .sf-course-link { border: 1px solid #a44726; padding: 4px 16px; background: var(--ys-accent); color: var(--ys-on-accent) !important; font-size: 17px; min-height: 36px; min-width: 120px; border-radius: 6px; box-shadow: inset 0 2px 0 #ffd5bfb3, inset 0 9px 7px -7px #ffc3a699, inset 0 -2px 0 #58220c66, 0 3px 0 #6b321c, 0 5px 7px #32281e38; }
.sf-products .sf-product footer .sf-course-link img { display: none; }
.sf-products .sf-product footer .sf-course-link:hover { background: var(--ys-accent-hover); color: var(--ys-on-accent) !important; }
.sf-products .sf-product footer .sf-course-link:active { transform: translateY(2px); box-shadow: inset 0 2px 3px #58220c66, 0 1px 0 #6b321c; }
.sf-price, .sf-order-amount strong { color: var(--ys-text); }
.academy-feature-info h2 { font: 600 28px/1.5 var(--ys-font); }
.academy-feature-info p { font-size: 15px; }
.academy-outline h2 { font-size: 23px; }
.academy-outline>a { min-height: 58px; }
.academy-collection-heading { font-family: var(--ys-font); font-weight: 500; }
.yc-collection .yc-course h2 { font: 500 21px/1.5 var(--ys-font); }
.ys-learning .yw-main .yw-books>.yl-card { border-top-width: 1px; }
.ys-learning .yw-main .yw-stats>.yl-card.is-active { background: var(--ys-selected); }
.ys-learning .yw-main .yw-stats strong { color: var(--ys-text); }
.ys-console .ys-sidebar { background: var(--ys-header); }
.ys-console :is(.ys-main-heading h1,.ys-page-heading h1,.ys-page-head h1) { font-family: var(--ys-font); font-size: 28px; font-weight: 600; }

/* Photo panels use an explicit inverse palette, separate from the light form surfaces. */
.ys-native-login .ys-login-header, .ys-phone-auth .pa-header { background: var(--ys-surface); border-bottom: 1px solid var(--ys-edge-light); box-shadow: var(--ys-shadow-header); }
.ys-native-login .ys-login-story { background: #282c26; }
.ys-native-login .academy-login-photo, .academy-phone-story img { opacity: .55; }
.ys-native-login .ys-login-story :is(h2,p,.ys-login-kicker,.ys-login-story-note), .academy-phone-story :is(h2,p) { color: #fffdf7; }
.ys-native-login .ys-login-story h2 { font-size: 42px; }
.ys-native-login .loginform>.h2 { color: var(--ys-text); font-family: var(--ys-display); font-size: 34px; }
.ys-native-login .login-layout-right { background: var(--ys-bg) !important; }
.ys-phone-auth .pa-main { max-width: 1160px; gap: 90px; }
.ys-phone-auth .academy-phone-story { background: #282c26; border: 1px solid var(--ys-edge-light); border-radius: var(--ys-card-radius); box-shadow: var(--ys-shadow-card); }
.ys-phone-auth .pa-card :is(.pa-eyebrow,.pa-help) { color: var(--ys-subtle); }
.ys-phone-auth .pa-card button, .ys-native-login .loginform .btn-primary { border-radius: 4px; }

@media(min-width:901px) {
    .ys-learning.ys-native-assignment #page, .ys-learning.ys-native-quiz #page, .ys-learning.ys-learner-content-reader #page { width: calc(100% - var(--ys-sidebar-width) - 88px); max-width: none; margin-left: calc(var(--ys-sidebar-width) + 52px); margin-right: 36px; padding-inline: 0; }
    .ys-learning.ys-learner-content-reader .yr-course-navigation, .ys-learning.ys-learner-content-reader .yr-reader-heading { max-width: none; margin-left: var(--ys-sidebar-width); margin-right: 0; padding-left: 52px; padding-right: 36px; }
    body.ys-learner-native-course { --yl-course-header-height: 64px; }
    .ys-learner-native-course #academy-utility { position: fixed; top: 0; left: var(--ys-sidebar-width); right: 0; margin: 0; }
    .ys-learner-native-course #page.drawers { margin-left: var(--ys-sidebar-width) !important; width: calc(100% - var(--ys-sidebar-width)); max-width: none; }
    .ys-learner-native-course #page.drawers.show-drawer-left { margin-left: calc(var(--ys-sidebar-width) + 285px) !important; width: calc(100% - var(--ys-sidebar-width) - 285px); }
    .ys-learner-native-course #page.drawers.show-drawer-right { width: calc(100% - var(--ys-sidebar-width) - 285px); }
    .ys-learner-native-course #page.drawers.show-drawer-left.show-drawer-right { width: calc(100% - var(--ys-sidebar-width) - 570px); }
    .ys-learner-native-course .drawer.drawer-left { left: var(--ys-sidebar-width); }
    .ys-learner-native-course #page .drawer-toggles .drawer-left-toggle { left: var(--ys-sidebar-width) !important; }
}
@media(max-width:1150px) and (min-width:901px) {
    :root { --ys-sidebar-width: 184px; }
    .academy-sidebar { padding-inline: 12px; }
    .academy-brand { padding-inline: 10px; }
    .academy-brand strong { font-size: 27px; }
    .academy-nav>a { gap: 10px; font-size: 16px; padding-inline: 9px; }
    .ys-learning .yl-main { padding-inline: 28px; }
    .ys-learning #academy-utility { margin-left: var(--ys-sidebar-width); margin-right: 0; padding-inline: 28px; }
    .ys-learning.ys-learner-native-course #academy-utility { margin-left: 0; }
    .ys-catalog .sf-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ys-catalog .sf-tools .yl-tabs { gap: 22px; }
    .sf-catalog-heading h1 { font-size: 38px !important; }
    .sf-catalog-search { flex-basis: 290px; }
    .sf-catalog-intro { font-size: 16px; }
}
@media(max-width:900px) {
    .academy-sidebar { position: relative; inset: auto; width: 100%; padding: 16px 24px 0; border-right: 0; border-bottom: 1px solid var(--ys-edge-light); box-shadow: var(--ys-shadow-header); overflow: visible; z-index: 50; }
    .academy-brand { gap: 0; max-width: calc(100% - 145px); min-height: 35px; padding: 0; }
    .academy-brand strong { font-size: 24px; line-height: 1.5; letter-spacing: 1px; }
    .academy-brand>span { display: none; }
    .academy-nav { flex-direction: row; gap: 12px; margin: 12px -4px 0; padding: 0 4px 9px; overflow-x: auto; scrollbar-width: none; }
    .academy-nav>a { gap: 7px; min-height: 43px; font-size: 14px; flex-shrink: 0; padding: 3px 10px; border-left-width: 1px; }
    .academy-nav>a[aria-current=page] { border-left-color: var(--ys-edge-light); border-bottom: 3px solid var(--ys-accent); box-shadow: var(--ys-shadow-control); }
    .academy-nav>a>img { width: 18px; height: 18px; flex-basis: 18px; }
    .academy-nav>a>span { padding: 5px 0; }
    .ys-learning #academy-utility { position: absolute; top: 12px; left: auto; right: 24px; margin: 0; padding: 0; border: 0; min-height: 40px; height: 40px; max-width: 135px; gap: 0; background: transparent; box-shadow: none; z-index: 60; }
    .academy-space { display: none; }
    #academy-utility>a.sf-login { font-size: 13px; }
    #academy-utility .academy-account { max-width: 135px; }
    #academy-utility .academy-account summary { padding: 8px 0; max-width: 135px; font-size: 13px; }
    #academy-utility .academy-account[open] { width: 180px; max-width: 180px; }
    #academy-utility .academy-account[open]>a { left: auto; right: 0; min-width: 180px; }
    .ys-learning .yl-main { margin: 0; width: 100%; padding: 28px 24px 44px; }
    .ys-learning .yl-footer { margin-left: 0; }
    .ys-catalog .sf-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ys-learning .sf-catalog-heading { min-height: 0; gap: 20px; }
    .sf-catalog-heading h1 { font-size: 36px !important; }
    .sf-catalog-intro { font-size: 15px; }
    .sf-catalog-search { padding-top: 10px; min-width: 220px; flex-basis: 300px; }
    .sf-products .sf-product h2 { font-size: 20px; }
    .sf-products .sf-summary { font-size: 14px; }
    .ys-phone-auth .pa-main { gap: 42px; }
    body.ys-learner-native-course { --yl-course-header-height: 118px; }
    .ys-learner-native-course .academy-sidebar { position: fixed; top: 0; left: 0; right: 0; }
    .ys-learning.ys-learner-native-course #academy-utility { position: fixed; }
}
@media(max-width:600px) {
    .academy-sidebar { padding: 14px 18px 0; }
    .academy-brand strong { font-size: 23px; }
    .academy-nav { gap: 7px; margin-top: 10px; }
    .academy-nav>a { font-size: 13px; min-height: 44px; gap: 0; padding-inline: 9px; }
    .academy-nav>a>img { display: none; }
    .ys-learning #academy-utility { right: 18px; top: 12px; }
    .ys-learning .yl-main { padding: 26px 18px 40px; }
    .yl-main .yl-heading h1, .ys-learning .ys-page-head h1, .yc-collection .yl-heading h1 { font-size: 30px; }
    .ys-learning .sf-catalog-heading { flex-direction: column; align-items: stretch; gap: 18px; margin-bottom: 16px; }
    .sf-catalog-heading h1 { font-size: 34px !important; }
    .sf-catalog-search { padding: 0; min-width: 0; width: 100%; flex: auto; }
    .sf-catalog-intro { font-size: 15px; margin-top: 5px; }
    .ys-catalog .sf-tools { margin-bottom: 24px; }
    .ys-catalog .sf-tools .yl-tabs { gap: 24px; }
    .ys-catalog .sf-tools .yl-tabs a { font-size: 14px; padding-bottom: 12px; }
    .ys-catalog .sf-products { grid-template-columns: minmax(0,1fr); gap: 30px; }
    .sf-products .sf-product-body { padding: 14px 17px 18px; }
    .sf-products .sf-product h2 { font-size: 22px; }
    .sf-products .sf-product footer strong { font-size: 26px; }
    .sf-products .sf-product footer .sf-course-link { font-size: 14px; }
    .academy-feature-info h2 { font-size: 25px; }
    .academy-feature-info>.yl-primary { width: 100%; }
    #academy-utility .academy-account[open] { position: relative; }
    body.ys-learner-native-course { --yl-course-header-height: 110px; }
    .ys-phone-auth .pa-main { padding: 40px 24px; }
}
body.ys-commercial .sf-search-field input#store-query { background: transparent; border: 0; font-size: 16px; font-family: var(--ys-font); }
@media(min-width:1350px) {
    .sf-catalog-search { position: relative; }
    .sf-search-options { position: absolute; top: 112px; right: 0; margin-top: 0; }
    .ys-catalog .sf-tools .yl-tabs { padding-right: 165px; }
    .sf-price-filter summary { padding: 5px 14px; font-size: 17px; }
    body.ys-commercial .sf-search-field input#store-query { font-size: 18px; }
}
@media print {
    .academy-sidebar, #academy-utility { display: none !important; }
    .ys-learning .yl-main, .ys-learning .yl-footer { margin-left: 0 !important; }
}

/* Anchor disclosure below the account button; opening it must not move or widen the header. */
#academy-utility .academy-account, #academy-utility .academy-account[open] { position: relative; height: 40px; width: auto; max-width: 220px; flex: 0 1 auto; overflow: visible; }
#academy-utility .academy-account summary { margin: 0; height: 40px; }
.academy-account-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 200px; max-width: calc(100vw - 36px); max-height: calc(100vh - 80px); overflow-y: auto; background: var(--ys-surface); border: 1px solid var(--ys-edge-light); border-radius: 8px; padding: 5px 0; box-shadow: var(--ys-shadow-popover); }
.academy-account-menu>a { display: block; min-height: 40px; padding: 9px 16px; font-size: 14px; color: var(--ys-text); text-decoration: none; }
.academy-account-menu>a:hover, .academy-account-menu>a:focus-visible { background: var(--ys-selected); color: var(--ys-accent); }
body.ys-commercial .mds-nav-pill__label { font-family: var(--ys-font); }
body.ys-commercial .mds-nav-pill { color: var(--ys-muted); background: transparent; }
body.ys-commercial .mds-nav-pill--selected { color: var(--ys-accent); background: var(--ys-selected); }
body.ys-commercial .mds-nav-pill__indicator { background-color: var(--ys-accent); }
body.ys-commercial .secondarynav-tabbar { background: transparent; }
/* Native learning content uses the same elevations without nesting raised list rows. */
body.ys-commercial :is(.activity-header,.course-section) { background: var(--ys-surface); border: 1px solid var(--ys-edge-light); border-radius: var(--ys-card-radius); box-shadow: var(--ys-shadow-panel); padding: 20px; margin-bottom: 24px; }
body.ys-commercial:is(.ys-native-assignment,.ys-native-quiz) .embedded-main { border-color: var(--ys-edge-light); box-shadow: var(--ys-shadow-panel); }
body.ys-commercial:is(.ys-native-assignment,.ys-native-quiz) .activity-header { background: transparent !important; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin-bottom: 20px; }
body.ys-commercial .course-section .activity-item { background: var(--ys-surface); box-shadow: none; }
body.ys-learner-native-course #page.drawers .main-inner { border: 0; background: transparent !important; }
body.ys-commercial :is(.que .formulation,.submissionstatustable) { border: 1px solid var(--ys-line); border-radius: 8px; }
body.ys-commercial :is(.drawer,.drawerheader,.drawercontent) { background-color: var(--ys-surface-alt) !important; }
body.ys-commercial .drawer { box-shadow: var(--ys-shadow-panel); }
body.ys-commercial :is(.modal-content,.dropdown-menu,.moodle-dialogue-wrap) { box-shadow: var(--ys-shadow-popover); }
body.ys-commercial .login-layout-right { box-shadow: inset 30px 0 70px -50px #32281e66, inset 0 100px 140px -100px #fff9; }
.yl-main .yl-card .yl-card { box-shadow: none; border-color: var(--ys-line); }
.ys-catalog .yl-pages { margin-top: 30px; border-top: 1px solid var(--ys-line); }
.ys-catalog .yl-pages .yl-button { background: var(--ys-surface); color: var(--ys-text) !important; box-shadow: var(--ys-shadow-control); }
@media(prefers-reduced-motion:reduce) {
    .ys-catalog .sf-products .sf-product, body :is(.btn,.yl-button,.ys-btn) { transition: none; }
    .ys-catalog .sf-products .sf-product:hover { transform: none; }
}
@media print {
    body.ys-commercial, body.ys-learning, body.ys-console, body.ys-phone-auth { background: #fff !important; box-shadow: none !important; }
    body :is(.yl-card,.sf-product,.academy-feature-main,.academy-outline,.yc-course,.ys-panel,.ys-setting-card,.ys-metric,.btn,.yl-button,.ys-btn,.login-container,.pa-card,.course-section,.activity-header) { box-shadow: none !important; transform: none !important; }
}
@media(min-width:901px) {
    .ys-learner-native-course:has(#page.show-drawer-left) .drawer.drawer-left { left: var(--ys-sidebar-width) !important; right: auto !important; }
    .ys-learner-native-course:has(#page.show-drawer-right) .drawer.drawer-right { right: 0 !important; left: auto !important; }
}
@media(max-width:900px) {
    #academy-utility .academy-account, #academy-utility .academy-account[open] { max-width: 135px; }
    #academy-utility .academy-account summary { max-width: 135px; }
    .ys-learner-native-course:has(#page.show-drawer-left) .drawer.drawer-left { left: 0 !important; right: auto !important; }
}
