:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #173042;
  background: #f3f6f7;
  color-scheme: light;
}
* { box-sizing: border-box; }
.score-summary { background: #eef6f3; border: 1px solid #b9d8cf; border-radius: 12px; padding: 24px; margin: 24px 0; }
progress { width: 100%; height: 22px; accent-color: #216c60; }
.goal-card { border: 1px solid #dce5e7; border-radius: 12px; margin: 24px 0; padding: 24px; }
legend { padding: 0 8px; font-weight: 700; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.presentation-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.presentation-section { margin-top: 30px; }
.inline-check { width: auto; }
button:disabled { opacity: 0.5; cursor: default; }
textarea { width: 100%; padding: 14px; border: 1px solid #a6b9c1; border-radius: 8px; font: inherit; line-height: 1.5; resize: vertical; }
textarea:focus-visible { outline: 3px solid #458dce; outline-offset: 3px; }
.invitation { padding: 20px; background: #eaf7ef; border-radius: 12px; margin-bottom: 30px; }
body { margin: 0; }
.welcome { max-width: 1120px; margin: 0 auto; padding: 60px 24px; }
.eyebrow { font-size: 12px; letter-spacing: 2px; font-weight: 700; color: #267367; }
.card { margin: 30px 0; padding: 32px; background: white; border: 1px solid #dce5e7; border-radius: 18px; box-shadow: 0 12px 35px #17304208; }
h1 { font-size: 36px; line-height: 1.2; margin: 20px 0; }
.form-title { font-size: 30px; }
h2 { margin-top: 0; }
p { line-height: 1.65; color: #536674; font-size: 17px; }
a { color: #216c60; }
small { color: #536674; font-size: 13px; line-height: 1.5; }
label { display: block; font-weight: 600; margin: 18px 0 8px; }
input, select { width: 100%; padding: 13px; border: 1px solid #a6b9c1; border-radius: 8px; background: white; color: #173042; font: inherit; }
button { margin-top: 24px; padding: 13px 24px; border: 0; border-radius: 8px; background: #216c60; color: white; font: inherit; font-weight: 600; cursor: pointer; }
button:hover { background: #174f46; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #458dce; outline-offset: 3px; }
.module-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
.module-links a { display: block; border: 1px solid #dce5e7; padding: 24px; border-radius: 12px; text-decoration: none; background: #f8fbfa; }
.module-links a:hover { background: #edf6f2; border-color: #216c60; }
.module-links strong { display: block; font-size: 20px; }
.module-links span { display: block; color: #536674; margin-top: 10px; line-height: 1.5; }
.navigation { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.section-title { margin-top: 40px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; text-align: left; }
th, td { padding: 14px; border-bottom: 1px solid #dde6e9; vertical-align: top; }
th { background: #f3f6f7; }
.access-id { overflow-wrap: anywhere; }
.error { background: #fff0ed; color: #8a271c; padding: 14px; border-radius: 8px; }
.success { background: #eaf7ef; color: #245338; padding: 14px; border-radius: 8px; }
.access { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid #e9eef0; }
.access span { color: #536674; line-height: 1.5; }
@media (max-width: 650px) {
  .form-grid, .module-links { grid-template-columns: 1fr; }
  .welcome { padding: 32px 16px; }
  .card { padding: 22px; }
  h1, .form-title { font-size: 26px; }
}

/* Application workspace refresh */
:root { color: #182d36; background: #f1f4f4; }
body { background: radial-gradient(ellipse at top right, #e1eeea 0, transparent 48%), #f1f4f4; min-height: 100vh; }
.welcome { max-width: 1240px; padding: 28px 32px 64px; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 0 28px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: #153a34; font-weight: 750; font-size: 17px; }
.brand small { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; margin-top: 4px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; background: #174d43; color: #fff; font-size: 24px; border-radius: 13px; }
.role-pill, .status-badge { display: inline-block; background: #e1eee8; color: #245446; padding: 7px 12px; border-radius: 24px; font-size: 12px; font-weight: 650; }
.top-navigation { display:flex; gap:8px; flex-wrap:wrap; padding:12px; margin:0 0 24px; border:1px solid #dce5e0; border-radius:16px; background:#ffffffd9; }
.top-navigation a { display:inline-block; padding:11px 16px; border-radius:10px; text-decoration:none; font-size:14px; font-weight:600; color:#425e54; }
.top-navigation a:hover { background:#edf4ef; }
.top-navigation a[aria-current="page"] { background:#174d43; color:white; }
/* Leave space for the accessible focus ring, including inputs nested in labels. */
label > input:not([type="checkbox"]), label > select, label > textarea { display:block; margin-top:10px; }
label { line-height:1.55; }
input:focus-visible,select:focus-visible,textarea:focus-visible { outline-width:2px; outline-offset:2px; }
.department-choices { border:1px solid #d6e1db; border-radius:12px; padding:16px; margin:22px 0; }
.department-choices label { display:flex; gap:10px; align-items:center; margin:10px 0; font-weight:500; }
.department-choices input { width:18px; height:18px; margin:0; accent-color:#216c60; }
.goal-card,.question-card { background:#f7faf8; border:2px solid #cfddd5; border-radius:14px; padding:24px; margin:26px 0; box-shadow:0 3px 0 #17304204; }
.goal-card legend { background:#e6f0e9; border:1px solid #cfddd5; border-radius:8px; padding:8px 12px; line-height:1.4; }
.goal-card input,.goal-card select,.goal-card textarea,.question-card textarea { background:white; }
.question-card > label:first-child { margin-top:0; }
.question-number { color:#216c60; font-weight:750; margin-right:6px; }
.evaluation-step > h2 { border-bottom:2px solid #dce7df; padding-bottom:16px; }
.action-notice { position:fixed; right:24px; bottom:24px; max-width:min(520px,calc(100vw - 48px)); padding:16px 22px; background:#173f35; color:white; box-shadow:0 8px 35px #17304226; border-radius:12px; z-index:100; }
.restoring-position body { visibility:hidden; }
.directory-heading { display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px; }
.employee-directory { border:1px solid #dce6df;border-radius:14px; }
.employee-directory table { margin-top:0;min-width:920px; }
.employee-directory th { vertical-align:top;padding:16px 14px;background:#eff5f1; }
.employee-directory th label { margin:0 0 10px;font-size:13px; }
.employee-directory th input,.employee-directory th select { padding:10px;font-size:13px;min-width:125px;font-weight:400; }
.employee-directory th:first-child { width:28%; }
.employee-directory th:first-child input { min-width:200px; }
.fixed-filter { padding:10px 0;font-size:13px;font-weight:500; }
.filter-actions { display:flex;gap:12px;align-items:center;margin-top:10px; }
.filter-actions button { margin:0;padding:10px 14px;font-size:13px; }
.filter-actions a { font-size:12px;font-weight:500; }
.row-actions a { display:block;margin:0 0 9px;font-size:13px;white-space:nowrap; }
.directory-caption { font-size:13px;padding-bottom:70px; }
.directory-caption { padding-bottom:0; margin-bottom:0; }
.page-footer-action { display:flex;justify-content:flex-end;margin:18px 0 0; }
.page-add-action { display:inline-flex;align-items:center;gap:12px;margin:0;padding:14px 24px;border-radius:28px;box-shadow:0 6px 18px #17304219; }
.page-add-action span { font-size:24px;line-height:1; }
.assignment-summary { display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px; }
.company-logo { display:block;max-width:150px;max-height:58px;width:auto;height:auto;object-fit:contain; }
table td { vertical-align:middle; }
table td form { margin:0; }
table td form > button[type="submit"] { margin-top:0;padding:9px 13px;font-size:13px; }
table td .modal-actions button[type="submit"] { margin-top:0; }
.personal-review-link { display:inline-block;padding:16px 20px;border:1px solid #dce5e0;background:#f8fbf9;border-radius:12px;text-decoration:none; }

/* Company palette sampled from the supplied BMP: mint #35bb93, black, white. */
:root { --brand:#35bb93; --brand-ink:#102c22; --brand-dark:#116447; --brand-soft:#eaf8f1; color:#17211d; background:#f5f8f6; }
body { background:radial-gradient(ellipse at top right,#e3f6ec 0,transparent 48%),#f5f8f6; }
a,.brand,.question-number { color:var(--brand-dark); }
button,.top-navigation a[aria-current="page"] { background:var(--brand);color:var(--brand-ink); }
button:hover,.top-navigation a[aria-current="page"]:hover { background:#2ea680;color:#10261d; }
.secondary,.status-badge,.role-pill { background:#e4f5ed;color:#14503b; }
.secondary:hover { background:#d1eddf;color:#14503b; }
button.danger { background:#963536;color:#fff; }
button.danger:hover { background:#78292b;color:#fff; }
.modal-close { background:#e4f5ed;color:#14503b; }
.score-summary,.invitation,.success,.access-notice { background:var(--brand-soft);color:#174b37;border-color:#b4dcc8; }
.goal-card,.question-card { background:#f6fbf8;border-color:#c8dfd1; }
.goal-card legend,.employee-directory th { background:#edf7f1;border-color:#c8dfd1; }
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible { outline-color:#14835c; }
progress,.department-choices input { accent-color:#167b55; }
.notification-link { display:inline-flex;align-items:center;gap:12px;padding:12px 16px;background:#eff9f3;border:1px solid #c8e3d3;border-radius:12px;text-decoration:none;font-weight:600; }
.login-options { display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:30px 0; }
.login-options a { display:block;padding:26px;border:2px solid #cee5d8;border-radius:16px;text-decoration:none;background:#f6fbf8; }
.login-options a:hover { border-color:var(--brand);background:#eaf8f1; }
.login-options strong { display:block;font-size:21px;color:#163e2d;margin-bottom:12px; }
.login-options span { display:block;color:#52695b;line-height:1.6; }
.access-notice { padding:16px;border-radius:12px; }
.inline-check { width:auto;vertical-align:middle;accent-color:#167b55; }
.preview-banner button { color:white; }
.followup-links { display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 28px; }
.followup-links a { display:flex;align-items:center;gap:10px;padding:12px 16px;border:1px solid #cee5d8;border-radius:12px;background:#f7fcf9;text-decoration:none;font-size:13px; }
.followup-links strong { font-size:21px;color:#153f2c; }
@media(max-width:650px){.login-options{grid-template-columns:1fr}}
.table-action { margin:0;padding:9px 12px;font-size:13px; }
.add-employee-fab { position:fixed;right:30px;bottom:28px;z-index:25;box-shadow:0 8px 28px #17304233;border-radius:30px;display:flex;gap:12px;align-items:center;margin:0;padding:16px 25px; }
.add-employee-fab span { font-size:24px;line-height:1; }
.employee-modal { width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:30px;border:1px solid #cfddd5;border-radius:20px;box-shadow:0 24px 80px #102a3440;overflow:auto;color:#182d36;background:#fff; }
.employee-modal::backdrop { background:#122b35a6; }
.modal-heading { display:flex;justify-content:space-between;align-items:flex-start;gap:20px; }
.modal-heading small { font-size:10px;letter-spacing:1.5px;font-weight:700;color:#216c60; }
.modal-heading h2 { margin:10px 0 0;font-size:28px; }
.modal-close { background:#edf3ef;color:#245446;margin:0;padding:6px 12px;font-size:24px;line-height:1.2; }
.modal-close:hover { background:#dce7e1; }
.modal-actions { display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #e2e9e5;margin-top:26px;padding-top:20px; }
.modal-actions button { margin:0; }
.employee-modal-open { overflow:hidden; }
@media(max-width:650px){.employee-modal{padding:22px 18px;max-height:calc(100dvh - 24px)}.add-employee-fab{right:18px;bottom:18px;padding:14px 20px}.directory-heading{align-items:flex-start}.directory-heading p{font-size:14px}}
.card { margin: 0; padding: 38px; border-radius: 22px; box-shadow: 0 16px 48px #17304206; }
.form-title { margin-top: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -1px; }
.dashboard-intro { max-width: 700px; margin-bottom: 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 28px 0 36px; }
.stats-grid article { padding: 20px 24px; border: 1px solid #e1e8e5; border-radius: 14px; background: #fbfcfb; }
.stats-grid article span { display: block; font-size: 13px; color: #60736e; }
.stats-grid article strong { display: block; margin-top: 8px; font-size: 32px; color: #1b493e; }
.dashboard-modules { grid-template-columns: repeat(3,1fr); }
.module-links a { padding: 24px; background: white; transition: border-color .15s, background .15s; }
.module-links a strong { font-size: 21px; margin-top: 12px; }
.module-links a small { font-size: 10px; letter-spacing: 1.3px; font-weight: 700; color: #6d8178; }
.module-links a span { font-size: 14px; min-height: 44px; }
.module-links a b { display: block; margin-top: 20px; font-size: 13px; }
.module-links a.featured-module { background: #174d43; border-color: #174d43; color: white; }
.module-links a.featured-module span, .module-links a.featured-module small { color: #c4ddd5; }
.module-links a.featured-module:hover { background: #103c34; }
.activity-list { border: 1px solid #e1e8e5; border-radius: 14px; overflow: hidden; }
.activity-list > a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid #edf0ee; text-decoration: none; }
.activity-list > a:hover { background: #f4f8f5; }
.activity-list > a:last-child { border-bottom: 0; }
.empty-state { padding: 24px; text-align: center; background: #fafcfb; border-radius: 12px; }
.empty-state p { font-size: 14px; }
.secondary { background: #eaf0ed; color: #245446; }
.secondary:hover { background: #dce7e1; }
.danger { background: #9c3435; }
.danger:hover { background: #7e292a; }
.danger-link { color: #9c3435; }
.preview-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; margin: 0 0 20px; background: #fff4d7; border: 1px solid #edcf83; border-radius: 14px; color: #694f14; }
.preview-banner span { flex: 1; font-size: 14px; }
.preview-banner button { margin: 0; padding: 10px 16px; background: #694f14; }
.is-preview form[method="post"]:not(.preview-exit) button[type="submit"] { display: none; }
@media(max-width:900px) { .dashboard-modules { grid-template-columns:1fr 1fr; } }
@media(max-width:650px) { .welcome { padding:20px 14px 40px; } .card { padding:24px 18px; } .stats-grid { gap:8px; } .stats-grid article { padding:14px 10px; } .stats-grid article strong { font-size:26px; } .stats-grid article span { font-size:11px; } .dashboard-modules { grid-template-columns:1fr; } .brand { font-size:14px; } .brand small { font-size:9px; } .role-pill { font-size:11px; } }

/* Review readability and dashboard notification center. */
.card:has(> .notification-bell) { position:relative; }
.card:has(> .notification-bell) > .form-title { padding-right:84px; }
.notification-bell { position:absolute; top:28px; right:28px; display:inline-flex; align-items:center; justify-content:center; gap:7px; min-width:60px; min-height:46px; padding:10px; border:1px solid #b8dfd0; border-radius:14px; background:#eff9f5; color:#116447; }
.notification-count { border-radius:999px; background:#116447; color:white; min-width:21px; padding:3px 5px; font-size:12px; }
.notification-modal { width:min(960px,calc(100vw - 32px)); }
.presentation-section { padding:24px; border:1px solid #cfdfd9; border-radius:16px; background:#fff; margin-block:28px; }
.presentation-section > h2 { padding:0 0 18px; margin:0 0 24px; border-bottom:3px solid #35bb93; color:#123d31; font-size:24px; }
.review-question,.presentation-section .goal-card { border:1px solid #c7dcd3; border-radius:12px; background:#f6faf8; padding:22px; margin:18px 0; }
.review-question-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid #ccded5; padding-bottom:16px; margin-bottom:18px; }
.review-question-heading h4 { margin:0; font-size:19px; }
.review-group-title { font-size:20px; margin:28px 0 12px; color:#116447; }
.review-question > h3 { font-size:14px; color:#285648; margin:22px 0 7px; }
.review-question > h3:first-child { margin-top:0; }
.review-question > p { margin:0; padding-bottom:18px; border-bottom:1px solid #dbe7e1; color:#172c26; line-height:1.65; }
.review-question > p:last-child { padding-bottom:0; border-bottom:0; }
.review-goal-title { margin:0 0 20px; padding-bottom:16px; border-bottom:2px solid #35bb93; font-size:21px; color:#123d31; }
.smart-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.review-field { padding:18px; border:1px solid #d5e3dc; border-radius:9px; background:#fff; min-width:0; }
.review-field h3 { margin:0 0 12px; color:#285648; font-size:14px; padding-bottom:10px; border-bottom:1px solid #e1eae5; }
.review-field p { margin:0; color:#172c26; line-height:1.65; overflow-wrap:anywhere; }
@media(max-width:640px) { .smart-fields { grid-template-columns:1fr; } .presentation-section { padding:16px; } .notification-bell { right:16px; top:20px; } }

/* Consistent evaluation actions and share-code dialog. */
.evaluation-row-actions > a,.evaluation-row-actions > button { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; width:auto; max-width:100%; min-height:34px; margin:3px 5px 3px 0; padding:8px 12px; border:1px solid #cbded5; border-radius:8px; background:#eff7f3; color:#164d3b; text-decoration:none; font-size:13px; font-weight:600; line-height:1.3; vertical-align:middle; }
.evaluation-row-actions > button[data-open-dialog^="evaluation-action-"] { background:#fff6ed; border-color:#e3c6a9; color:#75441a; }
.evaluation-row-actions > button:disabled { opacity:.55; cursor:not-allowed; }
.share-code-details { display:grid; grid-template-columns:auto 1fr; gap:12px 20px; padding:20px; background:#eff8f3; border:1px solid #cbded5; border-radius:12px; }
.share-code-details dt { font-weight:600; }.share-code-details dd { margin:0; overflow-wrap:anywhere; }.share-code-value { font-size:24px; font-weight:700; letter-spacing:2px; }

.section-score { display:flex; flex-direction:column; gap:8px; padding:18px; margin-top:20px; border:1px solid #bbdccd; border-radius:10px; background:#edf8f2; }
.final-evaluation-score { border:2px solid #35bb93; }.final-score-value { font-size:36px; font-weight:700; color:#123d31; margin:20px 0; }

.review-group-tabs { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; width:fit-content; max-width:100%; margin:0 auto 28px; padding:7px; background:#f0f6f3; border:1px solid #d4e3db; border-radius:14px; }
.review-group-tabs a { display:flex; align-items:center; justify-content:center; min-height:44px; padding:10px 22px; border-radius:10px; color:#164d3b; font-weight:600; text-decoration:none; text-align:center; box-sizing:border-box; }
.review-group-tabs a[aria-current="page"] { background:#35bb93; color:#102c22; }
.review-group-tabs a:hover { background:#dceee5; }.review-group-tabs a[aria-current="page"]:hover { background:#2da982; }
.review-group-tabs a:focus-visible { outline:2px solid #116447; outline-offset:3px; }
@media(max-width:480px) { .review-group-tabs { width:100%; box-sizing:border-box; }.review-group-tabs a { flex:1; padding:10px 12px; } }

.template-editor { border:0; padding:0; min-width:0; }.template-editor-row { border:1px solid #cbded5; padding:20px; margin:18px 0; border-radius:12px; background:#f7faf8; min-width:0; }.template-editor-row legend { font-weight:700; padding:0 7px; }.template-row-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }.template-row-actions button { margin:0; }.template-create-card { border:1px solid #cbded5; border-radius:12px; padding:24px; }.template-editor h2 { margin-top:36px; }.template-editor input[readonly] { background:#edf3ef; color:#41584c; }.template-editor[disabled] { opacity:.85; }

/* Persistent evaluation summary: one set of score controls, responsive layout. */
.evaluation-editor-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:28px; align-items:start; }
.evaluation-editor-layout > .evaluation-main { grid-column:1; grid-row:1; min-width:0; }
.evaluation-editor-layout > .score-summary { grid-column:2; grid-row:1; position:sticky; top:20px; align-self:start; margin:0; padding:20px; min-width:0; max-height:calc(100dvh - 40px); overflow:auto; overscroll-behavior:contain; }
.score-panel-header h2 { font-size:19px; margin:0 0 14px; }.score-panel-glance { display:flex; flex-direction:column; gap:5px; }.score-panel-glance strong { font-size:25px; color:#123d31; }.score-panel-glance span { font-size:13px; color:#285648; }
#score-compact-bar { height:10px; margin:12px 0 0; }#score-panel-details { border-top:1px solid #bddbcd; margin-top:16px; padding-top:4px; }#score-panel-details p { font-size:14px; line-height:1.55; margin:14px 0; }#score-panel-details small { display:block; font-size:12px; line-height:1.5; }#score-panel-details label { font-size:13px; }
.evaluation-main #step-position { scroll-margin-top:24px; }
@media(max-width:1099px) {
 .evaluation-editor-layout { display:block; }.evaluation-editor-layout > .score-summary { position:static; max-height:none; margin:0 0 24px; }
 .evaluation-editor-layout > .score-summary.score-panel-ready { position:fixed; inset:auto 12px max(12px,env(safe-area-inset-bottom)); z-index:40; margin:0; padding:14px 18px; border-radius:16px; box-shadow:0 -4px 28px #123d3126; max-height:calc(100dvh - 32px); overflow:hidden; }
 .score-panel-ready .score-panel-header { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:12px; align-items:center; }.score-panel-ready .score-panel-header h2 { grid-column:1; font-size:14px; margin:0 0 4px; }.score-panel-ready .score-panel-glance { grid-column:1; flex-direction:row; flex-wrap:wrap; align-items:baseline; gap:4px 12px; }.score-panel-ready .score-panel-glance strong { font-size:19px; }.score-panel-ready .score-panel-glance span { font-size:12px; }
 .score-panel-ready #score-panel-toggle { grid-column:2; grid-row:1 / 3; margin:0; padding:10px 12px; min-height:44px; font-size:12px; }.score-panel-ready #score-compact-bar { grid-column:1 / -1; width:100%; height:7px; margin-top:10px; }
 .score-panel-ready #score-panel-details { max-height:45dvh; overflow:auto; overscroll-behavior:contain; padding-right:4px; }.welcome:has(.score-panel-ready) { padding-bottom:calc(190px + env(safe-area-inset-bottom)); }
}
@media print { .evaluation-editor-layout { display:block; }.evaluation-editor-layout > .score-summary.score-panel-ready { position:static; max-height:none; overflow:visible; }#score-panel-details[hidden] { display:block!important; }#score-panel-toggle { display:none; } }

/* Compact template cards; full controls are edited in a native dialog. */
.template-editor-ready .template-editor-row { position:relative; margin:12px 0; padding:18px 54px 18px 20px; border-radius:12px; min-width:0; }.template-editor-ready .template-editor-row > legend { display:none; }
.template-card-summary { display:flex; align-items:center; justify-content:space-between; gap:20px; }.template-card-summary[hidden] { display:none; }.template-card-copy { min-width:0; flex:1; }.template-card-copy h3 { margin:0 0 8px; font-size:17px; color:#123d31; overflow-wrap:anywhere; }.template-card-copy p { margin:0; font-size:13px; color:#416153; }.template-card-copy [data-card-number] { color:#547166; }
.template-card-actions { display:flex; align-items:center; gap:7px; flex-shrink:0; }.template-card-actions button { margin:0; min-width:42px; min-height:42px; padding:8px 12px; }.template-card-actions [data-editor-edit] { min-width:70px; }.template-card-remove { position:absolute; right:7px; top:7px; padding:0; margin:0; width:36px; height:36px; border-radius:50%; background:transparent; color:#8c3838; font-size:25px; line-height:1; }.template-card-remove:hover { background:#fbeaea; }.template-card-remove:disabled { opacity:.35; cursor:not-allowed; }
[data-editor-container] { overflow-anchor:none; }.template-card-actions button:disabled { opacity:.4; cursor:not-allowed; }
.template-field-modal { width:min(720px,calc(100vw - 32px)); }.template-field-grid > [data-editor-fields] { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 20px; }.template-field-grid label { min-width:0; margin:0; }.template-field-grid label:has([name]),.template-field-grid label:has(input[readonly]) { grid-column:1 / -1; }.template-field-grid input:not([type="checkbox"]),.template-field-grid select { margin-top:8px; }.template-field-grid label:has(input[type="checkbox"]) { display:flex; align-items:center; gap:8px; padding:12px; border:1px solid #d4e2da; border-radius:8px; background:#f4f9f6; }.template-field-grid .inline-check { margin:0; }.template-field-grid label:has(input[readonly]) input { background:#edf3ef; color:#41584c; }
@media(max-width:650px) { .template-card-summary { align-items:flex-start; flex-direction:column; gap:14px; }.template-editor-ready .template-editor-row { padding:18px 42px 18px 16px; }.template-card-actions { align-self:flex-end; }.template-card-remove { width:40px; height:40px; right:3px; top:3px; }.template-field-grid > [data-editor-fields] { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .template-editor-row { animation:none!important; transition:none!important; } }

.template-field-grid label.template-field-wide { grid-column:1 / -1; }.template-field-modal .modal-heading h2 { min-width:0; overflow-wrap:anywhere; font-size:21px; }
