.crm-studio {
    --ink: #1d2738;
    --muted: #586779;
    position: relative;
    isolation: isolate;
    container-type: inline-size;
    width: 100%;
    min-width: 0;
    font-family: Inter, "Segoe UI", sans-serif;
    font-size: .82rem;
    line-height: 1.32;
    text-align: left;
}
.crm-studio *, .crm-studio *::before, .crm-studio *::after { box-sizing: border-box; }
.crm-studio button { font: inherit; letter-spacing: normal; cursor: pointer; }
.crm-studio button:focus-visible { outline: .18rem solid #319bff; outline-offset: .16rem; }
.crm-studio .studio-picker {
    display: flex;
    gap: .15rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 .85rem auto;
    padding: .22rem;
    border: 1px solid #556780;
    border-radius: 2rem;
    background: #132137;
}
.studio-picker button {
    min-height: 2rem;
    padding: .28rem .85rem;
    border: 0;
    border-radius: 2rem;
    background: transparent;
    color: #d2dded;
    font-size: .76rem;
    font-weight: 600;
}
.studio-picker button:hover { background: #253952; }
.studio-picker button[aria-selected="true"] { background: #e9f0fc; color: #182942; }
.studio-screen {
    overflow: hidden;
    border: 1px solid #6b7c95;
    border-radius: 1.05rem;
    background: #eef2f6;
    box-shadow: 0 1.7rem 4rem -.8rem #010612aa, 0 0 0 .31rem #8398b617;
    color-scheme: light;
    color: var(--ink);
}
.studio-screen .studio-panel[hidden] { display: none; }
.studio-panel { min-height: 23rem; }
.studio-bar, .studio-brand, .studio-user, .studio-view, .studio-assigned,
.studio-heading, .studio-lane-title, .studio-actionbar, .studio-action, .studio-caption {
    display: flex;
    align-items: center;
}
.studio-bar {
    justify-content: space-between;
    gap: .55rem;
    min-height: 2.8rem;
    padding: .5rem 1.2rem;
    background: #202f44;
    color: #f6f9ff;
}
.studio-brand { gap: .55rem; font-size: .84rem; font-weight: 700; }
.studio-mark {
    display: inline-block;
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid #d3e5ffbb;
    border-radius: .25rem;
    background: repeating-linear-gradient(125deg, #d4eaff 0 .16rem, transparent .17rem .35rem), #456b9e;
}
.studio-user { gap: .4rem; color: #dce5ef; font-size: .65rem; }
.studio-user > i, .studio-live-dot { width: .35rem; height: .35rem; background: #49d5ab; border-radius: 50%; }
.studio-user b {
    display: grid;
    place-items: center;
    width: 1.56rem;
    height: 1.56rem;
    border: 1px solid #9fb0c3;
    border-radius: 50%;
    color: #f6f8ff;
    font-size: .58rem;
}
.studio-content { padding: 1.2rem; }
.studio-heading { justify-content: space-between; gap: .6rem; margin: 0 0 1.1rem; }
.studio-heading small, .studio-actionbar small {
    display: block;
    margin: 0 0 .2rem;
    font-size: .66rem;
    line-height: 1.3;
    color: var(--muted);
}
.studio-heading h2 {
    margin: 0;
    color: var(--ink);
    font: 700 clamp(1.3rem, 4.6cqw, 2rem)/1.06 "Space Grotesk", Inter, sans-serif;
    letter-spacing: -.045em;
}
.studio-view {
    gap: .35rem;
    padding: .33rem .55rem;
    border: 1px solid #d2d9e3;
    border-radius: .35rem;
    background: white;
    color: #40526a;
    font-size: .64rem;
    font-weight: 650;
}
.studio-view i { width: .65rem; height: .55rem; background: repeating-linear-gradient(90deg,#657eaa 0 .12rem,transparent .13rem .22rem); }
.studio-lanes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .52rem; }
.studio-lane {
    min-width: 0;
    padding: .46rem;
    border: 1px solid #d6dde5;
    border-radius: .62rem;
    background: #e5eaf1;
}
.studio-lane-title { gap: .28rem; margin: .1rem .03rem .53rem; color: #33445b; font-size: clamp(.62rem,1.93cqw,.78rem); font-weight: 700; }
.studio-lane-title i { flex: none; width: .4rem; height: .4rem; border-radius: 50%; background: #6686e7; }
.studio-lane:nth-child(2) .studio-lane-title i { background: #ca8b39; }
.studio-lane:nth-child(3) .studio-lane-title i { background: #2b987b; }
.studio-lane-title b { margin-left: auto; color: #596775; font-size: .62rem; font-weight: 600; }
.studio-ticket {
    position: relative;
    min-width: 0;
    padding: .58rem .49rem .54rem;
    border: 1px solid #d6dde6;
    border-radius: .45rem;
    background: #fff;
    box-shadow: 0 .13rem .18rem #1d293709;
}
.studio-ticket + .studio-ticket { margin-top: .4rem; }
.studio-ticket.studio-tracked { border-color: #799be9; box-shadow: 0 0 0 1px #c3d4fa, 0 .15rem .5rem #395c9e12; }
.studio-origin {
    display: inline-block;
    padding: .16rem .34rem;
    margin-bottom: .5rem;
    border-radius: .22rem;
    background: #e8edff;
    color: #3d50a0;
    font-size: .59rem;
    font-weight: 650;
}
.studio-web { background: #e9eef3; color: #445b71; }
.studio-visit { background: #fff0d7; color: #84520c; }
.studio-won { background: #dcf5e9; color: #21654c; }
.studio-ticket > strong, .studio-ticket > small, .studio-actionbar strong { display: block; }
.studio-ticket > strong { color: var(--ink); font-size: clamp(.7rem,2.05cqw,.88rem); }
.studio-ticket > small { margin-top: .18rem; color: var(--muted); font-size: .65rem; }
.studio-assigned { gap: .3rem; margin-top: .6rem; color: var(--muted); font-size: .61rem; }
.studio-assigned i { display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #e1eaf9; color: #344f7c; font: 650 .49rem/1 Inter,sans-serif; }
.studio-actionbar { justify-content: space-between; gap: .5rem; margin-top: .8rem; padding: .65rem .75rem; border: 1px solid #cddaf3; border-radius: .52rem; background: #f6f8ff; }
.studio-actionbar small { font-size: .62rem; }
.studio-actionbar strong { color: var(--ink); font-size: .83rem; }
.crm-studio .studio-action {
    justify-content: center;
    gap: .4rem;
    min-height: 2.15rem;
    padding: .45rem .65rem;
    border: 1px solid transparent;
    border-radius: .4rem;
    background: #254fa7;
    color: white;
    font-size: .7rem;
    font-weight: 650;
}
.studio-action:hover { filter: brightness(1.16); }
.studio-action span { font-size: .9rem; }
.studio-caption { flex-wrap: wrap; gap: .3rem .45rem; margin-top: .72rem; color: #c3d0df; font-size: .73rem; }
.studio-caption a { margin-left: auto; padding: .3rem 0; color: #b6eafb; text-decoration: underline; text-underline-offset: .2em; font-weight: 600; }
.studio-live-dot { background: #a8b9d2; }
.studio-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A consulting diary pairs the selected appointment with its handwritten note. */
.studio-diary { background: #f7f4f2; }
.studio-diary .studio-bar { background: #403744; }
.studio-diary .studio-mark { border-radius: 50% 50% 0 0; background: repeating-linear-gradient(90deg,#b9a2c5 0 .12rem,transparent .13rem .27rem); }
.studio-date { color: #604c6c; text-align: center; font: 600 1.3rem/1 Georgia,serif; }
.studio-date small { margin: .12rem 0 0; color: inherit; font: 650 .52rem/1 Inter,sans-serif; letter-spacing: .07em; }
.studio-diary-body { display: grid; grid-template-columns: minmax(0,1.24fr) minmax(0,1fr); gap: .65rem; }
.studio-calendar, .studio-notebook { min-width: 0; border-radius: .55rem; }
.studio-calendar { padding: .8rem .6rem; border: 1px solid #dcd5d8; background: #fff; }
.studio-section-label { display: block; margin-bottom: .65rem; color: #685b68; font-size: .65rem; font-weight: 650; }
.studio-calendar button {
    display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 3.05rem; margin: .3rem 0;
    padding: .35rem .38rem; text-align: left; border: 1px solid transparent; border-radius: .35rem; background: #f3f0f2; color: #403644;
}
.studio-calendar button[aria-pressed="true"] { border-color: #ad94b2; background: #f0e6f1; }
.studio-calendar time { font-variant-numeric: tabular-nums; font-weight: 680; color: #694776; font-size: .68rem; }
.studio-calendar button strong, .studio-calendar button small { display: block; }
.studio-calendar button strong { font-size: .76rem; }
.studio-calendar button small { margin-top: .12rem; color: #665d68; font-size: .64rem; }
.studio-notebook {
    position: relative; align-self: stretch; padding: .85rem .83rem; border: 1px solid #ddceae; border-top: .24rem solid #bca379;
    background: repeating-linear-gradient(0deg,transparent 0 1.15rem,#d8c39b50 1.15rem 1.2rem),#fff6df;
    color: #52432a;
}
.studio-notebook .studio-section-label { color: #796443; }
.studio-notebook > strong { display: block; font: 650 1.1rem/1.2 Georgia,serif; }
.studio-notebook p { margin: .55rem 0; color: #54462f; font-size: .76rem; line-height: 1.55; }
.studio-sign { font: italic .9rem Georgia,serif; color: #776649; }

/* The agent's view ties a compact handset to the selected stop on a sample map. */
.studio-field { background: #edf3ed; }
.studio-field .studio-bar { background: #243d36; }
.studio-field .studio-mark { border-radius: 50%; background: radial-gradient(circle,#bddec6 25%,transparent 28%),#638678; }
.studio-field-body { display: grid; grid-template-columns: 1.05fr 1fr; gap: .7rem; align-items: stretch; }
.studio-map {
    position: relative; overflow: hidden; min-height: 12.5rem; border: 1px solid #c3d1c0; border-radius: .75rem;
    background: repeating-linear-gradient(19deg,transparent 0 1.78rem,#f7f6e9 1.8rem 2.05rem),repeating-linear-gradient(107deg,#d5e1ca 0 2.15rem,#f6f4e7 2.16rem 2.45rem,#e0e6cf 2.5rem 4.3rem);
}
.studio-river { position: absolute; width: 28%; height: 160%; left: 47%; top: -20%; border-radius: 40%; background: #a3cbd1; transform: rotate(20deg); }
.studio-road { position: absolute; display: block; width: 150%; height: .6rem; left: -25%; border: 1px solid #c5baa3; background: #fef6df; }
.studio-road.one { top: 27%; transform: rotate(-28deg); }
.studio-road.two { top: 69%; transform: rotate(25deg); }
.studio-road.three { top: 62%; transform: rotate(-58deg); }
.studio-pin { position: absolute; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border: .14rem solid white; border-radius: 50%; background: #647d66; color: white; font-size: .65rem; font-weight: 700; box-shadow: 0 .12rem .4rem #2035253b; }
.studio-pin.first { left: 22%; top: 60%; }
.studio-pin.second { left: 48%; top: 40%; }
.studio-pin.third { left: 73%; top: 22%; }
.studio-pin.is-current { background: #183d2e; box-shadow: 0 0 0 .3rem #47775542; }
.studio-handset { position: relative; width: 100%; max-width: 14rem; padding: .4rem .7rem .75rem; border: .22rem solid #2c3f38; border-radius: 1.12rem; background: #fcfff9; color: #243a31; box-shadow: 0 .28rem .55rem #1d402119; }
.studio-phone-top { display: flex; justify-content: center; margin-bottom: .58rem; }
.studio-phone-top i { width: 20%; height: .2rem; border-radius: 1rem; background: #3a473d; }
.studio-handset .studio-section-label { margin-bottom: .4rem; color: #456a54; }
.studio-handset > strong { display: block; font: 700 1.08rem/1.15 "Space Grotesk",sans-serif; letter-spacing: -.025em; }
.studio-handset > small { display: block; margin: .32rem 0; color: #506159; font-size: .65rem; }
.studio-phone-note { margin: .65rem 0; padding: .48rem; border-radius: .35rem; background: #e6efe3; color: #3d5544; font-size: .72rem; line-height: 1.4; }
.studio-handset .studio-action { width: 100%; min-height: 1.95rem; padding: .32rem .35rem; background: #2b5c42; }

@container (max-width: 27rem) {
    .studio-content { padding: .8rem; }
    .studio-bar { padding-inline: .83rem; }
    .studio-heading { margin-bottom: .75rem; }
    .studio-lanes { gap: .25rem; }
    .studio-lane { padding: .26rem; }
    .studio-ticket { padding: .43rem .31rem; }
    .studio-user > i { display: none; }
    .studio-panel { min-height: 20.5rem; }
    .studio-calendar { padding: .6rem .33rem; }
    .studio-calendar button { gap: .35rem; }
    .studio-notebook { padding: .6rem; }
}
@container (max-width: 21rem) {
    .crm-studio .studio-picker { margin-inline: auto; }
    .studio-picker button { padding-inline: .58rem; }
    .studio-lane-title { gap: .16rem; }
    .studio-lane-title i { width: .27rem; height: .27rem; }
    .studio-origin { padding-inline: .22rem; }
    .studio-ticket > small { font-size: .6rem; }
    .studio-caption { justify-content: center; }
    .studio-caption a { margin-left: 0; padding-inline: .35rem; }
    .studio-calendar time { font-size: .61rem; }
    .studio-diary-body, .studio-field-body { gap: .3rem; }
    .studio-handset { padding-inline: .4rem; }
}
@media (prefers-reduced-motion: no-preference) {
    .studio-ticket.studio-moved { animation: studio-ticket-in .3s ease-out; }
    .studio-panel:not([hidden]) { animation: studio-panel-in .24s ease-out; }
    @keyframes studio-ticket-in { from { opacity: .4; transform: translateY(.25rem); } }
    @keyframes studio-panel-in { from { opacity: .72; } }
}
