:root {
    font-family: Inter,"Source Sans 3","Segoe UI",Arial,sans-serif;
    color: #172f39;
    background: #f3f5f4;
    font-synthesis: none;
    --ink: #172f39;
    --muted: #526568;
    --line: #dbe3e1;
    --accent: #a54130;
    --coral: #ef927c;
    --rail: #142d37;
    --paper: #fff;
    --teal: #24675e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

button,input,select {
    font: inherit;
}

a {
    color: inherit;
}

button,select {
    cursor: pointer;
}

button,a,input,select {
    touch-action: manipulation;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,audio:focus-visible {
    outline: 3px solid #df8d52;
    outline-offset: 3px;
}

[hidden] {
    display: none!important;
}

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 225px minmax(0,1fr);
}

.rail {
    position: sticky;
    top: 0;
    background: var(--rail);
    color: #f1f6f4;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 32px 18px 20px;
}

.brand,.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 23px;
    font-weight: 680;
    letter-spacing: -1.1px;
}

.brand {
    padding: 0 10px;
}

.brand small,.acct-name small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: .05px;
    font-weight: 450;
    color: #b5c9cc;
}

.brandmark {
    background: #f4a28e;
    color: #15333c;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    gap: 3px;
    align-items: center;
    justify-content: center;
    flex: none;
}

.brandmark i {
    width: 3px;
    background: currentColor;
    border-radius: 5px;
    height: 8px;
}

.brandmark i:nth-child(2) {
    height: 15px;
}

.brandmark i:nth-child(3) {
    height: 24px;
}

.brandmark i:nth-child(4) {
    height: 18px;
}

.brandmark i:nth-child(5) {
    height: 10px;
}

nav {
    display: grid;
    gap: 5px;
    margin-top: 55px;
}

nav a {
    padding: 13px 14px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    gap: 13px;
    align-items: center;
    font-size: 14px;
    font-weight: 550;
    color: #c6d8db;
}

nav a:hover,.signout:hover {
    background: #223f48;
}

nav a[aria-current] {
    background: #2c4a53;
    color: white;
}

nav a[aria-current] .glyph {
    color: #f1a18d;
}

.glyph {
    display: inline-block;
    width: 18px;
    height: 18px;
    position: relative;
    flex: none;
}

.glyph:before,.glyph:after {
    content: "";
    display: block;
    position: absolute;
}

.tray:before {
    inset: 3px 0 2px;
    border: 1.7px solid currentColor;
    border-radius: 3px;
}

.tray:after {
    border: 1.7px solid currentColor;
    border-top: 0;
    border-radius: 0 0 4px 4px;
    inset: 3px 5px 8px;
}

.microphone:before {
    height: 10px;
    width: 5px;
    border: 1.7px solid currentColor;
    border-radius: 6px;
    left: 5px;
    top: 0;
}

.microphone:after {
    left: 2px;
    right: 2px;
    top: 8px;
    height: 6px;
    border: 1.7px solid currentColor;
    border-top: 0;
    border-radius: 0 0 9px 9px;
    box-shadow: 0 8px 0 -3px currentColor;
}

.route:before {
    left: 1px;
    top: 3px;
    width: 14px;
    height: 11px;
    border: 1.7px solid currentColor;
    border-left: 0;
    border-radius: 0 5px 5px 0;
}

.route:after {
    width: 5px;
    height: 5px;
    left: 0;
    top: 1px;
    background: currentColor;
    border-radius: 2px;
    box-shadow: 0 12px currentColor;
}

.exit:before {
    top: 2px;
    bottom: 2px;
    left: 1px;
    width: 7px;
    border: 1.6px solid currentColor;
    border-right: none;
    border-radius: 2px;
}

.exit:after {
    top: 6px;
    right: 0;
    width: 6px;
    height: 6px;
    border-top: 1.6px solid currentColor;
    border-right: 1.6px solid currentColor;
    transform: rotate(45deg);
}

.account {
    display: flex;
    align-items: center;
    gap: 9px;
    border-top: 1px solid #38515a;
    padding: 19px 3px 0;
    margin-top: auto;
    min-width: 0;
}

.avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    background: #c3d7d2;
    color: #214741;
    font-weight: 700;
}

.acct-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.acct-name small {
    font-size: 11px;
}

.signout {
    background: transparent;
    color: #c5d6da;
    border: 0;
    border-radius: 6px;
    display: grid;
    place-items: center;
    padding: 8px;
}

.main {
    min-width: 0;
}

.top {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 69px;
    border-bottom: 1px solid var(--line);
    background: #fafbf9;
    padding: 0 clamp(20px,3.2vw,56px);
    font-size: 13px;
    font-weight: 550;
    letter-spacing: .12px;
    color: #4b6267;
}

.work-dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: #58867b;
}

.content {
    max-width: 1490px;
    margin: auto;
    padding: 36px clamp(20px,3.2vw,56px) 60px;
}

.title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 29px;
    flex-wrap: wrap;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--teal);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

h1,h2,h3,p,dl {
    margin: 0;
}

h1 {
    font-size: clamp(39px,4.1vw,60px);
    line-height: 1.02;
    letter-spacing: -.055em;
    font-weight: 640;
}

h2 {
    font-size: 19px;
    letter-spacing: -.035em;
    font-weight: 650;
}

h3 {
    font-size: 17px;
    letter-spacing: -.025em;
    font-weight: 650;
}

.muted,.subhead,.status {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
}

.subhead {
    margin: 12px 0 26px;
}

input:not([type=hidden]),select {
    border: 1px solid #bccbc8;
    border-radius: 7px;
    min-height: 40px;
    padding: 8px 10px;
    color: var(--ink);
    background: white;
    font-size: 14px;
    min-width: 0;
}

select {
    max-width: 100%;
    padding-right: 22px;
}

.filter {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter label {
    font-size: 13px;
    font-weight: 550;
    color: var(--muted);
    margin-right: 3px;
}

.filter select {
    max-width: 210px;
}

.primary,.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 650;
    font-size: 14px;
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 7px;
    line-height: 1.2;
}

.primary {
    background: #23665c;
    border: 1px solid #23665c;
    color: white;
}

.primary:hover {
    background: #18554d;
}

.secondary {
    border: 1px solid #b4c5c1;
    color: #2a5550;
    background: white;
}

.secondary:hover {
    background: #f0f5f2;
}

.small {
    font-size: 13px;
    min-height: 38px;
    padding: 8px 13px;
}

button:disabled {
    opacity: .5;
    cursor: default;
}

.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 15px;
    min-width: 0;
    box-shadow: 0 2px 7px #213c3a06;
}

.inbox-grid {
    display: grid;
    grid-template-columns: minmax(215px,.75fr) minmax(340px,1.5fr);
    align-items: start;
    gap: 20px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 21px 21px 18px;
    border-bottom: 1px solid var(--line);
}

.count {
    font-size: 12px;
    font-weight: 650;
    padding: 3px 8px;
    background: #ecf3ef;
    color: #38665c;
    border-radius: 25px;
    font-variant-numeric: tabular-nums;
}

.msg {
    position: relative;
    display: block;
    padding: 17px 19px;
    text-decoration: none;
    border-bottom: 1px solid #e9eeec;
}

.msg:last-child {
    border-bottom: none;
    border-radius: 0 0 15px 15px;
}

.msg:hover {
    background: #f7faf8;
}

.msg.active {
    background: #edf5f0;
}

.msg.active:before {
    content: "";
    position: absolute;
    inset: 13px auto 13px 0;
    width: 3px;
    background: #4c8e77;
    border-radius: 4px;
}

.msg-flex {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 9px;
    min-width: 0;
}

.msg-flex strong,.ellipsis {
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.msg-flex strong {
    font-size: 14px;
    letter-spacing: -.2px;
}

.msg-flex time,.dur {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.msg-flex time {
    font-size: 11px;
    color: #52676c;
}

.msg-flex+.msg-flex {
    font-size: 12px;
    margin-top: 7px;
    color: #53696b;
}

.dur {
    font: 11px ui-monospace,monospace;
}

.list-empty {
    font-size: 14px;
    color: var(--muted);
    padding: 22px;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    font-size: 12px;
    padding: 13px;
}

.pager a {
    color: var(--teal);
}

.detail-pad {
    padding: clamp(20px,2.5vw,34px);
}

.caller {
    font-size: clamp(25px,2.5vw,38px);
    letter-spacing: -.045em;
    line-height: 1.17;
    overflow-wrap: anywhere;
}

.phone {
    font-size: 15px;
    color: var(--muted);
    margin-top: 6px;
}

.meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 19px 0 25px;
}

.meta dt {
    font-size: 11px;
    font-weight: 620;
    color: #627577;
    margin-bottom: 5px;
}

.meta dd {
    margin: 0;
    color: #324c52;
    font-size: 13px;
}

.recording {
    border-radius: 11px;
    padding: 17px 17px 12px;
    background: #18353e;
    color: #f2f7f4;
}

.audio-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 580;
    margin-bottom: 13px;
}

.audio-head span:last-child {
    font: 12px ui-monospace,monospace;
    color: #bbd0cf;
}

.recording canvas {
    width: 100%;
    height: 43px;
    display: block;
    margin: 0 0 10px;
}

audio {
    display: block;
    max-width: 100%;
    width: 100%;
    height: 42px;
}

.transcript {
    margin-top: 29px;
}

.transcript h3 {
    margin-bottom: 11px;
}

.transcript-text {
    font-size: 15px;
    line-height: 1.75;
    color: #334b50;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.status {
    font-size: 13px;
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b78635;
    margin-right: 6px;
}

.empty {
    min-height: 320px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    padding: 32px;
}

.empty p {
    max-width: 360px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
    margin: 10px auto;
}

.empty-glyph,.studio-mic {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    color: var(--teal);
    background: #e2f0e7;
}

.empty-glyph {
    margin-bottom: 18px;
}

.empty-glyph .glyph,.studio-mic .glyph {
    transform: scale(1.35);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}

.form-panel,.studio {
    padding: 24px;
}

.stack {
    display: grid;
    gap: 15px;
}

.form-panel .stack {
    margin-top: 18px;
}

.stack label,#draft label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #324d52;
}

.stack .primary {
    justify-self: start;
}

.optional {
    display: contents;
    font-weight: 400;
}

.data-list {
    margin-top: 22px;
}

.data-row {
    display: grid;
    grid-template-columns: minmax(110px,1fr) minmax(130px,1.3fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}

.data-row:last-child {
    border-bottom: 0;
}

.data-row strong {
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.data-row small {
    font-weight: 450;
    color: var(--muted);
    font-size: 11px;
}

.studio {
    max-width: 790px;
}

.studio-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.studio-top h2 {
    font-size: 28px;
}

.studio section {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 21px;
}

.studio h3 {
    margin-bottom: 9px;
}

.record-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 15px;
}

#clock {
    font: 14px ui-monospace,monospace;
    color: var(--accent);
}

#draft {
    margin-top: 20px;
    padding: 17px;
    background: #edf5ef;
    border-radius: 8px;
}

#draft audio {
    margin: 8px 0 12px;
}

.feedback {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--teal);
}

.notice {
    border: 1px solid #bdd9c6;
    background: #eaf4ec;
    color: #24563b;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.notice.error {
    border-color: #e5bcad;
    background: #fbede8;
    color: #863a26;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #eaf0eb;
}

.login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border: 1px solid #d2dfd9;
    border-radius: 22px;
    max-width: 850px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 16px 60px #153a3414;
}

.login-art {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--rail);
    padding: 32px;
    color: white;
    overflow: hidden;
    min-height: 450px;
}

.login-word {
    font-size: 13px;
    color: #b3cac7;
}

.signal-art {
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    inset: 32% -11% 29% 10%;
    transform: rotate(-12deg);
}

.signal-art i {
    height: 22%;
    flex: 1;
    background: #eca18b;
    border-radius: 20px;
}

.signal-art i:nth-child(3n) {
    height: 44%;
}

.signal-art i:nth-child(4n) {
    height: 62%;
}

.signal-art i:nth-child(5n) {
    height: 78%;
}

.signal-art i:nth-child(7n) {
    height: 92%;
}

.signal-art i:nth-child(8n) {
    height: 100%;
}

.login-panel {
    padding: 50px 35px;
    align-self: center;
}

.login-panel h1 {
    font-size: 47px;
}

.login-panel .primary {
    width: 100%;
    margin-top: 5px;
}

.remove-action {
    border: 0;
    background: none;
    color: #853623;
    text-decoration: underline;
    padding: 5px 0;
    font-size: 12px;
    justify-self: end;
}

@media(max-width:1050px) {
    .shell {
        grid-template-columns: 180px minmax(0,1fr);
    }

    .rail {
        padding: 25px 12px 16px;
    }

    .brand {
        padding: 0 4px;
        font-size: 21px;
    }

    .brandmark {
        width: 36px;
        height: 36px;
    }

    .content {
        padding: 28px 21px 45px;
    }

    .inbox-grid {
        gap: 13px;
        grid-template-columns: minmax(190px,.78fr) minmax(285px,1.35fr);
    }

}

@media(max-width:780px) {
    .shell {
        display: block;
    }

    .rail {
        height: auto;
        position: static;
        display: flex;
        flex-flow: row wrap;
        align-items: center;
        gap: 18px;
        padding: 14px 18px;
    }

    .brand {
        font-size: 19px;
    }

    .brand small {
        font-size: 10px;
        margin-top: 2px;
    }

    nav {
        display: flex;
        margin: 0;
        gap: 3px;
        flex: 1;
    }

    nav a {
        padding: 9px 10px;
        font-size: 13px;
        gap: 6px;
    }

    .account {
        border: 0;
        padding: 0;
        margin: 0;
    }

    .account .acct-name,.account .avatar {
        display: none;
    }

    .top {
        height: 46px;
        padding: 0 20px;
    }

    .content {
        padding: 23px 18px 40px;
    }

    .title-row {
        margin-bottom: 19px;
    }

    .admin-grid {
        gap: 13px;
    }

    .inbox-grid {
        grid-template-columns: minmax(175px,.7fr) minmax(280px,1.3fr);
    }

}

@media(max-width:600px) {
    .rail {
        gap: 10px;
    }

    .brand {
        flex: 1;
    }

    .account {
        order: 2;
    }

    nav {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
    }

    nav a {
        justify-content: center;
        flex: 1;
    }

    .top {
        height: 40px;
    }

    .inbox-grid,.admin-grid {
        grid-template-columns: 1fr;
    }

    .message-list {
        max-height: 280px;
        overflow: auto;
    }

    .msg {
        padding: 12px 16px;
    }

    .title-row {
        align-items: start;
    }

    .filter label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .filter {
        margin-top: 8px;
    }

    .filter select {
        max-width: 158px;
    }

    .panel-head {
        padding: 15px 17px;
    }

    .content {
        padding: 23px 13px 36px;
    }

    .detail-pad,.form-panel,.studio {
        padding: 19px;
    }

    .data-row {
        padding: 12px;
        gap: 8px;
        grid-template-columns: minmax(0,1fr) auto;
    }

    .data-row strong {
        grid-column: 1/-1;
    }

    .login {
        grid-template-columns: 1fr;
    }

    .login-art {
        min-height: auto;
        padding: 19px 23px;
    }

    .signal-art,.login-word {
        display: none;
    }

    .login-panel {
        padding: 29px 23px 35px;
    }

    .login-body {
        padding: 16px;
    }

    .empty {
        min-height: 215px;
    }

}

.route-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
