:root.song-studio-compact {
  --six-ui-sidebar-background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%3E%3Cfilter%20id='g'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.8'%20numOctaves='4'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3C/filter%3E%3Crect%20width='160'%20height='160'%20filter='url(%23g)'%20opacity='0.10'/%3E%3C/svg%3E"), radial-gradient(26rem 24rem at 26% 112%, rgb(223 97 129 / .26), transparent 70%), linear-gradient(178deg, #262029 0%, #1b1622 46%, #121016 100%) #121016;
  --six-ui-sidebar-background-size: 160px 160px, auto, auto;
}
/* Existing compact Studio already shares the reference palette/geometry.
   This adapter aligns the remaining native Frappe components with the
   SixQuiz/Dashboard contract. Presentation only: no markup, handler or
   feature changes; full ERP, print/public pages and virtualized report rows
   stay native. Selectors were measured on the deployed v16 desk bundles. */
:root.song-studio-compact {
  --song-control-font: 14px;
  /* Reference tokens the Studio overlay does not define. */
  --six-ui-brand-tint: #fef7f9;
  --six-ui-segment: #f1ece4;
  --six-ui-segment-active: 0 0 0 1px rgb(64 44 28 / .06), 0 1px 2px rgb(64 44 28 / .10);
  --six-ui-switch-off: rgb(102 97 94 / .7);
  --six-ui-glass: rgb(255 255 255 / .62);
  --six-ui-glass-border: rgb(255 255 255 / .72);
  /* Frappe's own dropdown-item padding token (it is applied with !important). */
  --dropdown-padding: 10px 12px;
}
:root.song-studio-compact[data-theme="dark"] {
  --six-ui-brand-tint: #2e1d26;
  --six-ui-segment: #211c26;
  --six-ui-segment-active: 0 0 0 1px rgb(255 255 255 / .06), 0 1px 2px rgb(0 0 0 / .32);
  --six-ui-switch-off: rgb(201 191 202 / .45);
  --six-ui-glass: rgb(38 32 41 / .85);
  --six-ui-glass-border: rgb(255 255 255 / .10);
}
.song-studio-compact .body-sidebar {
  background: var(--six-ui-sidebar-background);
  background-size: var(--six-ui-sidebar-background-size);
}

/* Typography. Frappe's text mixins add .02em tracking to most component
   roots; the reference sets none. :root keeps this above Frappe's grid/widget
   rules; later eyebrow (.1em) and title (negative) tracking match or exceed it. */
:root.song-studio-compact :is(.btn, .frappe-control, .form-control, .like-disabled-input, .list-row, .list-row-head,
  .list-paging-area, .indicator-pill, .timeline-item, .layout-side-section, .grid-row, .grid-body, .grid-static-col,
  .grid-row .data-row, .grid-footer, .awesomplete, .dropdown-menu, .frappe-menu, .modal-content, .desk-alert,
  .widget-title, .section-head, .title-text-form, .help-box, .label-area, .form-sidebar li, .form-tabs .nav-item,
  .avatar-frame, .avatar-name-email, .keyboard-shortcut, .comment-title, .frappe-timestamp, .datepicker,
  .dt-cell__content, .notifications-list) { letter-spacing: 0; }
.song-studio-compact :is(.control-label, .song-filter-label) { font-size: 13px; }

/* Glass panel. Every action shares the 40px reference button height, so
   primary, view, filter and icon actions line up inside the 64px panel. */
.song-studio-compact .page-head .page-actions .btn:not(.btn-reset) {
  min-height: 40px; height: 40px; padding-block: 0; font-size: 14px; border-radius: 8px;
}
.song-studio-compact .page-head .page-actions .btn.icon-btn { width: 40px; min-width: 40px; padding-inline: 0; justify-content: center; }
/* Breadcrumb title: ancestors muted, the current page in the reference
   14px/600 panel title (forms rendered it 16px/500 in near-black). */
.song-studio-compact .page-head .navbar-breadcrumbs li:not(:last-child) a { color: var(--song-muted); font-weight: 500; }
.song-studio-compact .page-head .navbar-breadcrumbs li:last-child a { color: var(--song-text); font-weight: 600; }
.song-studio-compact .page-head .navbar-breadcrumbs .title-text-form { font-size: 14px; line-height: 20px; letter-spacing: -.016em; }
/* Workspace and script-report crumbs have no .title-text-form and fell back to
   native 16px/.02em; every page type now shares the 14px panel title. */
.song-studio-compact .page-head .navbar-breadcrumbs li a:not(:has(svg)) { font-size: 14px; line-height: 20px; letter-spacing: -.016em; }
/* An indicator with no label renders only its dot after the page title. */
.song-studio-compact .page-head .indicator-pill:empty { display: none; }
/* Search/notification rows: Frappe pads their icon/suffix wrappers (58/50px
   rows); match the 44px navigation rows and their 16px icon column. */
.song-studio-compact .body-sidebar .standard-items-sections .item-anchor :is(.sidebar-item-icon, .sidebar-item-suffix) { padding-block: 0; }
.song-studio-compact .body-sidebar .standard-items-sections .item-anchor .sidebar-item-icon { padding: 0; width: 16px; min-width: 16px; flex: 0 0 16px; }
.song-studio-compact .body-sidebar .keyboard-shortcut { font-size: 12px; color: var(--song-ink-muted); opacity: .8; }

/* Collapsed desktop sidebar (native, persisted per user): Studio's 16px
   sidebar padding left Frappe's 50px rail 18px wide, clipping icons and the
   logo. Use the reference 64px dark rail; labels stay native tooltips. */
@media (min-width: 768px) {
  .song-studio-compact .body-sidebar-container:not(.expanded) .body-sidebar { width: 64px; padding: 0 8px 12px; }
  .song-studio-compact .body-sidebar-container:not(.expanded) :is(.sidebar-header, .standard-items-sections, .body-sidebar-top, .body-sidebar-bottom, .standard-sidebar-item, .sidebar-items) { width: 100%; }
  .song-studio-compact .body-sidebar-container:not(.expanded) .body-sidebar .sidebar-header { justify-content: center; padding-inline: 0; }
  .song-studio-compact .body-sidebar-container:not(.expanded) .body-sidebar .sidebar-header::after { left: -8px; right: -8px; }
  .song-studio-compact .body-sidebar-container:not(.expanded) .body-sidebar .sidebar-header :is(.header-title, .header-subtitle, .drop-icon) { display: none; }
  .song-studio-compact .body-sidebar-container:not(.expanded) .body-sidebar .item-anchor { justify-content: center; gap: 0; padding-inline: 0; }
  .song-studio-compact .body-sidebar-container:not(.expanded) .body-sidebar .item-anchor :is(.sidebar-item-label, .sidebar-item-suffix, .sidebar-item-control) { display: none; }
  .song-studio-compact .body-sidebar-container:not(.expanded) .body-sidebar .sidebar-user-button { justify-content: center; padding: 8px 0; }
  :root.song-studio-compact body:has(.body-sidebar-container:not(.expanded))::before { left: 64px; }
}

/* Tables: reference header eyebrow and 13px muted cells; the record title
   keeps the 14px semibold item role. Row geometry stays Studio's. */
.song-studio-compact .list-row-head :is(.list-row-col, .level-item, .list-row-col > span):not(.list-count) {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--song-muted);
}
.song-studio-compact .list-row-head .list-count { font-size: 13px; text-transform: none; letter-spacing: 0; }
.song-studio-compact .list-row-container .list-row .list-row-col:not(.list-subject) { font-size: 13px; color: var(--song-muted); }
.song-studio-compact .list-row-container .list-row .list-row-col:not(.list-subject) a.filterable { color: inherit; }
.song-studio-compact .list-row-container .list-row .list-subject a { font-size: 14px; font-weight: 600; color: var(--song-text); }
.song-studio-compact .list-row-container .list-row-activity { font-size: 12px; color: var(--song-muted); }
:root.song-studio-compact :is(.grid-heading-row .static-area, .grid-heading-row .row-index) {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--song-muted);
}
/* Frappe bolds required child-table columns (.bold is !important); the
   header asterisk already marks them, so cells keep the regular table weight. */
.song-studio-compact .grid-body .grid-row .grid-static-col.bold { font-weight: 400 !important; }
/* Report/DataTable header only; its virtualized body rows stay untouched.
   Sentence case: JS-fixed column widths would truncate uppercase .1em labels. */
.song-studio-compact .datatable .dt-row-header .dt-cell--header .dt-cell__content {
  font-size: 12px; font-weight: 600; color: var(--song-muted);
}
/* Page-length buttons are a native radio-like group: reference segmented control. */
.song-studio-compact .list-paging-area .btn-group {
  gap: 2px; padding: 4px; border-radius: 8px; background: var(--six-ui-segment);
}
.song-studio-compact .list-paging-area .btn-group .btn-paging {
  min-height: 32px; height: 32px; padding: 0 12px; border: 0; border-radius: 6px;
  background: transparent; box-shadow: none; color: var(--song-muted); font-size: 13px; font-weight: 600; opacity: 1;
}
.song-studio-compact .list-paging-area .btn-group .btn-paging:hover:not(.btn-info) { background: transparent; color: var(--song-text); }
.song-studio-compact .list-paging-area .btn-group .btn-paging.btn-info {
  background: var(--song-surface); color: var(--song-text); box-shadow: var(--six-ui-segment-active);
}
.song-studio-compact .list-paging-area .btn-more { min-height: 40px; }

/* Comment box (Quill): the reference 40px field before it expands on focus. */
.song-studio-compact .comment-input-container .ql-editor { min-height: 40px; padding: 9px 12px; font-size: 14px; line-height: 20px; }

/* Phone list filters: Studio's 40px buttons no longer fit Frappe's 32px-era
   mobile row, which wrapped the filter group under its toggle. The ID filter
   takes the remaining width; the native toggle/filter/sort controls stay. */
.song-studio-compact .page-form.flex-column .filter-section { flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: center; }
.song-studio-compact .page-form.flex-column .filter-section .mobile-id-filter { flex: 1 1 88px; min-width: 0; }
.song-studio-compact .page-form.flex-column .mobile-id-filter .form-group { width: auto; margin: 0; padding: 0; }
.song-studio-compact .page-form.flex-column .filter-section :is(.filter-selector, .sort-selector) > .btn-group { margin: 0; }
.song-studio-compact .page-form.flex-column .filter-section .filter-selector { display: flex; flex: 0 0 auto; gap: 8px; }
.song-studio-compact .page-form.flex-column .filter-section .filter-toggle { width: 40px; height: 40px; padding: 0; }
.song-studio-compact .page-form.flex-column .filter-section .sort-selector { flex: 0 0 auto; }

/* Fields: reference focus (brand border + 3px brand/12 ring) and sunken
   read-only surfaces; validation colours keep priority. */
.song-studio-compact .frappe-control :is(input, select, textarea).form-control:focus:not(:disabled),
.song-studio-compact :is(.page-form, .modal-body, .filter-area) :is(input, select, textarea).form-control:focus:not(:disabled),
.song-studio-compact .table-multiselect.form-control:focus-within {
  border-color: var(--song-brand); box-shadow: var(--song-focus-ring);
}
.song-studio-compact .frappe-control.has-error:not([data-fieldtype="Check"]) :is(input, select, textarea).form-control:focus { border-color: var(--song-danger); }
.song-studio-compact .frappe-control .like-disabled-input,
.song-studio-compact .frappe-control :is(input, textarea, select).form-control:disabled,
.song-studio-compact .frappe-control :is(input, textarea).form-control[readonly] { background: var(--song-sunken); }
/* Section titles use the reference section role. A labelled column break is a
   group title of the same role (an uppercase eyebrow made one form mix two
   heading styles), and its sibling columns reserve the same 36px so the first
   fields of every column stay on one row. */
:root.song-studio-compact .form-section .section-head {
  font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: -.016em; color: var(--song-text);
}
.song-studio-compact .form-column .column-label {
  display: block; margin: 0 0 12px; font-size: 16px; line-height: 24px; font-weight: 600;
  letter-spacing: -.016em; text-transform: none; color: var(--song-text);
}
.song-studio-compact .form-section .section-body:has(> .form-column:not(.hide-control) > .column-label) > .form-column:not(:has(> .column-label))::before {
  content: ""; display: block; height: 36px;
}
@media (max-width: 575px) {
  /* Stacked .col-sm columns: the spacer would only add a gap above the first field. */
  .song-studio-compact .form-section .section-body:has(> .form-column:not(.hide-control) > .column-label) > .form-column:not(:has(> .column-label))::before { content: none; }
}
.song-studio-compact .form-tabs-list .form-tabs .nav-item .nav-link.active {
  color: var(--song-brand-deep); box-shadow: inset 0 -2px 0 var(--song-brand);
}
.song-studio-compact .switch-control .switch-visual { background: var(--six-ui-switch-off); }
.song-studio-compact .switch-control .input-area:has(input:checked) ~ .switch-visual { background: var(--song-brand); }
.song-studio-compact .switch-control .switch-thumb { box-shadow: 0 1px 2px rgb(0 0 0 / .25); }
.song-studio-compact .switch-control .label-area { font-size: 14px; font-weight: 500; color: var(--song-text); }

/* Menus (Bootstrap dropdowns, v16 frappe-menu): reference account menu —
   16px panel, 6px inset, 40px 14px semibold rows, brand-tint hover. */
.song-studio-compact :is(.dropdown-menu, .frappe-menu.context-menu) {
  padding: 6px; border: 1px solid var(--song-border); border-radius: 16px;
  background: var(--song-surface); color: var(--song-text);
  font-size: 14px; line-height: 20px; box-shadow: var(--song-modal-shadow);
}
.song-studio-compact :is(.dropdown-menu .dropdown-item, .frappe-menu .dropdown-menu-item > a) {
  min-height: 40px; border-radius: 8px; gap: 10px;
  color: var(--song-text); font-size: 14px; line-height: 20px; font-weight: 600;
  transition: background-color 150ms, color 150ms;
}
.song-studio-compact .dropdown-menu .dropdown-item :is(.menu-item-label, .item-label, a) { font-weight: 600; color: inherit; }
.song-studio-compact :is(.dropdown-menu .dropdown-item:is(:hover, :focus-visible, .active), .frappe-menu .dropdown-menu-item:hover > a, .frappe-menu .dropdown-menu-item > a:focus-visible) {
  background: var(--six-ui-brand-tint); color: var(--song-brand-deep);
}
.song-studio-compact .frappe-menu .dropdown-menu-item:hover:has(a) { background: transparent; }
.song-studio-compact :is(.dropdown-menu, .frappe-menu) .dropdown-divider { margin: 6px 4px; border-top-color: var(--song-border); }
.song-studio-compact :is(.dropdown-menu .dropdown-item, .frappe-menu .dropdown-menu-item > a) .icon { color: var(--song-muted); }
.song-studio-compact .dropdown-menu .menu-item-shortcut { font-weight: 500; }

/* Link suggestions: v16 renders div[role=option] rows (not li), so Studio's
   li rules never applied. Reference Select listbox rows. */
.song-studio-compact .awesomplete > ul {
  max-height: min(400px, 60vh); padding: 4px; border: 1px solid var(--song-border); border-radius: 12px;
  background: var(--song-surface); color: var(--song-text); box-shadow: var(--song-popover-shadow);
}
.song-studio-compact .awesomplete > ul > [role="option"] {
  display: flex; flex-direction: column; justify-content: center; min-height: 36px; margin: 0; padding: 8px 12px;
  border-radius: 8px; color: var(--song-text); font-size: 14px; line-height: 20px; cursor: pointer;
}
.song-studio-compact .awesomplete > ul > [role="option"] p { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.song-studio-compact .awesomplete > ul > [role="option"] strong { font-weight: 500; }
.song-studio-compact .awesomplete > ul > [role="option"] .small { font-size: 12px; line-height: 18px; color: var(--song-muted); }
.song-studio-compact .awesomplete > ul > [role="option"] .link-option { color: var(--song-muted); font-size: 13px; font-weight: 500; }
.song-studio-compact .awesomplete > ul > [role="option"]:hover { background: var(--song-subtle); }
.song-studio-compact .awesomplete > ul > [role="option"][aria-selected="true"] { background: var(--six-ui-brand-tint); color: var(--song-brand-deep); }
.song-studio-compact .awesomplete > ul > [role="option"][aria-selected="true"] :is(strong, .link-option) { color: var(--song-brand-deep); }

/* Search palette (Ctrl+K): the icon and borderless input share one row, so
   the row is the reference SearchField; the generic field border on the input
   alone left the icon outside the box. */
.song-studio-compact .navbar-modal-wrapper .awesomebar-input-row {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  border: 1px solid var(--song-border); border-radius: 8px; background: var(--song-surface); color: var(--song-muted);
  transition: border-color 150ms, box-shadow 150ms;
}
.song-studio-compact .navbar-modal-wrapper .awesomebar-input-row:focus-within { border-color: var(--song-brand); box-shadow: var(--song-focus-ring); }
.song-studio-compact #navbar-search.form-control,
.song-studio-compact #navbar-search.form-control:focus {
  flex: 1 1 auto; height: 38px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none;
}

/* Its keyboard hints ran past the panel edge on phones; let them wrap. */
.song-studio-compact .modal-content .help-navigation { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.song-studio-compact .modal-content .help-navigation .help-item-navigate { white-space: nowrap; }
/* Phone search trigger sits in the action row: same 40px secondary icon button. */
.song-studio-compact .page-head .navbar-modal-search-mobile {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--song-border); border-radius: 8px;
  background: var(--song-surface); color: var(--song-muted); box-shadow: 0 1px 2px rgb(0 0 0 / 4%); cursor: pointer;
}

/* Datepicker: white day numbers sit on the primary (#c44c68), not #df6181. */
.song-studio-compact .datepicker--cell.-selected-, .song-studio-compact .datepicker--cell.-selected-.-current- { background: #c44c68; color: #fff; }
.song-studio-compact .datepicker--cell.-selected-.-focus- { background: #a83a55; color: #fff; }
.song-studio-compact .datepicker--cell.-current-:not(.-selected-) { font-weight: 600; }

/* Dialogs: reference panel — no header rule, 24px inset, 20px/700 title
   (:root outranks Studio's 0-4-0 title rule), white footer with an inset rule. */
:root.song-studio-compact .modal .modal-header .modal-title { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.015em; }
.song-studio-compact .modal .modal-header { padding: 20px 20px 4px 24px; border-bottom: 0; align-items: flex-start; }
.song-studio-compact .modal .modal-header .modal-title { padding-top: 6px; }
.song-studio-compact .modal .modal-body { padding: 16px 24px 20px; }
.song-studio-compact .modal .modal-footer {
  margin: 0 24px; padding: 20px 0 24px; gap: 10px;
  background: transparent; border-top: 1px solid var(--song-border); border-radius: 0;
}
.song-studio-compact .modal .modal-footer > * { margin: 0; }
.song-studio-compact .modal-footer .btn { min-height: 40px; font-size: 14px; border-radius: 8px; }
.song-studio-compact .modal .msgprint { font-size: 14px; line-height: 24px; color: var(--song-text); }

/* Toasts: reference surface toast — white card, tone only on border/icon. */
.song-studio-compact #alert-container { right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.song-studio-compact .desk-alert {
  --toast-bg: var(--song-surface);
  width: 384px; max-width: calc(100vw - 32px); min-height: 0; margin: 0;
  border: 1px solid var(--song-border); border-radius: 8px; box-shadow: var(--song-popover-shadow);
}
.song-studio-compact .desk-alert.green { border-color: rgb(44 122 88 / .2); }
.song-studio-compact .desk-alert.red { border-color: rgb(176 67 63 / .2); }
.song-studio-compact .desk-alert:is(.yellow, .orange) { border-color: rgb(125 92 20 / .2); }
.song-studio-compact .desk-alert .alert-message-container { padding: 13px 40px 13px 14px; }
.song-studio-compact .desk-alert .alert-title-container { align-items: flex-start; }
.song-studio-compact .desk-alert .alert-title-container .icon { width: 16px; height: 16px; margin: 2px 12px 0 0; }
.song-studio-compact .desk-alert.green .alert-title-container .icon { fill: var(--song-success); }
.song-studio-compact .desk-alert.red .alert-title-container .icon { fill: var(--song-danger); }
.song-studio-compact .desk-alert:is(.yellow, .orange) .alert-title-container .icon { fill: var(--song-warning); }
.song-studio-compact .desk-alert.blue .alert-title-container .icon { fill: var(--song-brand); }
.song-studio-compact .desk-alert .alert-message { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--song-text); }
.song-studio-compact .desk-alert .alert-subtitle { padding-left: 28px; font-size: 13px; color: var(--song-muted); }
.song-studio-compact .desk-alert .close { top: 12px; right: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; }
.song-studio-compact .desk-alert .close:hover { background: var(--song-subtle); }

/* Notification drawer (v16 .notifications-list; Studio's rule targets the
   older .notification-list): surface panel and the brand active-tab marker. */
.song-studio-compact .notifications-list { background: var(--song-surface); border-right: 1px solid var(--song-border); box-shadow: var(--song-popover-shadow); }
.song-studio-compact .notifications-list .notifications-category.active {
  color: var(--song-brand-deep); border-bottom-color: var(--song-brand); box-shadow: inset 0 -1px 0 var(--song-brand);
}

/* Number cards: reference metric label/value roles. */
.song-studio-compact .widget.number-widget-box .widget-head .widget-title { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--song-text); }
.song-studio-compact .widget.number-widget-box .widget-body .widget-content .number { font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -.035em; color: var(--song-text); }

/* Launcher: the shared warm canvas and glass panel; each studio keeps its own
   accent/icon tile as its identity. */
:root.song-studio-compact.song-studio-launcher,
:root.song-studio-compact.song-studio-launcher[data-theme="dark"] {
  --launcher-canvas: var(--song-canvas); --launcher-surface: var(--song-surface);
  --launcher-text: var(--song-text); --launcher-muted: var(--song-muted); --launcher-border: var(--song-border);
}
:root.song-studio-compact.song-studio-launcher body::before {
  inset: 0;
  background-color: var(--song-canvas);
  background-image: var(--song-grain),
    radial-gradient(ellipse 43% 39% at 12% 16%, rgb(92 189 120 / 17%), rgb(92 189 120 / 3.2%) 66%, transparent 88%),
    radial-gradient(ellipse 49% 44% at 60% 32%, rgb(255 209 104 / 21%), rgb(255 209 104 / 4%) 66%, transparent 88%),
    radial-gradient(ellipse 45% 41% at 78% 82%, rgb(223 97 129 / 18%), rgb(223 97 129 / 3.4%) 66%, transparent 88%),
    linear-gradient(176deg, #fdfbf7 0%, #fbf8f2 46%, #f7f1e6 100%);
  background-size: 160px 160px, auto, auto, auto, auto;
}
:root.song-studio-compact.song-studio-launcher[data-theme="dark"] body::before {
  background-image: var(--song-grain-dark), radial-gradient(ellipse at 78% 82%, rgb(223 97 129 / 8%), transparent 70%);
  background-size: 160px 160px, auto;
}
.song-studio-compact.song-studio-launcher .desktop-navbar {
  border-color: var(--six-ui-glass-border); background: var(--six-ui-glass);
  box-shadow: var(--song-glass-shadow);
  backdrop-filter: blur(18px) saturate(1.08); -webkit-backdrop-filter: blur(18px) saturate(1.08);
}
.song-studio-compact.song-studio-launcher .studio-launcher-brand { font-size: 16px; font-weight: 600; letter-spacing: -.016em; }
.song-studio-compact.song-studio-launcher .desktop-avatar { min-height: 40px; border-color: var(--song-border); }
.song-studio-compact.song-studio-launcher .desktop-avatar:hover { background: var(--six-ui-brand-tint); }
.song-studio-compact.song-studio-launcher .desktop-avatar:focus-visible { outline-color: var(--song-brand); }
.song-studio-compact.song-studio-launcher .desktop-container > .icons-container > .icons > .desktop-icon {
  min-width: 0; border: 0; border-radius: 12px;
  box-shadow: var(--song-card-shadow);
  transition: box-shadow 200ms;
}
.song-studio-compact.song-studio-launcher .desktop-container > .icons-container > .icons > .desktop-icon:hover {
  transform: none; box-shadow: var(--song-card-hover-shadow);
}
.song-studio-compact.song-studio-launcher .studio-launcher-kind {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.song-studio-compact.song-studio-launcher .desktop-icon .icon-container { border-radius: 12px; }
.song-studio-compact.song-studio-launcher .desktop-icon .icon-title {
  font-size: 16px; line-height: 24px; letter-spacing: -.016em;
}
.song-studio-compact.song-studio-launcher .studio-launcher-card-description { line-height: 20px; }
.song-studio-compact.song-studio-launcher .studio-launcher-title {
  font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.03em;
}
@media (min-width: 640px) {
  .song-studio-compact.song-studio-launcher .studio-launcher-title { font-size: 36px; line-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .song-studio-compact.song-studio-launcher .desktop-container > .icons-container > .icons > .desktop-icon { transition: none; }
}

/* Small components. Primary uses brand-dark/deep for white text; Frappe's
   hardcoded black/blue badges, text-primary, selection and blue tokens follow
   the reference palette. Full ERP outside compact Studio stays native. */
:root.song-studio-compact {
  --focus-blue: 0 0 0 2px rgb(223 97 129 / .45);
  --focus-default: 0 0 0 2px rgb(223 97 129 / .45);
  --ink-blue-link: #a83a55;
  --bg-blue: #eceef8; --text-on-blue: #2c3b8b;
  --switch-bg: #94908e;
}
:root.song-studio-compact[data-theme="dark"] { --ink-blue-link: #f0a0b4; }
.song-studio-compact .btn-primary:not(.btn-danger) {
  background: #c44c68; border-color: #c44c68; color: #fff;
  box-shadow: 0 1px 2px rgb(150 40 65 / .30);
}
.song-studio-compact .btn-primary:not(.btn-danger):is(:hover, :active, .active):not(:disabled) {
  background: #a83a55; border-color: #a83a55; color: #fff;
}
.song-studio-compact input:is([type="checkbox"], [type="radio"]) { accent-color: var(--song-brand); }
.song-studio-compact ::selection { background: rgb(223 97 129 / .16); color: inherit; }
.song-studio-compact .text-primary { color: var(--song-brand-deep) !important; }
.song-studio-compact .badge { border-radius: 6px; font-weight: 600; }
.song-studio-compact :is(.badge-primary) { background: var(--song-brand-soft); color: var(--song-brand-deep); }
.song-studio-compact :is(.badge-secondary, .badge-light) { background: var(--song-sunken); color: var(--song-muted); }
.song-studio-compact .badge-info { background: var(--song-info-soft, #eceef8); color: var(--song-info, #2c3b8b); }

@media (max-width: 639px) {
  /* Editable values use 16px on phones like the reference apps (no iOS focus
     zoom); list/grid/label text keeps the compact control token. */
  :root.song-studio-compact :is(.frappe-control, .page-form, .modal-body, .filter-area) :is(input.form-control:not(:where([type="checkbox"], [type="radio"])), select.form-control, textarea.form-control) { font-size: 16px; }
  /* Reference phone gutters for dialogs and toasts. */
  .song-studio-compact .modal-dialog { margin: 12px; }
  .song-studio-compact .modal .modal-header { padding: 16px 12px 4px 20px; }
  .song-studio-compact .modal .modal-body { padding: 12px 20px 16px; }
  .song-studio-compact .modal .modal-footer { margin: 0 20px; padding: 16px 0 20px; }
  .song-studio-compact #alert-container { right: 16px; left: 16px; bottom: 16px; align-items: stretch; }
  .song-studio-compact .desk-alert { width: auto; max-width: none; }
}

/* Level-2/3 alignment (ERPNext RQ-072). Measured on the deployed v16 desk:
   page head 25px left vs 40px right, form sidebar 24px past the head's right
   edge, six left text edges inside one form, dialog fields 24px inside their
   title/footer, Select chevrons 9px high. One horizontal inset (24px, 16px on
   phones) now carries head, tabs, section titles, labels, filters, tables and
   dialogs; native column padding (15px) is kept and compensated, not removed. */
:root.song-studio-compact { --six-ui-inset: 24px; --six-ui-col-gutter: 15px; }
@media (max-width: 639px) { :root.song-studio-compact { --six-ui-inset: 16px; } }

/* Head: native `.col` padding (0 15px) on .page-actions was never reset. */
.song-studio-compact .page-head { padding-inline: calc(var(--six-ui-inset) - 1px); }
.song-studio-compact .page-head .page-actions { padding-inline: 0; }
/* Fixed 40px actions: a label such as "Lọc khác" must not break onto two lines. */
.song-studio-compact .page-head .page-actions .btn { white-space: nowrap; }
/* Empty native slots (form viewers, filter pills, mobile actions) still took a
   6px gap each, shifting wrapped action rows off the shared inset. Only empty
   divs: the text-only "Read Only Mode"/"Impersonating" pills are spans. */
.song-studio-compact .page-head .page-actions > div:not(:has(*)) { display: none; }
/* 768px and up: a two-track head. The actions keep their natural width and
   the title gives way first, down to 160px (1024px lists/calendars had lost it
   and pushed the primary action out of the panel); only then do the actions
   wrap inside their track, right-aligned beside the title. Phones keep their
   rules. */
@media (min-width: 768px) {
  .song-studio-compact .page-head { height: auto; }
  .song-studio-compact .page-head .page-head-content {
    display: grid; grid-template-columns: minmax(min(160px, 100%), 1fr) auto; align-items: start;
    row-gap: 8px; height: auto; padding-block: 11px;
  }
  .song-studio-compact .page-head .page-title { display: flex; align-items: center; min-width: 0; min-height: var(--song-control-height); }
  /* v16 wraps .page-actions in .standard-items-section, the grid item. */
  .song-studio-compact .page-head .page-head-content > .standard-items-section { justify-content: flex-end; }
  .song-studio-compact .page-head .page-actions { flex: 0 1 auto; flex-wrap: wrap; row-gap: 8px; justify-content: flex-end; max-width: 100%; }
  /* Native custom/standard groups are nowrap flex: six custom buttons ran 356px
     out of a 1024px panel and hid Save. They wrap inside their row too. */
  .song-studio-compact .page-head .page-actions > :is(.custom-actions, .standard-actions) { flex-wrap: wrap; row-gap: 8px; justify-content: flex-end; min-width: 0; max-width: 100%; }
}

/* Gutters have one owner, .layout-main, so the native form sidebar (a flex
   sibling of the padded card wrapper) ends on the head's right edge and starts
   level with the card. Below 992px the sidebar is off-canvas and untouched.
   Studio shell pages only: print preview, profile, tree and the search dialog
   keep their native sidebars. */
@media (min-width: 992px) {
  .song-studio-compact .layout-main:has(> .song-shell) { box-sizing: border-box; padding-inline: var(--song-page-gutter); gap: var(--song-page-gutter); }
  .song-studio-compact .layout-main-section-wrapper.song-shell { padding-inline: 0; }
  .song-studio-compact .layout-main:has(> .song-shell) > .layout-side-section { border-left: 0; padding-top: 5px; min-width: 0; }
}
/* Native puts the form sidebar off-canvas up to 992px inclusive. */
@media (min-width: 993px) {
  .song-studio-compact body[data-route^="Form"] .layout-main:has(> .song-shell) > .layout-side-section { width: var(--form-sidebar-width); flex: 0 0 var(--form-sidebar-width); }
}
@media (max-width: 991px) {
  /* The empty side column left a 1px border sliver beside phone cards. */
  .song-studio-compact .layout-main:has(> .song-shell) > .layout-side-section { border-left: 0; min-width: 0; }
}
/* Sticky tabs: native pins them 48px down, under a 64px head. A head that
   wraps to two rows (768-1100px) or the phone head hid the tab row; keep the
   same 16px tuck below whatever height the head measures. */
.song-studio-compact .form-tabs-list:is(.form-tabs-sticky-up, .form-tabs-sticky-down):not(.show-navbar) { top: calc(var(--page-head-height, 64px) - 16px); }

/* One left text edge inside cards: first tab text, section titles, labels. */
.song-studio-compact .layout-main-section .form-tabs-list { padding-inline: calc(var(--six-ui-inset) - 16px); }
.song-studio-compact .layout-main-section :is(.form-section, .form-dashboard-section) { padding-inline: calc(var(--six-ui-inset) - var(--six-ui-col-gutter)); }
.song-studio-compact .layout-main-section :is(.form-section, .form-dashboard-section) .section-head { padding-inline: var(--six-ui-col-gutter); }
.song-studio-compact .layout-main-section .grid-form-body .form-section { padding-inline: 0; }
/* Dialogs: the Studio 24px section padding stacked on the 24px modal body. */
.song-studio-compact .modal :is(.form-section, .form-dashboard-section) { padding-inline: 0; }
.song-studio-compact .modal :is(.form-section, .form-dashboard-section) .section-head { padding-inline: 0; }

/* Lists, report views, script reports and calendars share the same inset. */
.song-studio-compact .layout-main-section .page-form,
.song-studio-compact .layout-main-section .page-form:has(.song-report-filter) { padding-inline: var(--six-ui-inset); }
.song-studio-compact .layout-main-section .frappe-list { margin-inline: var(--six-ui-inset); }
.song-studio-compact .layout-main-section .report-wrapper { padding-inline: var(--six-ui-inset); }
.song-studio-compact .layout-main-section .report-footer { padding-inline: var(--six-ui-inset); }
.song-studio-compact .layout-main-section .report-footer > .col-md-12 { padding-inline: 0; }
/* The ID weight is needed: Studio's own `#fc-calendar-wrapper` padding rule. */
.song-studio-compact :is(.song-calendar-filters, #fc-calendar-wrapper) { padding: var(--six-ui-inset); }
/* Script-report filters: native `#page-query-report .page-form .form-group`
   (an ID rule) kept a 16px right pad and 10px margins inside Studio's slots. */
.song-studio-compact #page-query-report .page-form .song-report-filter { padding: 0; margin: 0; }

/* Select: native (0,4,0) `top: 3px` outranked Studio's centring (0,3,0).
   DataTable inline editors are short cells and keep the native offsets. */
.song-studio-compact .frappe-control[data-fieldtype="Select"]:not(.dt-cell__edit *) .control-input .placeholder,
.song-studio-compact .frappe-control[data-fieldtype="Select"].form-group:not(.dt-cell__edit *) .placeholder { top: 10px; }
.song-studio-compact .frappe-control[data-fieldtype="Select"]:not(.dt-cell__edit *) .control-input .select-icon,
.song-studio-compact .frappe-control[data-fieldtype="Select"].form-group:not(.dt-cell__edit *) .select-icon { top: 12px; }

/* List rows: the sticky activity cell kept a tinted native background, a
   130x39 patch on white rows; it now matches its row (and still covers
   horizontally scrolled columns). */
.song-studio-compact .list-row-container .list-row .level-right { background: var(--song-surface); }
.song-studio-compact .list-row-container:hover .list-row .level-right { background: var(--song-subtle); }
.song-studio-compact .list-row-container:focus .list-row .level-right { background: var(--highlight-color); }

/* Studio child-row editor: same two-column grid as Studio forms (it used one
   50% column inside a 1000px dialog). Long text, tables, HTML and headings span
   both. Native ERP row editors stay as they are, like the app's form grid. */
.song-studio-compact .song-domain-form .grid-form-body .form-section > .section-body > .form-column:only-child > form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px;
}
.song-studio-compact .song-domain-form .grid-form-body .form-section > .section-body > .form-column > form > .input-max-width { max-width: 100%; padding-right: 0; }
.song-studio-compact .song-domain-form .grid-form-body .form-section > .section-body > .form-column > form > :is([data-fieldtype="Table"], [data-fieldtype="Small Text"], [data-fieldtype="Text"], [data-fieldtype="Long Text"], [data-fieldtype="Text Editor"], [data-fieldtype="HTML"], [data-fieldtype="Heading"]) { grid-column: 1 / -1; }
@media (max-width: 639px) {
  .song-studio-compact .song-domain-form .grid-form-body .form-section > .section-body > .form-column:only-child > form { grid-template-columns: minmax(0, 1fr); }
}

/* DataTable sticky checkbox/row-number columns are 33px wide; the 12px cell
   padding left 9px, so report views showed "2…", "3…" instead of numbers. */
.song-studio-compact .datatable .dt-cell--sticky .dt-cell__content { padding-inline: 4px; }

/* Workspace shortcut cards (ERPNext RQ-20261103-STUDIO-SHORTCUT-CARDS). They were 92px rows with one
   area icon repeated on every card and the count in a 24px pill at the far
   end. Now: the shortcut's own icon on a 44px tile, the count as the card's
   figure, the title at the foot beside the arrow; one row on phones.
   Icons follow keywords of the shortcut label (aria-label, set by Frappe);
   home area cards keep the area icon drawn by Studio. The icon block below is
   generated by studio-card-icons.mjs. */
.song-studio-compact .shortcut-widget-box.song-shortcut-card {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto;
  grid-template-areas: "icon . count" ". . ." "title title arrow";
  gap: 16px 12px; min-height: 148px; padding: 20px 24px; align-content: stretch;
}
.song-studio-compact .shortcut-widget-box.song-shortcut-card .song-shortcut-icon {
  grid-area: icon; width: 44px; height: 44px; border-radius: 12px;
}
.song-studio-compact .shortcut-widget-box.song-shortcut-card .song-shortcut-icon svg { width: 22px; height: 22px; }
.song-studio-compact .shortcut-widget-box.song-shortcut-card:not(.song-area-card) .song-shortcut-icon svg { display: none; }
.song-studio-compact .shortcut-widget-box.song-shortcut-card:not(.song-area-card) .song-shortcut-icon::before {
  content: ""; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: var(--six-card-icon) center / contain no-repeat; mask: var(--six-card-icon) center / contain no-repeat;
}
.song-studio-compact .shortcut-widget-box.song-shortcut-card :is(.widget-head, .song-shortcut-footer) { display: contents; }
.song-studio-compact .shortcut-widget-box.song-shortcut-card :is(.widget-body, .widget-footer, .song-shortcut-footer > span:not(.song-arrow)) { display: none; }
.song-studio-compact .shortcut-widget-box.song-shortcut-card .widget-head .widget-label { grid-area: title; align-self: end; min-width: 0; }
.song-studio-compact .widget.shortcut-widget-box.song-shortcut-card .widget-head .widget-title {
  font-size: 17px; line-height: 24px; letter-spacing: -.01em;
}
/* Frappe wraps the label in span.ellipsis; long labels wrap onto two lines. */
.song-studio-compact .shortcut-widget-box.song-shortcut-card .widget-title > .ellipsis { white-space: normal; overflow: visible; }
/* Native focus underlines the whole card, count included; keep it on the title. */
.song-studio-compact .shortcut-widget-box.song-shortcut-card:focus-visible { text-decoration: none; }
.song-studio-compact .shortcut-widget-box.song-shortcut-card:focus-visible .widget-title > .ellipsis { text-decoration: underline; }
.song-studio-compact .shortcut-widget-box.song-shortcut-card .widget-head .widget-control { grid-area: count; align-self: start; margin: 0; }
.song-studio-compact .shortcut-widget-box.song-shortcut-card .widget-control .indicator-pill {
  min-height: 0; padding: 0; background: none; color: var(--song-text);
  font-size: 30px; line-height: 44px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.song-studio-compact .shortcut-widget-box.song-shortcut-card .song-arrow {
  grid-area: arrow; align-self: end; display: grid; place-items: center; width: 24px; height: 24px; color: var(--song-muted);
  transition: transform .2s var(--song-ease), color .2s var(--song-ease);
}
.song-studio-compact .shortcut-widget-box.song-shortcut-card .song-arrow svg { width: 18px; height: 18px; color: inherit; }
.song-studio-compact .shortcut-widget-box.song-shortcut-card:is(:hover, :focus-visible) .song-arrow { color: var(--song-brand-deep); transform: translateX(3px); }
@media (max-width: 767px) {
  .song-studio-compact .shortcut-widget-box.song-shortcut-card {
    grid-template-columns: 44px minmax(0, 1fr) auto auto; grid-template-rows: auto;
    grid-template-areas: "icon title count arrow"; align-items: center; min-height: 0; padding: 16px;
  }
  .song-studio-compact .shortcut-widget-box.song-shortcut-card :is(.widget-head .widget-label, .widget-head .widget-control, .song-arrow) { align-self: center; }
  .song-studio-compact .shortcut-widget-box.song-shortcut-card .widget-control .indicator-pill { font-size: 20px; line-height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .song-studio-compact .shortcut-widget-box.song-shortcut-card .song-arrow { transition: none; }
}
.song-studio-compact .song-shortcut-card:not(.song-area-card) {
  --six-icon-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
  --six-icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18M8 15h2m4 0h2m-8 3h2'/%3E%3C/svg%3E");
  --six-icon-camera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='14' rx='2'/%3E%3Cpath d='m8 6 1-3h6l1 3'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
  --six-icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  --six-icon-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2m20 0v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3C/svg%3E");
  --six-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='m16 11 2 2 4-4'/%3E%3C/svg%3E");
  --six-icon-teacher: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5 10-5Z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5M22 10v6'/%3E%3C/svg%3E");
  --six-icon-crew: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Ccircle cx='8' cy='11' r='2'/%3E%3Cpath d='M5 16a3 3 0 0 1 6 0M14 10h5m-5 4h3'/%3E%3C/svg%3E");
  --six-icon-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E");
  --six-icon-palette: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 0 0 0 20 2 2 0 0 0 2-2v-.5a2 2 0 0 1 2-2h1.5A4.5 4.5 0 0 0 22 13 10 10 0 0 0 12 2Z'/%3E%3Ccircle cx='13.5' cy='6.5' r='1'/%3E%3Ccircle cx='17.5' cy='10.5' r='1'/%3E%3Ccircle cx='8.5' cy='7.5' r='1'/%3E%3Ccircle cx='6.5' cy='12.5' r='1'/%3E%3C/svg%3E");
  --six-icon-package: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5M12 22V12M7.5 4.27l9 5.15'/%3E%3C/svg%3E");
  --six-icon-list: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2m4 7h4m-4 5h4m-8-5h.01M8 16h.01'/%3E%3C/svg%3E");
  --six-icon-enrol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M19 8v6m3-3h-6'/%3E%3C/svg%3E");
  --six-icon-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v5h5M16 13H8m8 4H8m2-8H8'/%3E%3C/svg%3E");
  --six-icon-contract: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v5h5M8 17c1.5-2 2.5-2 3 0s1.5 2 3 0 2-1 2-1M8 12h4'/%3E%3C/svg%3E");
  --six-icon-note: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z'/%3E%3Cpath d='M15 3v4a2 2 0 0 0 2 2h4M7 13h6m-6 4h4'/%3E%3C/svg%3E");
  --six-icon-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10 15V9m4 6V9'/%3E%3C/svg%3E");
  --six-icon-makeup: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E");
  --six-icon-swap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3 4 7l4 4M4 7h16m-4 14 4-4-4-4m4 4H4'/%3E%3C/svg%3E");
  --six-icon-shirt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23Z'/%3E%3C/svg%3E");
  --six-icon-warehouse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z'/%3E%3Cpath d='M6 22V12h12v10M6 16h12'/%3E%3C/svg%3E");
  --six-icon-receipt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E");
  --six-icon-wallet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4'/%3E%3C/svg%3E");
  --six-icon-cash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E");
  --six-icon-coins: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M18.09 10.37A6 6 0 1 1 10.34 18M7 6h1v4m8.71 3.88.7.71-2.82 2.82'/%3E%3C/svg%3E");
  --six-icon-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.6 2.6A2 2 0 0 0 11.2 2H4a2 2 0 0 0-2 2v7.2a2 2 0 0 0 .6 1.4l8.7 8.7a2.4 2.4 0 0 0 3.4 0l6.6-6.6a2.4 2.4 0 0 0 0-3.4Z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E");
  --six-icon-ticket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z'/%3E%3Cpath d='M13 5v2m0 4v2m0 4v2'/%3E%3C/svg%3E");
  --six-icon-group: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='3'/%3E%3Ccircle cx='5' cy='9' r='2'/%3E%3Ccircle cx='19' cy='9' r='2'/%3E%3Cpath d='M7 20v-1a5 5 0 0 1 10 0v1M2 20v-1a3 3 0 0 1 3-3m17 4v-1a3 3 0 0 0-3-3'/%3E%3C/svg%3E");
  --six-icon-trend: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m7 14 4-4 3 3 6-6M15 7h5v5'/%3E%3C/svg%3E");
  --six-icon-audit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
  --six-icon-due: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2 2M5 3 2 6m20 0-3-3'/%3E%3C/svg%3E");
  --six-icon-rules: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21v-7m0-4V3m8 18v-9m0-4V3m8 18v-5m0-4V3M2 14h4m4-6h4m4 8h4'/%3E%3C/svg%3E");
  --six-icon-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --six-icon-building: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M9 22v-4h6v4M8 6h.01M12 6h.01M16 6h.01M8 10h.01M12 10h.01M16 10h.01M8 14h.01M12 14h.01M16 14h.01'/%3E%3C/svg%3E");
  --six-icon-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  --six-icon-ledger: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20'/%3E%3Cpath d='M9 7h7m-7 4h5'/%3E%3C/svg%3E");
  --six-icon-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
  --six-card-icon: var(--six-icon-grid);
}
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Lịch"]) { --six-card-icon: var(--six-icon-calendar); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Ca chụp"], [aria-label*="quay"]) { --six-card-icon: var(--six-icon-camera); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Ca học"], [aria-label*="Giờ dạy"], [aria-label*="Các buổi"]) { --six-card-icon: var(--six-icon-clock); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Khách hàng"], [aria-label*="Học viên"], [aria-label*="nhóm"]) { --six-card-icon: var(--six-icon-users); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Điểm danh"]) { --six-card-icon: var(--six-icon-check); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Giảng viên"]) { --six-card-icon: var(--six-icon-teacher); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Ekip"], [aria-label*="Nhân sự"], [aria-label*="nhân sự"]) { --six-card-icon: var(--six-icon-crew); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Concept"]) { --six-card-icon: var(--six-icon-image); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Phong cách"]) { --six-card-icon: var(--six-icon-palette); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Gói"]) { --six-card-icon: var(--six-icon-package); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Danh sách"], [aria-label*="Việc"], [aria-label*="Sổ"], [aria-label*="kiểm kê"]) { --six-card-icon: var(--six-icon-list); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Đăng ký"]) { --six-card-icon: var(--six-icon-enrol); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Tài liệu"]) { --six-card-icon: var(--six-icon-doc); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Hợp đồng"]) { --six-card-icon: var(--six-icon-contract); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Ghi chú"]) { --six-card-icon: var(--six-icon-note); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Bảo lưu"]) { --six-card-icon: var(--six-icon-pause); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Học bù"]) { --six-card-icon: var(--six-icon-makeup); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Mượn"], [aria-label*="mượn"]) { --six-card-icon: var(--six-icon-swap); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="phục"], [aria-label*="Đạo cụ"]) { --six-card-icon: var(--six-icon-shirt); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Kho"]) { --six-card-icon: var(--six-icon-warehouse); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="hóa đơn"], [aria-label*="Hóa đơn"], [aria-label*="Học phí"]) { --six-card-icon: var(--six-icon-receipt); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Chi phí"]) { --six-card-icon: var(--six-icon-wallet); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="tiền"], [aria-label*="Thanh toán"], [aria-label*="thu / chi"]) { --six-card-icon: var(--six-icon-cash); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="lương"], [aria-label*="Lương"], [aria-label*="thù lao"], [aria-label*="Thù lao"], [aria-label*="Hoa hồng"]) { --six-card-icon: var(--six-icon-coins); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="giá"], [aria-label*="Khuyến mãi"], [aria-label*="khuyến mãi"]) { --six-card-icon: var(--six-icon-tag); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Mã "]) { --six-card-icon: var(--six-icon-ticket); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="nhóm"]) { --six-card-icon: var(--six-icon-group); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Lợi nhuận"], [aria-label*="Hiệu quả"]) { --six-card-icon: var(--six-icon-trend); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Đối soát"]) { --six-card-icon: var(--six-icon-audit); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="hết hạn"], [aria-label*="quá hạn"], [aria-label*="chưa trả"]) { --six-card-icon: var(--six-icon-due); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Quy tắc"]) { --six-card-icon: var(--six-icon-rules); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Thiết lập"], [aria-label*="Cấu hình"]) { --six-card-icon: var(--six-icon-settings); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Công ty"]) { --six-card-icon: var(--six-icon-building); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="phân quyền"]) { --six-card-icon: var(--six-icon-shield); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="kế toán"]) { --six-card-icon: var(--six-icon-ledger); }
.song-studio-compact .song-shortcut-card:not(.song-area-card):is([aria-label*="Mở "]) { --six-card-icon: var(--six-icon-external); }

/* Record pages, second pass (RQ-20261103-CONCEPT-FORM-LAYOUT), measured on the
   Photo Concept form with long hashed file names and wrapped actions. */
/* Head: the title track keeps its natural width (it was cut to 160px,
   "Concep… / Trắn…") and the action track takes the rest. Actions wrap
   bottom-up, so prev/next/menu/Save stay beside the title and the custom
   buttons form the second row. */
@media (min-width: 768px) {
  .song-studio-compact .page-head .page-head-content { grid-template-columns: minmax(min(160px, 100%), max-content) minmax(min-content, 1fr); }
  .song-studio-compact .page-head .page-actions { flex-wrap: wrap-reverse; }
}
/* Image preview: native draws it at the full column width (a 370x700 sheet
   under "Gói áp dụng"). A bounded, framed preview under its own attach field. */
.song-studio-compact .song-record-page[data-song-record="Form:Photo Concept"] form > .frappe-control[data-fieldname="image_preview"] { grid-column: 2; }
.song-studio-compact .song-shell .frappe-control[data-fieldtype="Image"] img {
  display: block; width: auto; max-width: 100%; max-height: 280px; object-fit: contain;
  border: 1px solid var(--song-border); border-radius: var(--song-control-radius); background: var(--song-subtle);
}
@media (max-width: 767px) {
  .song-studio-compact .song-record-page[data-song-record="Form:Photo Concept"] form > .frappe-control[data-fieldname="image_preview"] { grid-column: auto; }
}
/* Attached file: the same 40px field box as the inputs beside it. Long names
   keep their distinguishing end ("…001-3ef034fcb57f47d6.png"); the LRM keeps
   the leading "/" in place under the right-to-left overflow. */
.song-studio-compact .song-shell .frappe-control:is([data-fieldtype="Attach"], [data-fieldtype="Attach Image"]) .attached-file {
  gap: 8px; min-height: var(--song-control-height); padding: 0 4px 0 12px;
  border: 1px solid var(--song-border); border-radius: var(--song-control-radius); background: var(--song-surface);
}
.song-studio-compact .song-shell .attached-file > .ellipsis { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.song-studio-compact .song-shell .attached-file > .ellipsis > svg { flex: none; color: var(--song-muted); }
.song-studio-compact .song-shell .attached-file-link {
  display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  direction: rtl; text-align: left; color: var(--song-text); font-size: var(--song-control-font);
}
.song-studio-compact .song-shell .attached-file-link::before,
.song-studio-compact .layout-side-section .attachment-file-label > span::before { content: "\200E"; }
.song-studio-compact .song-shell .attached-file [data-action="clear_attachment"] {
  display: inline-flex; align-items: center; height: 32px; min-height: 32px; padding: 0 10px;
  border: 0; border-radius: 6px; background: transparent; box-shadow: none; color: var(--song-muted); font-size: 13px; font-weight: 600;
}
.song-studio-compact .song-shell .attached-file [data-action="clear_attachment"]:hover { background: var(--song-subtle); color: var(--song-danger); }
/* Sidebar attachments: three "concept-c5e0c60b4e-0…" rows were identical. */
.song-studio-compact .layout-side-section .attachment-file-label { direction: rtl; text-align: left; }
/* Sidebar: edit, print and like were two framed buttons and a bare heart. */
.song-studio-compact .layout-side-section .form-stats-likes { align-items: center !important; gap: 4px; } /* native .align-items-baseline is !important */
.song-studio-compact .layout-side-section .form-stats-likes :is(.form-title-edit, .form-print) .btn,
.song-studio-compact .layout-side-section .form-stats-likes .liked-by {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; min-width: 32px; height: 32px; min-height: 32px;
  border: 0; border-radius: 8px; box-shadow: none; color: var(--song-muted); cursor: pointer;
}
.song-studio-compact .layout-side-section .form-stats-likes :is(.form-title-edit, .form-print) .btn:hover,
.song-studio-compact .layout-side-section .form-stats-likes .liked-by:hover { background: var(--song-subtle) !important; color: var(--song-text); }
/* Concept cover: the record is a photograph, so the sidebar shows it at the
   sidebar width instead of a 62px stamp. */
.song-studio-compact .layout-main:has(> [data-song-record="Form:Photo Concept"]) > .layout-side-section .sidebar-image-section { flex-direction: column; align-items: stretch; gap: 8px; }
.song-studio-compact .layout-main:has(> [data-song-record="Form:Photo Concept"]) > .layout-side-section .sidebar-image-wrapper { width: 100%; height: auto; }
.song-studio-compact .layout-main:has(> [data-song-record="Form:Photo Concept"]) > .layout-side-section .sidebar-image {
  display: block; width: 100%; height: auto; max-width: none; max-height: none; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--song-border); border-radius: var(--song-control-radius);
}
.song-studio-compact .layout-main:has(> [data-song-record="Form:Photo Concept"]) > .layout-side-section .form-stats-likes { justify-content: flex-end; }
/* Comments and activity share the card text edge (24px inside the card, the
   footer had 15px). The activity heading lost its tinted strip, and each dot
   sits on its entry's first line (native centres it on the whole entry). */
.song-studio-compact .song-shell .form-footer { padding-inline: calc(var(--six-ui-inset) + 1px); }
.song-studio-compact .new-timeline :is(.timeline-item.activity-title, .timeline-items.timeline-actions) { background: transparent; }
.song-studio-compact .new-timeline .timeline-item[data-timestamp] > .timeline-dot { top: 9px; }
.song-studio-compact .new-timeline .timeline-item[data-timestamp] > .timeline-badge { top: 2px; } /* 30px badge, same 17px first-line centre */
.song-studio-compact .new-timeline .timeline-item[data-timestamp] > .timeline-dot::before { background: var(--song-muted); }
/* 993-1199px: the form sidebar leaves the card ~315px, too narrow for the
   Studio two-column grid ("Beauty & Fa", "…6.png"); fields stack until 1200px. */
@media (min-width: 993px) and (max-width: 1199px) {
  .song-studio-compact body[data-route^="Form"] .song-domain-form .form-layout .form-section > .section-body > .form-column:only-child > form:not(.grid-row-open form) { grid-template-columns: minmax(0, 1fr); }
  .song-studio-compact .song-record-page[data-song-record="Form:Photo Concept"] form > .frappe-control[data-fieldname="image_preview"] { grid-column: auto; }
}

/* Exact SixQuiz login-left palette. Login selectors only. */
@media (min-width: 1024px) {
  body:has(:is(#auth-page, #login-email, .mantine-Card-root form #username, .card-body form #email, [data-slot="card"] form input[autocomplete="username"])):not(:has(.navbar, .mantine-AppShell-navbar, [data-slot="sidebar"], #sidebar))::before, #page-login::before {
    background-color: #101014;
    background-image: linear-gradient(95deg, #DF6181 0%, #FFD168 55%, #5CBD78 100%), url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%3E%3Cfilter%20id='g'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.8'%20numOctaves='4'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3C/filter%3E%3Crect%20width='160'%20height='160'%20filter='url(%23g)'%20opacity='0.10'/%3E%3C/svg%3E"),
    radial-gradient(46rem 40rem at 108% 106%, rgb(223 97 129 / 0.42), transparent 62%),
    radial-gradient(34rem 30rem at -8% -6%, rgb(44 59 139 / 0.32), transparent 62%),
    linear-gradient(158deg, #121016 0%, #1b1119 56%, #2c1621 100%);
    background-size: 100% 6px, 160px 160px, auto, auto, auto;
    background-position: left bottom, left top, left top, left top, left top;
    background-repeat: no-repeat, repeat, no-repeat, no-repeat, no-repeat;
    border-bottom: 0;
    padding: 48px;
    color: #fff;
    font-size: 48px; line-height: 1.08; letter-spacing: -0.04em;
  }
  @supports (background-image: linear-gradient(95deg in oklch, #DF6181 0%, #FFD168 55%, #5CBD78 100%)) {
    body:has(:is(#auth-page, #login-email, .mantine-Card-root form #username, .card-body form #email, [data-slot="card"] form input[autocomplete="username"])):not(:has(.navbar, .mantine-AppShell-navbar, [data-slot="sidebar"], #sidebar))::before, #page-login::before { background-image: linear-gradient(95deg in oklch, #DF6181 0%, #FFD168 55%, #5CBD78 100%), url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%3E%3Cfilter%20id='g'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.8'%20numOctaves='4'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3C/filter%3E%3Crect%20width='160'%20height='160'%20filter='url(%23g)'%20opacity='0.10'/%3E%3C/svg%3E"),
    radial-gradient(46rem 40rem at 108% 106%, rgb(223 97 129 / 0.42), transparent 62%),
    radial-gradient(34rem 30rem at -8% -6%, rgb(44 59 139 / 0.32), transparent 62%),
    linear-gradient(158deg, #121016 0%, #1b1119 56%, #2c1621 100%); }
  }
}
@media (min-width: 1280px) {
  body:has(:is(#auth-page, #login-email, .mantine-Card-root form #username, .card-body form #email, [data-slot="card"] form input[autocomplete="username"])):not(:has(.navbar, .mantine-AppShell-navbar, [data-slot="sidebar"], #sidebar))::before, #page-login::before { padding: 64px; font-size: 60px; }
}

/* Login right column only. Native labels, types, names and handlers stay intact. */
:root {
  --six-login-form-width: 360px;
  --six-login-field-height: 40px;
  --six-login-button-height: 48px;
  --six-login-field-radius: 8px;
  --six-login-field-border: #ebe4da;
}

/* The app's own logo/title remain above a borderless 360px form. */
#auth-login-card,
body:has(#login-email) .max-w-md,
.mantine-Card-root:has(form #username),
[data-slot="card"]:has(form input[autocomplete="username"]),
#page-login :is(.for-login, .for-email-login),
main:has(> section.login-hero-bg) > section:last-child > form {
  box-sizing: border-box;
  width: 100% !important;
  max-width: var(--six-login-form-width) !important;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
}
body:not(:has(.navbar)) .card:has(.card-body form #email) {
  width: 100%; max-width: var(--six-login-form-width) !important;
  padding: 0; border: 0; box-shadow: none;
}

/* Label + field share the same measurements, regardless of native component. */
#auth-login-card label,
body:has(#login-email) .max-w-md form label,
.mantine-Card-root:has(form #username) .mantine-InputWrapper-label,
[data-slot="card"]:has(form input[autocomplete="username"]) form label,
body:not(:has(.navbar)) .card:has(.card-body form #email) label[for],
#page-login :is(.for-login, .for-email-login) .form-label,
main:has(> section.login-hero-bg) > section:last-child > form label {
  margin-bottom: 8px !important;
  color: #17151a !important;
  font-size: 13px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
}
main:has(> section.login-hero-bg) > section:last-child > form label {
  margin-bottom: 0 !important;
}
#auth-login-card input,
body:has(#login-email) .max-w-md form input,
.mantine-Card-root:has(form #username) .mantine-TextInput-input,
.mantine-Card-root:has(form #username) .mantine-PasswordInput-input,
[data-slot="card"]:has(form input[autocomplete="username"]) form input,
body:not(:has(.navbar)) .card:has(.card-body form #email) form input,
#page-login :is(.for-login, .for-email-login) .form-control,
main:has(> section.login-hero-bg) > section:last-child > form input {
  box-sizing: border-box;
  width: 100%;
  height: var(--six-login-field-height) !important;
  min-height: var(--six-login-field-height) !important;
  padding: 0 12px;
  border: 1px solid var(--six-login-field-border) !important;
  border-radius: var(--six-login-field-radius) !important;
  background: #fff !important;
  color: #17151a !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  box-shadow: none;
}
/* Native password wrappers/visibility buttons retain their own hit targets. */
.mantine-Card-root:has(form #username) .mantine-PasswordInput-innerInput {
  height: 38px !important; min-height: 38px !important; padding-inline: 12px;
  border: 0; font-size: 14px; font-weight: 600; color: #17151a !important;
}
#page-login .for-login .password-field .form-control { padding-right: 40px; }
body:not(:has(.navbar)) .card:has(.card-body form #email) label.relative input { padding-right: 44px; }
/* LiteLLM's native password component already owns the field frame. Style that
   frame once; keep the inner input and existing visibility button borderless. */
[data-slot="card"]:has(form input[autocomplete="username"]) [data-slot="input-group"] {
  box-sizing: border-box; height: 40px; min-height: 40px;
  border: 1px solid var(--six-login-field-border); border-radius: 8px;
  background: #fff; box-shadow: none;
}
[data-slot="card"]:has(form input[autocomplete="username"]) [data-slot="input-group"] input {
  min-width: 0; height: 38px !important; min-height: 38px !important;
  border: 0 !important; border-radius: 0 !important;
  background: transparent !important; outline: none; box-shadow: none !important;
}
[data-slot="card"]:has(form input[autocomplete="username"]) [data-slot="input-group"]:has(input:focus-visible):not(:has([aria-invalid="true"])) {
  border-color: rgb(223 97 129 / 45%); box-shadow: 0 0 0 3px rgb(223 97 129 / 12%);
}
[data-slot="card"]:has(form input[autocomplete="username"]) [data-slot="input-group"]:has([aria-invalid="true"]) {
  border-color: #b0433f;
}

#auth-login-card input::placeholder,
body:has(#login-email) .max-w-md form input::placeholder,
.mantine-Card-root:has(form #username) input::placeholder,
[data-slot="card"]:has(form input[autocomplete="username"]) form input::placeholder,
body:not(:has(.navbar)) .card:has(.card-body form #email) input::placeholder,
#page-login :is(.for-login, .for-email-login) input::placeholder,
main:has(> section.login-hero-bg) > section:last-child > form input::placeholder {
  color: #8a827f; font-weight: 400;
}
#auth-login-card input:focus-visible:not([aria-invalid="true"]),
body:has(#login-email) .max-w-md form input:focus-visible:not([aria-invalid="true"]),
.mantine-Card-root:has(form #username) .mantine-Input-input:focus-within:not([data-error]),
[data-slot="card"]:has(form input[autocomplete="username"]) form input:focus-visible:not([aria-invalid="true"]),
body:not(:has(.navbar)) .card:has(.card-body form #email) input:focus-visible,
#page-login :is(.for-login, .for-email-login) input:focus:not(.is-invalid),
main:has(> section.login-hero-bg) > section:last-child > form input:focus-visible:not([aria-invalid="true"]) {
  outline: none;
  border-color: rgb(223 97 129 / 45%) !important;
  box-shadow: 0 0 0 3px rgb(223 97 129 / 12%);
}
#auth-login-card input[aria-invalid="true"],
body:has(#login-email) .max-w-md form input[aria-invalid="true"],
.mantine-Card-root:has(form #username) .mantine-Input-input[data-error],
[data-slot="card"]:has(form input[autocomplete="username"]) form input[aria-invalid="true"],
#page-login .for-login input.is-invalid {
  border-color: #b0433f !important;
}

/* Sign in is primary; the existing authentik/provider action is secondary. */
#auth-login-card button[type="submit"],
body:has(#login-email) .max-w-md form button[type="submit"],
.mantine-Card-root:has(form #username) button[type="submit"],
[data-slot="card"]:has(form input[autocomplete="username"]) button[type="submit"],
body:not(:has(.navbar)) .card:has(.card-body form #email) .card-actions > button[type="submit"],
#page-login .for-login .btn-login:not(.btn-login-option),
main:has(> section.login-hero-bg) > section:last-child > form button[type="submit"] {
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: var(--six-login-button-height) !important;
  min-height: var(--six-login-button-height) !important;
  padding: 0 24px;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  /* White 14px text needs brand-dark (4.58:1); #df6181 is 3.41:1, for marks only. */
  background: #c44c68 !important;
  color: #fff !important;
  font-size: 14px; font-weight: 600; line-height: 20px;
  box-shadow: 0 1px 2px rgb(150 40 65 / 30%);
}
#auth-login-card > .flex.flex-col.space-y-2 > button,
body:has(#login-email) a[href="/api/auth/oidc/start"],
.mantine-Card-root:has(form #username) .mantine-Button-root[data-variant="light"],
[data-slot="card"]:has(form input[autocomplete="username"]) form button[type="button"].w-full,
#other-providers > li > button,
#page-login .for-login .btn-login-option,
main:has(> section.login-hero-bg) > section:last-child > form > .mt-6 > button.w-full {
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: var(--six-login-button-height) !important;
  min-height: var(--six-login-button-height) !important;
  padding: 0 24px;
  border: 1px solid var(--six-login-field-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #17151a !important;
  font-size: 14px; font-weight: 600; line-height: 20px;
  box-shadow: 0 1px 2px rgb(64 44 28 / 4%);
}

/* Equal field/action spacing. Errors and recovery/link actions stay in place. */
#auth-login-card form > div:first-child { margin-bottom: 36px; }
#auth-login-card form > .flex.flex-col { margin-top: 0; gap: 20px; }
#auth-login-card form > .flex.flex-col > div { margin-bottom: 0; }
#auth-login-card form > .mt-5 { margin-top: 28px; }
#auth-login-card:not(:has(button[type="submit"])) > .inline-flex { display: none; }
body:has(#login-email) .max-w-md form,
.mantine-Card-root:has(form #username) form > .mantine-Stack-root,
[data-slot="card"]:has(form input[autocomplete="username"]) form [data-slot="field-group"] { gap: 20px !important; }
[data-slot="card"]:has(form input[autocomplete="username"]) form [data-slot="field"] { gap: 8px; }
[data-slot="card"]:has(form input[autocomplete="username"]) form [data-slot="field"] > label { margin-bottom: 0 !important; }
.mantine-Card-root:has(form #username) form > .mantine-Stack-root > .mantine-Stack-root { gap: 20px; }
.mantine-Card-root:has(form #username) button[type="submit"] { margin-top: 8px; }
.mantine-Card-root:has(form #username) .mantine-Divider-root { margin-block: 4px; }
.mantine-Card-root:has(form #username) .mantine-Button-inner { justify-content: center; }
body:not(:has(.navbar)) .card:has(.card-body form #email) .card-body { gap: 36px; }
body:not(:has(.navbar)) .card:has(.card-body form #email) form > input { margin-bottom: 20px; }
body:not(:has(.navbar)) .card:has(.card-body form #email) form > label[for] { display: block; }
body:not(:has(.navbar)) .card:has(.card-body form #email) .card-actions { margin-top: 28px; gap: 24px; }

/* Reveal the existing provider buttons below Sign in; no new OAuth handler. */
body:not(:has(.navbar)) .card:has(form #email) .dropdown:has(#other-providers button) > label { display: none; }
#other-providers:has(button) {
  position: static !important; display: flex !important; flex-direction: column;
  visibility: visible !important; opacity: 1 !important; transform: none !important;
  /* DaisyUI uses the independent scale property and disables pointer events
     on closed dropdowns. These native provider buttons are deliberately inline. */
  scale: 1 !important; pointer-events: auto !important;
  width: 100% !important; min-width: 0; margin: 0; padding: 0; gap: 12px;
  background: transparent !important; border: 0; box-shadow: none !important;
}
#other-providers:has(button) > .menu-title { display: none; }
#other-providers:has(button) > li { padding: 0; }
#page-login .for-login .social-logins { margin-top: 24px; padding-top: 20px; }
#page-login .for-login .login-button-wrapper { padding-inline: 0; }

@media (max-width: 639px) {
  #auth-login-card input,
  body:has(#login-email) .max-w-md form input,
  .mantine-Card-root:has(form #username) input,
  [data-slot="card"]:has(form input[autocomplete="username"]) form input,
  body:not(:has(.navbar)) .card:has(.card-body form #email) form input,
  #page-login .for-login input,
  main:has(> section.login-hero-bg) > section:last-child > form input {
    /* Native ID/utility selectors otherwise beat this shared mobile rule. */
    font-size: 16px !important;
  }
}
@media (forced-colors: active) {
  #auth-login-card input:focus-visible,
  body:has(#login-email) .max-w-md form input:focus-visible,
  .mantine-Card-root:has(form #username) input:focus-visible,
  [data-slot="card"]:has(form input[autocomplete="username"]) input:focus-visible,
  body:not(:has(.navbar)) .card:has(.card-body form #email) input:focus-visible,
  #page-login .for-login input:focus-visible,
  main:has(> section.login-hero-bg) > section:last-child > form input:focus-visible {
    outline: 2px solid Highlight; box-shadow: none;
  }
}
