/* Workspace is the default presentation; legacy templates keep their own rules. */
.ds-workspace { --rail-width:82px; --ds-header-height:57px; --ds-status-height:32px; min-height:100dvh; background:#fff; color:#111827; }
.ds-workspace .ds-workspace-bar { position:sticky; top:0; z-index:30; }
.ds-workspace-bar .topbar { box-shadow:0 3px 12px #2581ac20; }
.ds-workspace-bar .c2-bar-title strong { font-size:19px; }
.ds-workspace-bar .c2-bar-right { gap:14px; }
.ds-workspace-library { color:white; display:flex; align-items:center; gap:8px; font-size:13px; font-weight:650; text-decoration:none; }
.ds-workspace-library .ds-icon { width:20px; height:20px; }
.ds-workspace .ds-layout-menu { color:white; }
.ds-workspace .ds-layout-menu summary { min-height:36px; padding:6px 10px; background:#ffffff20; border:1px solid #ffffff55; border-radius:8px; }
.ds-workspace .ds-layout-options { z-index:60; }
.ds-workspace-frame { display:grid; grid-template-columns:var(--rail-width) minmax(0,1fr) var(--rail-width); min-height:calc(100dvh - var(--ds-header-height) - var(--ds-status-height)); align-items:start; }
/* Full-height rail surfaces meet the footer; only their navigation sticks to the viewport. */
.ds-workspace .ds-rail-surface { align-self:stretch; min-width:0; background:#edf7fc; border-right:2px solid #9bc7da; box-shadow:inset -1px 0 #fff; }
.ds-workspace .ds-toolrail { position:sticky; top:var(--ds-header-height); height:calc(100dvh - var(--ds-header-height) - var(--ds-status-height)); max-height:calc(100dvh - var(--ds-header-height) - var(--ds-status-height)); overflow-y:auto; scrollbar-width:thin; padding:0 5px 10px; display:flex; flex-direction:column; gap:4px; }
.ds-workspace .ds-action-rail-surface { border-right:0; border-left:2px solid #9bc7da; box-shadow:inset 1px 0 #fff; }
.ds-workspace .ds-toolrail a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-height:62px; padding:7px 3px; border:1px solid transparent; border-radius:7px; flex-shrink:0; text-decoration:none; font-size:10px; line-height:1.3; text-align:center; color:#203e51; transition:background .2s,border-color .2s; }
.ds-workspace .ds-toolrail .ds-icon-tile { width:32px; height:32px; border-radius:8px; flex:none; }
.ds-workspace .ds-toolrail .ds-icon { width:22px; height:22px; }
.ds-workspace .ds-main { max-width:none; width:100%; padding:18px; margin:0; min-width:0; }
.ds-workspace-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; align-items:start; }
.ds-workspace-introduction { grid-column:span 2; min-width:0; padding:0; }
.ds-workspace .ds-hero { display:flex; flex-direction:column; align-items:flex-start; gap:12px; margin:0; padding:0; }
.ds-workspace .ds-breadcrumb { margin:0 0 12px; font-size:11px; flex-wrap:wrap; }
.ds-workspace .ds-hero h1 { font-size:clamp(32px,3.2vw,50px); gap:12px; flex-wrap:wrap; }
.ds-workspace .ds-family { font-size:12px; padding:6px 10px; font-weight:500; }
.ds-workspace .ds-lead { font-size:15px; line-height:1.6; margin:12px 0 0; }
.ds-workspace .ds-reference { width:fit-content; max-width:100%; margin:0; padding:11px 14px; gap:12px; font-size:12px; }
.ds-workspace .ds-reference>div { display:grid; grid-template-columns:auto auto; gap:4px 14px; align-items:center; }
.ds-workspace .ds-reference strong,.ds-workspace .ds-reference a { grid-column:1/-1; }
.ds-workspace .ds-reference p { margin:0; }
.ds-workspace .ds-definition { width:100%; max-width:none; padding:calc(11px - .375em) 0 0; margin:14px 0 0; font-size:14px; line-height:1.75; text-align:justify; text-wrap:pretty; }
.ds-workspace .ds-definition p { margin:0; line-height:inherit; word-spacing:normal; }
.ds-workspace .ds-resources { display:grid; grid-template-columns:repeat(var(--resource-count),minmax(0,1fr)); margin:16px 0; padding:0 0 16px; gap:12px; border:0; border-bottom:1px solid #c9e3ef; }
.ds-workspace .ds-resource { min-width:0; padding:12px; gap:10px; }
.ds-workspace .ds-resource strong { font-size:12px; }
.ds-workspace .ds-resource small { font-size:10px; }
.ds-workspace .ds-resource .ds-icon-tile { width:32px; height:32px; }
.ds-workspace .ds-visuals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:0; min-width:0; }
.ds-workspace .ds-visual { min-width:0; display:flex; flex-direction:column; height:clamp(290px,33dvh,320px); margin:0; }
.ds-workspace .ds-visual>header { display:flex; flex-wrap:nowrap; align-items:center; gap:7px; height:46px; min-height:46px; padding:7px 10px; }
.ds-workspace .ds-visual>header h2 { flex:1 1 auto; min-width:0; font-size:13px; gap:7px; white-space:nowrap; }
.ds-workspace .ds-visual>header h2 .ds-icon-tile { width:28px; height:28px; flex:none; }
.ds-workspace .ds-visual>header .ds-segmented { position:static; transform:none; margin:0; flex:none; }
.ds-workspace .ds-visual .ds-segmented button { min-height:28px; padding:5px 7px; font-size:10px; gap:4px; }
.ds-workspace .ds-visual .ds-segmented .ds-icon { width:14px; height:14px; }
.ds-workspace .ds-visual .ds-package-full { display:none; }
.ds-workspace .ds-visual .ds-package-short { display:inline; }
.ds-workspace .ds-visual .ds-icon-button { width:27px; height:27px; flex:none; }
.ds-workspace .ds-viewport { height:auto; min-height:0; flex:1 1 auto; }
.ds-workspace .ds-visual>footer { min-height:30px; padding:6px 10px; font-size:10px; flex:none; }
.ds-workspace .ds-pin-viewport { overflow:auto; }
.ds-workspace-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 0 22px; border-bottom:1px solid #c9e5f1; margin-bottom:22px; }
.ds-workspace-heading h1 { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0; font-size:30px; }
.ds-workspace-heading h1>span:last-child { font-size:24px; font-weight:500; color:#274f67; }
.ds-workspace-heading p { margin:12px 0 0; font-size:14px; line-height:1.6; color:#344d5e; }
.ds-workspace-heading .ds-segmented { flex:none; background:#008bc5; }
.ds-workspace-content { min-width:0; }
.ds-workspace-content .ds-tab-pane { margin:0; padding:0; border:0; background:none; box-shadow:none; }
.ds-workspace-content .ds-pin-explorer { border:1px solid #c7e2ed; border-radius:14px; background:#fff; overflow:hidden; }
.ds-workspace-content .ds-tables { margin:0; }
.ds-workspace-status { display:flex; justify-content:space-between; gap:15px; padding:7px 18px; background:#e9f5fb; border-top:1px solid #c3e0ed; font-size:11px; color:#365c72; }
.ds-workspace-status>span { display:flex; align-items:center; gap:6px; }
.ds-workspace .ds-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#28cb9c; }
.ds-workspace a:focus-visible,.ds-workspace button:focus-visible { outline:2px solid #0075bb; outline-offset:3px; }
.ds-workspace #main-content:focus { outline:none; }
@media(min-width:1800px) { .ds-workspace .ds-definition { font-size:16px; } .ds-workspace .ds-resources { gap:14px; } .ds-workspace .ds-resource { padding:18px; } }
@media(max-width:1250px) { .ds-workspace-bar .c2-places { display:none; } .ds-workspace .ds-main { padding:16px; } .ds-workspace .ds-visual>header h2 .ds-icon-tile { display:none; } .ds-workspace .ds-visual .ds-segmented .ds-icon { display:none; } }
@media(max-width:1000px) { .ds-workspace-overview { grid-template-columns:repeat(2,minmax(0,1fr)); } .ds-workspace-introduction { grid-column:auto; } .ds-workspace .ds-visuals { grid-template-columns:1fr; } .ds-workspace .ds-resources { grid-template-columns:repeat(3,minmax(0,1fr)); } .ds-workspace .ds-visual { height:320px; } .ds-workspace-heading { flex-wrap:wrap; } }
@media(max-width:700px) { .ds-workspace { --rail-width:64px; } .ds-workspace-frame { grid-template-columns:var(--rail-width) minmax(0,1fr); } .ds-workspace .ds-action-rail-surface { display:none; } .ds-workspace .ds-toolrail { padding:0 3px 8px; } .ds-workspace-overview { grid-template-columns:1fr; } .ds-workspace .ds-toolrail a { font-size:9px; min-height:62px; } .ds-workspace .ds-toolrail .ds-icon-tile { width:30px; height:30px; } .ds-workspace .ds-main { padding:12px; } .ds-workspace .ds-visuals { grid-template-columns:1fr; } .ds-workspace .ds-resources { grid-template-columns:1fr; } .ds-workspace .ds-workspace-bar .c2-bar-title strong { font-size:13px; } .ds-workspace-bar .c2-bar-title small { font-size:10px; } .ds-workspace-library { display:none; } .ds-workspace-bar .ds-layout-menu summary>span { display:none; } .ds-workspace-heading h1 { font-size:26px; gap:8px; } .ds-workspace-heading h1>span:last-child { font-size:20px; } .ds-workspace-status { font-size:9px; } .ds-workspace-status>a { display:none; } .ds-workspace .ds-breadcrumb { font-size:10px; } }
@media(prefers-reduced-motion:reduce) { .ds-workspace * { scroll-behavior:auto!important; transition:none!important; } }
/* Reset the old template's subgrid and card-height rules explicitly. */
.ds-page.ds-workspace .ds-visuals { grid-row:auto; grid-template-rows:none; grid-auto-rows:auto; align-content:start; }
.ds-page.ds-workspace[data-layout] .ds-visual { height:clamp(290px,33dvh,320px); }
.ds-workspace .ds-layout-options>a { display:flex; align-items:center; gap:10px; padding:11px 9px; border-radius:8px; color:#182e3c; text-decoration:none; }
.ds-workspace-heading .ds-segmented button { color:white; }
.ds-workspace-heading .ds-segmented button[aria-pressed=true] { color:#007bbb; }
@media(max-height:900px) and (min-width:1001px) { .ds-workspace .ds-hero { gap:12px; } .ds-workspace .ds-resources { margin-top:16px; } }
@media(max-width:1000px) { .ds-page.ds-workspace[data-layout] .ds-visual { height:320px; } }
@media(max-width:1250px) {
    .ds-workspace .c2.c3.c2-icons .topbar nav.c2-places { display:none; }
    .ds-workspace .c2.c3.c2-icons .topbar-inner { grid-template-columns:minmax(0,1fr) auto; }
}
@media(max-width:700px) {
    .ds-workspace .c2.c3.c2-icons .topbar-inner { height:58px; grid-template-columns:minmax(0,1fr) auto; gap:6px; }
    .ds-workspace .c2.c3.c2-icons .c2-bar-title { display:grid; margin-left:10px; }
    .ds-workspace .c2.c3.c2-icons .c2-bar-title strong { font-size:12px; white-space:normal; line-height:1.2; }
    .ds-workspace .c2.c3.c2-icons .c2-bar-title small { font-size:9px; letter-spacing:0; line-height:1.3; }
    .ds-workspace .c2.c3.c2-icons .c2-bar-left { min-width:0; }
    .ds-workspace .c2.c3.c2-icons .brand { flex-shrink:0; }
    .ds-workspace .ds-layout-menu summary { padding:5px 7px; gap:4px; }
}
.ds-page.ds-workspace .ds-workspace-content .ds-insights { grid-row:auto; grid-template-rows:auto; margin:0; }
.ds-page.ds-workspace .ds-workspace-content .ds-tab-pane { padding:0; }
.ds-page.ds-workspace .ds-workspace-content .ds-insights,
.ds-page.ds-workspace .ds-workspace-content .ds-tables,
.ds-page.ds-workspace .ds-workspace-content .ds-applications { padding:0; }

/* Rail caps meet the shared header edge; no negative offsets or header overrides. */
.ds-workspace .ds-rail-caption { display:block; flex:none; margin:0 -5px 3px; padding:9px 2px 7px; border-top:3px solid #08a7e7; border-bottom:1px solid #c2e3ef; background:linear-gradient(#ddf4fd,#ecf8fe); color:#3c708e; font-size:8px; font-weight:700; letter-spacing:1px; text-align:center; text-transform:uppercase; }
.ds-workspace .ds-resource>span:not(.ds-icon-tile) { min-width:0; font-size:12px; }
.ds-page.ds-workspace .ds-workspace-showcase>[data-view=model] { align-self:center; }
.ds-page.ds-workspace .ds-workspace-detail-views { grid-row:auto; }
/* One shared header grid keeps titles, switches and actions on the same baseline. */
.ds-page.ds-workspace .ds-visual { border-radius:8px; }
.ds-page.ds-workspace .ds-visual>header { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; height:46px; min-height:46px; padding:0 10px; gap:8px; }
.ds-page.ds-workspace .ds-visual>header:has(.ds-segmented) { grid-template-columns:auto minmax(0,1fr) 28px; }
.ds-page.ds-workspace .ds-visual>header h2 { display:flex; align-items:center; gap:7px; margin:0; font-size:13px; line-height:1.2; white-space:nowrap; }
.ds-page.ds-workspace .ds-visual>header .ds-icon-tile { width:28px; height:28px; border-radius:7px; }
.ds-page.ds-workspace .ds-visual>header .ds-segmented { justify-self:center; align-self:center; padding:2px; border-radius:8px; gap:2px; }
.ds-page.ds-workspace .ds-visual>header .ds-segmented button { min-height:28px; padding:5px 7px; line-height:1.2; font-size:10px; border-radius:6px; gap:4px; }
.ds-page.ds-workspace .ds-visual>header .ds-segmented .ds-icon { width:14px; height:14px; }
.ds-page.ds-workspace .ds-visual>header .ds-icon-button { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; margin:0; padding:4px; border-radius:6px; }
.ds-page.ds-workspace .ds-visual>header .ds-card-actions { display:flex; align-items:center; gap:6px; }
/* Fill unused desktop height with the artwork, without cropping long content. */
@media(min-width:1001px) {
    .ds-workspace .ds-workspace-main[data-overview=true] { display:grid; grid-template-rows:auto auto minmax(290px,1fr); min-height:calc(100dvh - var(--ds-header-height) - var(--ds-status-height)); }
    .ds-workspace .ds-workspace-overview { flex:none; align-items:stretch; }
    .ds-page.ds-workspace[data-layout] .ds-workspace-showcase>[data-view=model] { height:auto; min-height:290px; align-self:stretch; }
    .ds-page.ds-workspace .ds-workspace-detail-views { min-height:0; grid-auto-rows:minmax(290px,1fr); align-content:stretch; }
    .ds-page.ds-workspace[data-layout] .ds-workspace-detail-views>.ds-visual { height:auto; min-height:290px; contain:size; }
    .ds-workspace-main[data-overview=true]>.ds-resources { flex:none; }
}
@media(max-width:700px) {
    .ds-workspace .ds-rail-caption { margin-left:-3px; margin-right:-3px; font-size:7px; letter-spacing:.7px; }
    .ds-workspace .ds-reference>div { grid-template-columns:1fr; }
    .ds-workspace .ds-reference>div>span { grid-column:1; }
}
/* Quiet glass selection and a crisp hover highlight, without moving the navigation. */
.ds-workspace .ds-toolrail a { position:relative; transition:background-color .18s,border-color .18s,box-shadow .18s,color .18s; }
.ds-workspace .ds-toolrail a:hover { background:#fffffff0; border-color:#80c3dd; box-shadow:0 2px 7px #2c73951a; color:#005f8f; }
.ds-workspace .ds-toolrail a[aria-current=page] { background:#ffffffdc; border-color:#a2cfdf; box-shadow:inset 3px 0 #00a8df,0 2px 6px #28799b14; color:#005d89; font-weight:650; }
.ds-workspace .ds-toolrail a[aria-current=page]:hover { background:#fff; border-color:#48acd2; box-shadow:inset 3px 0 #0098d2,0 3px 9px #28799b24; }
.ds-workspace .ds-toolrail a[aria-current=page] .ds-icon-tile { background:#effaff; border-color:#90cce2; box-shadow:inset 0 1px #fff; }
.ds-workspace .ds-toolrail a:hover .ds-icon-tile { border-color:#70bfdc; box-shadow:0 2px 5px #2185ac1a; }
/* Section identity uses the same cyan/blue header language as the overview cards. */
.ds-workspace .ds-section-banner { padding:20px 22px; margin:0 0 18px; border:1px solid #1aafe0; border-radius:8px; background:linear-gradient(112deg,#00badc,#0798ee); color:white; box-shadow:inset 0 1px #ffffff70,0 4px 14px #248fb21a; align-items:center; }
.ds-section-heading-copy { display:flex; align-items:center; gap:16px; min-width:0; }
.ds-section-heading-copy>.ds-icon-tile { width:52px; height:52px; border-radius:11px; background:linear-gradient(145deg,#fff,#d8f2ff); box-shadow:inset 0 1px white,0 3px 9px #0072a72b; }
.ds-section-heading-copy>.ds-icon-tile .ds-icon { width:32px; height:32px; }
.ds-workspace .ds-section-banner h1 { display:block; margin:2px 0 5px; color:#fff; font-size:30px; letter-spacing:-.6px; line-height:1.2; }
.ds-workspace .ds-section-banner h1>span { color:#fff; font-size:inherit; font-weight:650; }
.ds-section-eyebrow { font-size:10px; letter-spacing:1px; font-weight:650; text-transform:uppercase; color:#e8faff; }
.ds-workspace .ds-section-banner p { margin:0; font-size:12px; line-height:1.6; color:#f2fcff; max-width:780px; }
.ds-package-control { flex:none; min-width:0; }
.ds-package-control-label { display:block; margin:0 0 6px 3px; font-size:10px; letter-spacing:.6px; font-weight:650; color:#ecfbff; }
.ds-package-selector { display:flex; flex-wrap:wrap; padding:4px; gap:4px; border:1px solid #ffffff77; border-radius:10px; background:#0075b07a; box-shadow:inset 0 1px 4px #006e9b24; }
.ds-package-selector button { display:flex; align-items:center; gap:9px; padding:8px 10px; border:1px solid transparent; border-radius:7px; background:transparent; color:#fff; text-align:left; transition:background .18s,box-shadow .18s; }
.ds-package-selector button>span:nth-child(2) { display:grid; gap:2px; }
.ds-package-selector strong { font-size:12px; line-height:1.2; }
.ds-package-selector small { font-size:10px; opacity:.9; }
.ds-package-glyph { display:grid; place-items:center; width:29px; height:29px; border:1px solid #ffffff66; border-radius:6px; background:#ffffff24; }
.ds-package-glyph .ds-icon { width:21px; height:21px; }
.ds-package-check { width:13px; height:13px; opacity:0; }
.ds-package-check .ds-icon { width:13px; height:13px; }
.ds-package-selector button:hover { background:#ffffff30; }
.ds-package-selector button[aria-pressed=true] { color:#006aa3; background:linear-gradient(#fff,#edfaff); border-color:#fff; box-shadow:0 2px 5px #005a8426; }
.ds-package-selector button[aria-pressed=true] .ds-package-glyph { background:#e6f7ff; border-color:#a8d9ef; }
.ds-package-selector button[aria-pressed=true] .ds-package-check { opacity:1; color:#009680; }
