/* Application additions to the preserved V5 styles. */
/* Native disclosures need the same usable touch area as the styled record disclosures. */
:is(.authenticated,.public-site) details:not(.record-disclosure):not(.setup-step):not(.topic-row)>summary{min-height:44px;padding-block:10px;box-sizing:border-box;cursor:pointer}
:is(.authenticated,.public-site) details>summary:focus-visible{outline:2px solid var(--olive);outline-offset:3px;border-radius:4px}
.validation-summary a{display:inline-flex;align-items:center;min-height:44px;padding-block:8px;color:#7c2525;text-decoration:underline;text-underline-offset:3px;line-height:1.6}
.validation-summary:focus-visible,.validation-summary a:focus-visible{outline:2px solid #922c29;outline-offset:3px}
.field-error{display:block;line-height:1.5;margin-top:5px}
@media(max-width:800px){.quick-grid:has(>a:nth-child(3n+1):last-child)>a:last-child:not(:first-child){grid-column:1/-1;flex-direction:row;min-height:44px}}
.quick-grid a{white-space:nowrap;border:1px solid #e8e0d5;background:linear-gradient(#fff,#faf5ec);border-radius:10px;min-height:69px;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;font-size:12px;color:#4b432e;padding:6px;line-height:1.4;text-align:center}.quick-grid a .ico{color:var(--olive);width:23px;height:23px}.quick-grid a:hover{border-color:var(--brown);background:#f5ecdf}.cockpit-hero-row{margin-bottom:18px}
[hidden]{display:none!important} body{font-size:16px}.environment-strip{padding:5px 24px;background:#eee7dc;color:#645640;font-size:12px;text-align:center}.status-message{max-width:1300px;margin:16px auto;padding:16px}.field-error{color:#922c29}.header-dropdown{position:relative}.header-popover{position:absolute;top:calc(100% + 15px);right:0;width:340px;max-width:calc(100vw - 20px);padding:22px;background:#fffdf9;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 40px #4c3d2929;max-height:75dvh;overflow:auto;z-index:80}.header-popover h3,.header-popover p{margin-bottom:12px}.header-popover a{display:flex;align-items:center;gap:10px;padding:12px 3px;min-height:44px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.header-popover a small{font-size:12px}.mobile-header-menu{right:12px;top:calc(100% + 5px)}.notification-count{position:absolute;right:-4px;top:-7px;background:#94403d;color:#fff;padding:1px 6px;border-radius:20px;font-size:11px}.auth-shell{max-width:600px;margin:50px auto;padding:0 20px}.auth-shell .panel{padding:30px}.auth-shell h1{font-size:36px;margin-bottom:14px}.auth-shell form{margin-top:24px}.auth-shell .form-grid{grid-template-columns:1fr}.workspace{max-width:1536px;margin:auto;padding:24px}.workspace h1{font-size:36px}.workspace .panel{min-width:0}.page-heading{margin-bottom:22px}.page-heading p{margin-top:8px}.empty-state{padding:34px 22px;text-align:center}.empty-state img{max-width:140px;margin:0 auto 16px}.empty-state h3{margin-bottom:8px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}.data-table th{background:#f7f2ea;font-size:14px}.data-table td p{font-size:14px}.data-table a{color:#725236;text-decoration:underline;text-underline-offset:3px}.record-card{padding:24px}.record-card>p{margin:8px 0}.form-grid{gap:18px}.field textarea{min-height:110px;resize:vertical}.field input,.field select,.field textarea{font-size:16px;min-height:46px;max-width:100%}.row-actions{display:flex;flex-wrap:wrap;gap:9px}.inline-form{display:inline-flex;gap:8px;align-items:center}.badge{font-size:13px}.badge.neutral{background:#eee7da;color:#61543e}.progress-summary{display:flex;gap:16px;flex-wrap:wrap;padding:16px;background:#edf2e7;border-radius:12px;margin-bottom:20px}.topic-list{display:grid;gap:12px}.topic-row{padding:18px;border:1px solid var(--line);border-radius:14px;background:#fffdf9}.topic-row summary{cursor:pointer;font-weight:600;font-size:17px;min-height:44px;display:flex;align-items:center;gap:14px}.topic-row .form-grid{margin-top:16px}.topic-meta{font-size:13px;color:var(--muted);margin:6px 0}.save-state{font-size:14px;display:inline-flex;gap:8px;align-items:center}.save-state[data-state=failed]{color:#922c29}.report-print{max-width:1100px;margin:30px auto;background:white;padding:40px}.report-print h1{margin:16px 0}.report-print .brand{margin-bottom:24px}.report-narrative{white-space:pre-wrap;overflow-wrap:anywhere}.report-print table{font-size:15px}.report-print thead{display:table-header-group}.report-print tr{break-inside:avoid}.report-print th,.report-print td{padding:12px;border:1px solid #ddd8ce;text-align:left}.report-print th{background:#f7f2ea}.print-block{margin:22px 0;break-inside:avoid}.no-print{margin-bottom:20px}.pagination{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.pagination nav{max-width:100%}.pagination svg{width:20px}.public-page section{scroll-margin-top:95px}.public-page .section-motion{position:relative;overflow:hidden}.public-page .section-motion::before{content:"";position:absolute;z-index:-1;width:360px;height:360px;border:1px solid #a9826247;border-radius:25%;right:-240px;top:10%;transform:rotate(45deg);animation:section-drift 15s ease-in-out infinite alternate;pointer-events:none}.public-page .section-motion.is-offscreen::before{animation-play-state:paused}@keyframes section-drift{to{transform:translateY(24px) rotate(58deg)}}.v5-card-content h3{overflow-wrap:anywhere}.public-page p{line-height:1.7}.public-site .footer .brand{margin-bottom:16px}.public-site .footer p{margin:12px 0}.help-copy{margin:14px 0;color:var(--muted)}.section .toolbar{margin-bottom:22px}.contact-honey{position:absolute;left:-10000px}.kpi-grid .kpi{min-width:0}.hero{isolation:isolate}.hero h1{max-width:560px}.hero-quick{position:relative;z-index:2}.readonly-note{padding:12px;background:#f4eee5;border-radius:10px}.print-heading{display:flex;justify-content:space-between;gap:20px}.arabic{font-family:'Traditional Arabic','Noto Naskh Arabic',serif;direction:rtl;font-size:23px}
@media(max-width:1100px){.nav{gap:0}.nav a{padding:9px 8px}.profile-label{display:none}.header{gap:12px;padding:10px 16px}.brand-text strong{font-size:22px}}
@media(max-width:800px){.workspace{padding:18px}.header .nav{display:none}.header-right{margin-left:auto}.mobile-menu{display:inline-flex}.bottom-nav a{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 0;min-height:51px;font-size:11px;color:#766348;border-radius:10px}.authenticated{padding-bottom:90px}.workspace h1{font-size:32px}.header .header-right .v5-bell{display:inline-flex}.header .header-right .profile{display:flex}.header-popover{position:fixed;top:86px;right:10px;max-width:calc(100% - 20px)}.hero{min-height:230px}.report-print{padding:20px}.public-register{display:none}}
@media(max-width:480px){.brand-text{display:none}.header{height:76px;padding:8px 14px;gap:9px}.header-right{gap:7px}.profile>.ico{display:none}.header-popover{top:80px}.page-heading{align-items:start;flex-direction:column}.print-heading{flex-direction:column}.status-message{margin:12px}.report-print{margin:12px;padding:16px}.report-print h1{font-size:30px}.record-card{padding:18px}.auth-shell{margin:28px auto}.auth-shell .panel{padding:22px}.public-login{font-size:13px;padding:10px 12px}.public-page .public-hero h1{font-size:42px}.public-page .public-hero .hero-photo{object-position:78% 66%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}
@media print{body{background:white!important}.header,.environment-strip,.bottom-nav,.status-message,.ambient-layer,.preloader,.no-print,button{display:none!important}.report-print{margin:0;max-width:none;padding:0}.report-print th,.report-print td{font-size:11pt}.report-print{width:100%}.report-narrative{color:#222}.workspace{padding:0}a{color:inherit;text-decoration:none}@page{size:A4;margin:15mm}}

.report-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px}.report-metrics h2{overflow-wrap:anywhere}.report-metrics .help-copy{font-size:14px;line-height:1.6}

.report-filters{flex-basis:100%;width:100%;margin:0}.report-filters summary{cursor:pointer;min-height:32px}.report-filters .check-label{align-self:end}
/* Public previews keep the actual FAZA layout and disable live enquiry entry. */
.enquiry-fields{border:0;min-width:0;margin:0;padding:0}.content-preview{margin:16px auto;max-width:1280px}.content-preview p{margin:6px 0}.staff-portrait{object-position:top}
.workspace .topic-meta{overflow-wrap:anywhere}

/* The three-column metadata table can wrap its headings on narrow screens. */
.verse-bounds th{white-space:normal}

/* Keep long account names inside the existing header; the profile menu shows the full name. */
.profile-label{max-width:160px;min-width:0}.profile-label b,.profile-label small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-popover>strong{overflow-wrap:anywhere}
.reflection-audience{display:block;font-size:15px;line-height:1.65;overflow-wrap:anywhere}.reflection-audience h3{margin-bottom:8px}.reflection-audience ul{padding-inline-start:22px;margin-block:12px}
.tuition-breakdown th{white-space:normal}.tuition-breakdown th,.tuition-breakdown td{padding:10px}
/* Reserve the reader's vertical scrollbar before its first PDF canvas is measured. */
.v5-reader-canvas{scrollbar-gutter:stable}
.v5-reader-toolbar .btn{min-width:44px}

.book-bookmark{flex-wrap:wrap;align-items:flex-start}.book-bookmark>.grow{flex:1 1 240px;overflow-wrap:anywhere}.book-bookmark>form{flex:0 0 auto}

.book-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px}.book-preview-grid img{display:block;width:100%;height:auto}.book-preview-grid figcaption,.book-public-previews figcaption{margin:10px 0}.book-public-previews{max-width:850px;margin:auto;display:grid;gap:28px}.book-public-previews img{display:block;width:100%;height:auto}

.book-preview-grid figure,.book-public-previews figure{margin:0;min-width:0}

.preview-review-form .check-label{min-height:44px}
.catalogue-editor .check-label{min-height:44px}.catalogue-source-cover{height:auto;max-height:180px;object-fit:contain;margin:10px 0}.catalogue-history{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:8px}.catalogue-history dd{margin:0;overflow-wrap:anywhere}.catalogue-editor summary{overflow-wrap:anywhere}
.prospect-merge-form .check-label{min-height:44px}.prospect-merge-form .record-card{overflow-wrap:anywhere}
.prospect-tracker .toolbar{margin-bottom:18px}.prospect-tracker summary{min-height:44px;overflow-wrap:anywhere}.prospect-table td{overflow-wrap:anywhere}.prospect-table .btn{min-height:44px;white-space:nowrap}.prospect-table .badge{white-space:normal}
.report-sharing .field{margin-bottom:14px}.report-sharing .form-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}.report-sharing .check-label{min-height:44px}.report-sharing .row-actions .btn{min-height:44px}.report-sharing [data-report-sharing-status]{overflow-wrap:anywhere}.report-sharing [data-state=failed],.report-sharing [data-state=unrecorded]{color:#922c29}
.book-access-review .check-label{min-height:44px}.book-access-review .record-card,.book-access-table td{overflow-wrap:anywhere}.book-access-table .btn{min-height:44px;white-space:nowrap}
@media(max-width:800px){.book-access-table,.book-access-table tbody,.book-access-table tr,.book-access-table td{display:block;width:100%}.book-access-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.book-access-table tr{padding:12px 0;border-bottom:1px solid var(--line)}.book-access-table td{border:0;padding:8px 16px}.book-access-table td::before{content:attr(data-label);display:block;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:4px}.book-access-table td:last-child .btn{width:100%}}
@media(max-width:800px){.prospect-table,.prospect-table tbody,.prospect-table tr,.prospect-table td{display:block;width:100%}.prospect-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.prospect-table tr{padding:12px 0;border-bottom:1px solid var(--line)}.prospect-table td{border:0;padding:8px 16px}.prospect-table td::before{content:attr(data-label);display:block;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:4px}.prospect-table .prospect-empty td::before{display:none}.prospect-table td:last-child .btn{width:100%}}

.agreement-signing{overflow-wrap:anywhere}.agreement-signing .check-label{min-height:44px}.agreement-signing summary{min-height:44px}

.support-followups .list-row{overflow-wrap:anywhere;min-height:44px}.support-followups .panel-head{flex-wrap:wrap}

.agreement-editor{overflow-wrap:anywhere}.agreement-editor .check-label{min-height:44px}.agreement-editor summary{min-height:44px}

/* Compact operational records: essential facts first; source evidence stays accessible. */
.workspace .btn,.public-site .btn{min-height:44px}
.workspace .data-table a{display:inline-flex;align-items:center;min-height:44px}
.quick-grid:has(>a:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.cockpit-hero>img.malaysia-cockpit-scene{object-position:100% 32%}
@media(min-width:1100px){.kpi-grid{grid-template-columns:repeat(var(--metric-columns,6),minmax(0,1fr))}}
@media(min-width:651px) and (max-width:1099px){.kpi-grid{grid-template-columns:repeat(var(--compact-metric-columns,3),minmax(0,1fr))}}
@media(max-width:600px){.cockpit-hero>img.malaysia-cockpit-scene{object-position:100% 50%}}
.page-heading .row-actions>.btn{margin-bottom:0}
.reader-paging,.reader-view-controls{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.reader-page-input{width:72px;min-height:44px}
.reader-paging .ico{display:none}
.reader-prev-icon{transform:rotate(180deg)}
.reader-expanded{position:fixed;inset:0;z-index:9000;border-radius:0;max-width:none;width:100%;height:100dvh;overflow:auto;display:flex;flex-direction:column;background:#eee9df;overscroll-behavior:contain}
.v5-reader [data-reader-display-heading]{font-size:20px;margin:0 0 10px;text-align:center}
.reader-expanded .v5-reader-toolbar,.v5-reader:fullscreen .v5-reader-toolbar{position:sticky;top:0;z-index:1;padding-block:6px;background:#eee9df;flex-shrink:0}
.reader-expanded .v5-reader-canvas,.v5-reader:fullscreen .v5-reader-canvas{height:auto!important;min-height:40dvh;flex:1 0 40dvh}
.reader-expanded>details,.reader-expanded>[role=status]{flex-shrink:0}
@media(max-width:600px){.v5-reader-toolbar{gap:10px}.reader-paging,.reader-view-controls{gap:6px;flex-wrap:nowrap;width:100%}.reader-paging .reader-button-label,.reader-view-controls .reader-button-label{display:none}.reader-paging .ico{display:block}.reader-paging label[for="readerPage"]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.reader-paging .btn,.reader-view-controls .btn{padding:10px;min-width:44px;flex-shrink:0}.reader-paging [data-reader-total]{font-size:13px}}
.directory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.directory-grid>.btn{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:12px;min-height:104px;padding:17px;text-align:left;white-space:nowrap;line-height:1.5;background:#fffdf9;border-color:var(--line);font-size:14px;font-weight:500}
.directory-grid>.btn>.ico{width:23px;height:23px;color:var(--olive)}
.directory-grid>.btn:hover{background:#f0f4e9;border-color:#ccd9bd}
@media(max-width:1100px){.directory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.directory-grid>.btn{min-height:100px;padding:14px;font-size:13px;gap:9px}.academy-directory .record-card{padding:14px}}
.record-disclosure{border-top:1px solid var(--line);margin-top:16px;padding-top:4px}
.record-disclosure>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;min-height:48px;padding:10px 0;font-weight:600;line-height:1.45;color:var(--ink)}
.record-disclosure>summary::-webkit-details-marker{display:none}
.record-disclosure>summary::after{content:"";width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 5px 4px auto;flex:0 0 8px;transition:transform .18s ease}
.record-disclosure[open]>summary::after{transform:rotate(225deg);margin-bottom:0}
.record-disclosure>summary>.ico{width:20px;height:20px;color:var(--olive);flex:0 0 20px}
.workspace details.panel>summary,.workspace details.topic-row>summary{min-height:44px;cursor:pointer;overflow-wrap:anywhere}
.workspace details.topic-row>summary::after{content:"";width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 3px 4px auto;flex:0 0 8px}
.workspace details.topic-row[open]>summary::after{transform:rotate(225deg);margin-bottom:0}
.offer-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;align-items:start}
.offer-review-card{padding:12px 16px}
.offer-review-card>summary{gap:12px;font-size:14px;align-items:center}
.offer-review-card>summary>span:first-child{min-width:0;flex:1}
.offer-review-card small,.terms-version>summary small{display:block;color:var(--muted);font-size:12px;font-weight:400;line-height:1.5;margin-top:5px}
.offer-amount{text-align:right;white-space:nowrap;font-size:15px;color:var(--olive)}
.offer-review-card>p{font-size:14px;margin:12px 0}
.terms-version{padding-top:16px;padding-bottom:16px}
.terms-version>summary{flex-wrap:wrap}
.terms-version>summary>span:first-of-type{flex:1;min-width:140px}
.terms-version>summary .badge{font-weight:500}
@media(max-width:760px){.offer-review-grid{grid-template-columns:1fr}}
.record-disclosure>p,.record-disclosure>form{margin-top:12px}
.summary-meta{font-size:12px;font-weight:500;color:var(--muted);background:#f2eee6;padding:3px 8px;border-radius:20px;white-space:nowrap}
.trainer-card{margin-top:22px;padding:24px 28px}
.trainer-heading{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.trainer-heading>div{min-width:0;flex:1}
.trainer-heading h2{font-size:27px;margin:0;line-height:1.25}
.trainer-heading .badge{margin-left:auto;white-space:normal}
.trainer-heading .badge.green{background:#edf2e7;color:#435837;border:1px solid #dce6d3;padding:5px 10px;border-radius:20px}
.trainer-avatar{display:grid;place-items:center;width:52px;height:52px;flex:0 0 52px;border-radius:18px;background:#e8edde;color:var(--olive);font-size:24px;font-family:Georgia,serif}
.trainer-email{font-size:13px;overflow-wrap:anywhere;margin:4px 0 0!important}
.trainer-facts{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:18px;color:var(--muted);font-size:14px}
.trainer-facts>span{display:flex;gap:8px;align-items:center;min-width:0;overflow-wrap:anywhere}
.trainer-facts .ico,.trainer-section-title .ico,.trainer-programmes h3 .ico{width:18px;height:18px;color:var(--olive);flex:0 0 18px}
.trainer-programmes{margin:20px 0 8px}
.trainer-programmes h3,.trainer-section-title{display:flex;gap:9px;align-items:center;font-size:15px;font-weight:600;margin:0 0 10px}
.programme-chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0}
.programme-chips li{background:#edf2e7;color:#435837;padding:7px 12px;border-radius:9px;font-size:14px;line-height:1.5}
.fixture-label{display:flex;gap:6px;align-items:center;font-size:12px;color:#785f32;margin-top:10px!important}
.fixture-label .ico{width:15px;height:15px;flex:0 0 15px}
.qualification-detail[open]{padding-bottom:10px}
.qualification-detail p{font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.trainer-time{border-top:1px solid var(--line);margin-top:4px;padding-top:20px}
.trainer-section-title{margin-top:22px}
.trainer-section-title:first-child{margin-top:0}
.trainer-section-title .summary-meta{margin-left:auto}
.availability-slot{border:1px solid #e3e9dc;border-radius:12px;background:#f5f8f0;padding:14px 16px;margin:10px 0}
.slot-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:15px;color:#435837}
.slot-day{font-weight:600}
.slot-timezone{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;margin-top:5px}
.slot-timezone .ico{width:14px;height:14px}
.trainer-card details>summary{cursor:pointer;min-height:44px;padding:10px 0;overflow-wrap:anywhere}
.trainer-card details form{margin-top:14px}
.availability-slot details>summary{font-size:13px;padding-bottom:0}
.quiet-empty{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px;margin:8px 0}
.quiet-empty .ico{color:var(--olive);width:18px;height:18px}
.scheduling-note{margin-top:10px;border-top:0}
.scheduling-note>summary{font-size:13px;color:var(--muted)}
@media(min-width:1100px){.trainer-card{max-width:1100px}.trainer-submit{max-width:1100px}}
@media(max-width:600px){.trainer-card{padding:20px}.trainer-heading{gap:10px}.trainer-heading h2{font-size:24px}.trainer-avatar{width:44px;height:44px;flex-basis:44px;border-radius:14px}.trainer-heading .badge{font-size:12px;max-width:100%}.trainer-facts{gap:8px 16px;margin-top:16px}.programme-chips li{font-size:13px}.record-disclosure>summary{font-size:14px}.trainer-card .form-grid{grid-template-columns:1fr}}
@media(max-width:600px){.trainer-heading{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px 10px}.trainer-avatar{grid-row:1/3;align-self:start}.trainer-heading .badge{grid-column:2;justify-self:start;margin-left:0}}
@media(prefers-reduced-motion:reduce){.record-disclosure>summary::after{transition:none}}
.report-save-actions{align-items:center;flex-wrap:wrap;gap:12px}
.report-save-actions .save-state{min-height:24px;line-height:1.5}
.report-save-actions .save-state::before{content:"";width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:currentColor}
.report-save-actions [data-state=saved]{color:var(--olive)}
.report-save-actions [data-state=pending],.report-save-actions [data-state=saving]{color:var(--brown)}

/* Short actions stay compact; long dynamic labels may wrap inside their container. */
.workspace .btn:not(.directory-grid>.btn):not(.quick-grid>.btn){max-width:100%;overflow-wrap:anywhere;flex-shrink:0}
.workspace .data-table .btn,.workspace .data-table .text-btn{white-space:nowrap}
.workspace .data-table a.btn{text-decoration:none}
.page-heading{flex-wrap:wrap;align-items:flex-start}
.page-heading>div:first-child{flex:1 1 320px;min-width:0}
.page-heading>.btn{flex-shrink:0}
.page-heading>.row-actions{flex:0 1 auto}
.workspace .panel-head{flex-wrap:wrap;gap:12px}
.workspace .panel-head .text-btn{white-space:nowrap;flex-shrink:0}
.record-table .record-actions>.btn,.record-table .record-actions>.text-btn{margin:3px 4px 3px 0}
.workspace-start{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:12px 16px;border:1px solid #dfe7d8;border-radius:14px;background:#f0f5e9}
.workspace-start>div{flex:1;min-width:0}.workspace-start strong{font-size:14px}.workspace-start p{font-size:13px;margin:3px 0 0}.workspace-start .icon-tile{flex-shrink:0}
.guide-overview{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:18px;background:linear-gradient(120deg,#eff4e8,#fffdf9)}
.guide-overview>div{flex:1 1 230px;min-width:0}.guide-overview h2{font-size:25px;margin:0 0 6px}.guide-overview p{font-size:14px}
.guide-symbol{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;border-radius:18px;background:#e0e9d7;color:var(--olive)}.guide-symbol .ico{width:30px;height:30px}
.guide-section{margin-top:28px}.guide-section .section-title{margin-bottom:14px}.guide-section h2{font-size:28px}.guide-section .section-title p{font-size:14px;margin-top:7px}
.setup-step-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.setup-step{min-width:0}.setup-step>summary{display:flex;align-items:center;gap:10px;min-height:92px;padding:16px;cursor:pointer;list-style:none;font-size:15px;font-weight:600}
.setup-step>summary::-webkit-details-marker{display:none}.setup-step>summary>span:not(.step-number){flex:1}.setup-step>summary>.ico{color:var(--olive);width:22px;height:22px;flex:0 0 22px}.setup-step>summary>.ico:last-child{width:16px;height:16px;flex-basis:16px}.setup-step[open]{grid-column:1/-1}.setup-step[open]>summary{min-height:64px}.setup-step[open]>summary>.ico:last-child{transform:rotate(180deg)}
.step-number{display:grid;place-items:center;border-radius:50%;width:26px;height:26px;flex:0 0 26px;background:#eee8dc;color:var(--deep);font-size:12px;font-weight:600}
.setup-step-body{padding:0 20px 20px}.setup-step-body p{max-width:780px;font-size:14px;margin-bottom:14px}.setup-step-body .row-actions{gap:8px}
.guide-footnote{display:flex;align-items:flex-start;gap:8px;color:var(--muted);font-size:13px;margin-top:12px}.guide-footnote .ico{flex:0 0 17px;width:17px;height:17px;margin-top:2px}
.guide-task-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;margin:0;gap:14px}
.guide-task{display:flex;flex-direction:column;padding:20px;min-width:0}.guide-task-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.guide-task h3{font:600 19px/1.35 Georgia,serif;margin-bottom:8px}.guide-task p{font-size:14px;line-height:1.65;margin-bottom:18px}.guide-task .btn{margin-top:auto;align-self:flex-start}
.guide-help{margin-top:24px}.guide-help p{font-size:14px;max-width:850px}
.guide-tour{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;padding:0;margin:0;border:0;background:transparent;overflow:hidden;color:var(--ink)}
.guide-tour::backdrop{background:transparent}.tour-spotlight{position:fixed;pointer-events:none;border:2px solid #e5c38e;border-radius:12px;box-shadow:0 0 0 9999px #29251e14,0 0 0 5px #e5c38e44}
.tour-pointer{position:fixed;width:18px;height:10px;background:var(--brown);clip-path:polygon(50% 0,100% 100%,0 100%);pointer-events:none;animation:guide-point-up .65s ease-in-out 2}.tour-pointer[data-direction=down]{transform:rotate(180deg);animation-name:guide-point-down}
.tour-pointer[data-direction=left]{transform:rotate(-90deg);animation-name:guide-point-left}.tour-pointer[data-direction=right]{transform:rotate(90deg);animation-name:guide-point-right}
@keyframes guide-point-left{50%{translate:-3px 0}}@keyframes guide-point-right{50%{translate:3px 0}}
@keyframes guide-point-up{50%{translate:0 -3px}}@keyframes guide-point-down{50%{translate:0 3px}}
.tour-card{position:fixed;width:min(390px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:20px;border-radius:18px;background:#fffdf9;box-shadow:0 18px 70px #19160f55;border:1px solid var(--line)}
.tour-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}.tour-heading .eyebrow{margin:0}.tour-heading .icon-btn{flex:0 0 44px;width:44px;height:44px}.tour-card h2{font-size:26px;margin:0 0 10px}.tour-card p{font-size:15px;line-height:1.65}.tour-card progress{display:block;width:100%;height:5px;border:0;border-radius:5px;margin-top:18px;accent-color:var(--olive);background:#e9e4d9}.tour-card progress::-webkit-progress-bar{background:#e9e4d9;border-radius:5px}.tour-card progress::-webkit-progress-value{background:var(--olive);border-radius:5px}.tour-actions{display:flex;justify-content:space-between;gap:12px;margin-top:20px}.tour-actions .btn{min-width:90px;white-space:nowrap}
@media(max-width:1100px){.setup-step-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){
 .record-table,.record-table tbody{display:block;width:100%}.record-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .record-table tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;padding:18px;border-bottom:1px solid var(--line)}
 .record-table tbody>tr:last-child{border-bottom:0}.record-table td{display:block;min-width:0;border:0;padding:0;overflow-wrap:anywhere;font-size:14px}
 .record-table td::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;font-weight:600;line-height:1.5;margin-bottom:4px}
 .record-table .record-title,.record-table td[colspan]{grid-column:1/-1}.record-table .record-title{font-weight:600;font-size:15px}.record-table .record-title p{font-weight:400}.record-table .record-title::before,.record-table .record-actions::before,.record-table td[colspan]::before{display:none}
 .record-table .record-actions{display:flex;flex-wrap:wrap;align-items:center;align-self:end;justify-content:flex-end;gap:8px}.record-table .record-actions>.btn,.record-table .record-actions>.text-btn{margin:0}
 .record-table td p{margin:4px 0 0;font-size:13px}.record-table .empty-state{padding:20px 0}
}
@media(min-width:651px) and (max-width:800px){.record-table tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.record-table tbody>tr{border-bottom:1px solid var(--line)}.record-table tbody>tr:nth-child(odd){border-right:1px solid var(--line)}}
@media(max-width:600px){.workspace-start{gap:10px;padding:12px}.workspace-start>.icon-tile{display:none}.workspace-start p{display:none}.workspace-start .btn{padding-inline:12px}.guide-overview{grid-template-columns:44px minmax(0,1fr);gap:12px;padding:18px}.guide-overview .guide-symbol{flex-basis:44px;width:44px;height:44px;border-radius:14px}.guide-overview h2{font-size:22px}.guide-task{padding:15px}.guide-task-grid{gap:10px}.guide-task p{font-size:13px}.guide-task h3{font-size:18px}.guide-task .btn{width:100%;align-self:stretch}.setup-step-grid{gap:10px}.setup-step>summary{flex-wrap:wrap;gap:8px;min-height:108px;padding:14px;font-size:14px}.setup-step>summary>span:not(.step-number){flex-basis:100%;order:1}.setup-step>summary>.ico:last-child{margin-left:auto}.setup-step-body{padding:0 14px 16px}.setup-step[open]>summary{min-height:90px}.guide-section h2{font-size:25px}.tour-card{padding:16px}.tour-card h2{font-size:24px}.tour-card p{font-size:14px}}
@media(max-width:480px){.page-heading>div:first-child{flex-basis:auto}.workspace .form-actions .btn{flex:0 1 auto}.workspace .form-actions{justify-content:flex-start}}
@media print{.workspace-start,.guide-tour{display:none!important}}
