:root {
    color-scheme: light;
    --bg: #f5f8fc;
    --surface: #ffffff;
    --surface-soft: #edf5fb;
    --text: #162334;
    --muted: #66748a;
    --line: #d8e2ec;
    --primary: #075fd4;
    --primary-dark: #044aa9;
    --accent: #0a7f78;
    --danger: #b42318;
    --warning: #a15c05;
    --success: #147446;
    --shadow: 0 18px 46px rgba(22, 44, 76, 0.09);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    min-width: 0;
}

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

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 22px 18px;
    background: #111d2e;
    color: #f8fbfc;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #0a68e8;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(7, 95, 212, 0.28);
}

.brand-mark.large {
    width: 56px;
    height: 56px;
}

.nav-links {
    display: grid;
    gap: 6px;
}

.nav-link {
    position: relative;
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
    color: #dfe8ec;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
}

.nav-link.has-unread {
    padding-right: 32px;
}

.nav-link.has-unread::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 13px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
    transform: translateY(-50%);
}

.logout-form {
    margin-top: auto;
    display: grid;
    gap: 12px;
}

.signed-in {
    display: grid;
    gap: 2px;
    color: #ffffff;
}

.signed-in span {
    color: #aebdc6;
    font-size: 0.88rem;
}

.content {
    padding: 30px;
    min-width: 0;
}

.top-clock-bar {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    justify-content: flex-end;
    margin: -8px 0 16px;
}

.notification-bell {
    position: relative;
    z-index: 20;
}

.notification-bell summary {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    cursor: pointer;
    list-style: none;
}

.notification-bell summary::-webkit-details-marker {
    display: none;
}

.bell-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.notification-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    display: grid;
    place-items: center;
}

.notification-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(340px, calc(100vw - 36px));
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(18, 35, 55, 0.16);
}

.notification-menu-title {
    padding: 4px 6px 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.notification-item,
.notification-empty {
    display: grid;
    gap: 3px;
    padding: 10px;
    border-radius: 7px;
    color: var(--text);
}

.notification-item:hover,
.notification-item.is-unread {
    background: #f1f7fc;
}

.notification-item span,
.notification-empty {
    color: var(--muted);
    font-size: 0.86rem;
}

.notification-bubble {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1000;
    width: min(280px, calc(100vw - 36px));
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(18, 35, 55, 0.18);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.notification-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-bubble span {
    color: var(--muted);
    font-size: 0.88rem;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    align-content: center;
    justify-content: center;
    padding: clamp(18px, 5vw, 56px);
    background:
        linear-gradient(150deg, rgba(240, 248, 255, 0.96), rgba(255, 255, 255, 0.92) 48%, rgba(235, 250, 247, 0.95)),
        var(--bg);
    overflow-x: hidden;
}

.login-stage {
    width: min(1240px, calc(100vw - 32px));
    min-height: min(720px, calc(100vh - 48px));
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(360px, 500px);
    align-items: center;
    gap: clamp(28px, 6vw, 76px);
    min-width: 0;
}

.login-hero {
    position: relative;
    min-height: 620px;
    display: grid;
    align-content: center;
    padding: clamp(18px, 5vw, 58px);
    overflow: hidden;
    min-width: 0;
}

.login-hero::after {
    content: "";
    position: absolute;
    left: -12%;
    right: -12%;
    bottom: -12%;
    height: 40%;
    background:
        linear-gradient(168deg, transparent 0 26%, rgba(222, 242, 247, 0.86) 27% 61%, transparent 62%),
        linear-gradient(12deg, transparent 0 34%, rgba(232, 248, 244, 0.92) 35% 72%, transparent 73%);
    pointer-events: none;
}

.login-brand-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    max-width: 680px;
    transform: translateY(-74px);
}

.login-kicker {
    color: var(--primary);
    font-size: clamp(2.1rem, 4.5vw, 3.35rem);
    line-height: 1.04;
    font-weight: 900;
}

.login-brand-copy h1 {
    font-size: clamp(1.9rem, 3.2vw, 2.65rem);
    color: #24344a;
    font-weight: 500;
}

.login-rule {
    display: block;
    width: 74px;
    height: 3px;
    margin-top: 22px;
    background: var(--primary);
    border-radius: 999px;
}

.workflow-visual {
    position: absolute;
    left: clamp(28px, 7vw, 80px);
    right: clamp(16px, 8vw, 92px);
    bottom: clamp(64px, 11vw, 128px);
    z-index: 1;
    height: 170px;
}

.workflow-line {
    position: absolute;
    left: 12%;
    right: 8%;
    top: 70px;
    height: 56px;
    border-top: 3px dashed rgba(7, 95, 212, 0.8);
    border-radius: 50%;
    transform: rotate(8deg);
}

.workflow-tile {
    position: absolute;
    display: grid;
    place-items: center;
    width: 94px;
    height: 94px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(211, 224, 237, 0.9);
    box-shadow: 0 20px 42px rgba(31, 66, 103, 0.13);
}

.workflow-tile::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: inset 0 0 0 5px #ffffff;
}

.tile-doc {
    left: 6%;
    top: 12px;
}

.tile-users {
    left: 42%;
    top: 72px;
}

.tile-chart {
    right: 0;
    top: 12px;
}

.tile-doc span,
.tile-users span,
.tile-chart span {
    position: relative;
    display: block;
    width: 46px;
    height: 46px;
}

.tile-doc span {
    border: 3px solid var(--primary);
    border-radius: 3px;
}

.tile-doc span::before {
    content: "";
    position: absolute;
    right: -3px;
    top: -3px;
    width: 15px;
    height: 15px;
    background: #ffffff;
    border-left: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
}

.tile-doc span::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 16px;
    width: 24px;
    height: 14px;
    border-top: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
}

.tile-users span::before,
.tile-users span::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: var(--primary);
}

.tile-users span::before {
    width: 18px;
    height: 18px;
    left: 6px;
    top: 7px;
    box-shadow: 20px 5px 0 rgba(7, 95, 212, 0.72);
}

.tile-users span::after {
    width: 44px;
    height: 22px;
    left: 0;
    bottom: 4px;
    clip-path: polygon(10% 100%, 90% 100%, 76% 20%, 24% 20%);
}

.tile-chart span {
    border-bottom: 3px solid var(--primary);
}

.tile-chart span::before,
.tile-chart span::after {
    content: "";
    position: absolute;
    bottom: 7px;
    width: 12px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #1f7af0, var(--primary));
}

.tile-chart span::before {
    left: 4px;
    height: 18px;
    box-shadow: 16px -8px 0 #1f7af0;
}

.tile-chart span::after {
    right: 2px;
    height: 38px;
}

.login-card,
.panel,
.table-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.login-card {
    width: 100%;
    min-height: 600px;
    padding: clamp(24px, 4vw, 46px);
    display: grid;
    align-content: start;
    border-color: rgba(208, 220, 233, 0.95);
    box-shadow: 0 28px 70px rgba(28, 48, 76, 0.14);
    min-width: 0;
}

.login-heading {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 14px;
    margin: 6px 0 34px;
}

.login-lock {
    display: grid;
    place-items: center;
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: #e4f0fb;
}

.login-lock svg {
    width: 54px;
    height: 54px;
    padding: 13px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-heading h1 {
    font-size: clamp(1.9rem, 4vw, 2.45rem);
    color: #172438;
}

.login-form {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.login-form label {
    width: 100%;
    max-width: 100%;
}

.input-shell {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.input-shell::before {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: #5e7191;
    font-size: 1.3rem;
    line-height: 1;
}

.input-shell.user-icon::before {
    content: "◎";
}

.input-shell.lock-icon::before {
    content: "▣";
    font-size: 1.05rem;
}

.input-shell input {
    min-height: 62px;
    padding-left: 60px;
    padding-right: 58px;
    border-color: #d5e0eb;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(24, 48, 76, 0.04);
}

.input-shell input:focus {
    outline: 2px solid rgba(7, 95, 212, 0.18);
    border-color: var(--primary);
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #5e7191;
    cursor: pointer;
}

.password-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.remember-line {
    display: inline-flex;
    width: fit-content;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
}

.remember-line input {
    width: 20px;
    min-height: 20px;
    padding: 0;
    border-radius: 5px;
}

.login-help-link {
    justify-self: center;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.login-help-link:hover,
.login-help-link:focus-visible {
    text-decoration: underline;
}

.reset-card {
    width: min(560px, 100%);
}

@media (min-width: 981px) {
    .login-kicker {
        white-space: nowrap;
    }
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: 0;
}

h2 {
    font-size: 1rem;
    letter-spacing: 0;
}

.login-heading p,
.muted,
.eyebrow {
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.world-clock {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 13px;
    color: #304259;
}

.clock-label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.clock-line {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    white-space: nowrap;
}

.clock-time {
    color: #102033;
    font-size: 0.98rem;
    line-height: 1.1;
}

.clock-date {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.clock-divider {
    width: 1px;
    height: 18px;
    background: #cbd7e4;
}

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

.panel {
    padding: 20px;
    margin-bottom: 22px;
}

.panel.compact {
    padding: 16px;
}

.form-grid,
.query-compose-grid,
.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.query-compose-grid {
    grid-template-columns: minmax(160px, 0.75fr) minmax(200px, 1fr) minmax(220px, 1fr) minmax(180px, auto);
}

.chat-compose-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(180px, 0.8fr) minmax(180px, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.query-filter-grid {
    align-items: end;
}

.hidden-control {
    display: none;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(220px, 360px) auto;
    gap: 16px;
    align-items: end;
}

label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

label span {
    color: #3d4b55;
    font-size: 0.88rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #c9d4da;
    border-radius: 7px;
    padding: 9px 11px;
    background: #ffffff;
    color: var(--text);
}

textarea {
    resize: vertical;
}

input[readonly] {
    background: #edf2f5;
    color: #36454f;
}

.small-number {
    max-width: 105px;
}

.small-text {
    min-width: 115px;
}

.wide {
    grid-column: span 2;
}

.form-actions {
    display: flex;
    align-items: end;
    gap: 10px;
}

.form-actions.end {
    justify-content: flex-end;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #b9c7ce;
    border-radius: 7px;
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
}

.button:hover {
    border-color: #93a5ae;
}

.button.primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(7, 95, 212, 0.22);
}

.button.primary:hover {
    background: var(--primary-dark);
}

.button.ghost {
    border-color: rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #ffffff;
}

.button.full {
    width: 100%;
}

.button.small {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.86rem;
}

.button.tiny {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.78rem;
}

.button.danger {
    border-color: #d99a94;
    background: #fff6f5;
    color: var(--danger);
}

.button.danger:hover {
    border-color: var(--danger);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.metric-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
    min-height: 94px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.metric span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.metric strong {
    display: block;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1;
}

.table-section {
    overflow: hidden;
    margin-bottom: 22px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
    align-items: start;
}

.dashboard-grid .table-section {
    height: 100%;
    margin-bottom: 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.section-body {
    padding: 16px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.compact-table {
    min-width: 520px;
}

.task-table {
    min-width: 1180px;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    background: #f7fafb;
    color: #475662;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:last-child td {
    border-bottom: 0;
}

.search-match td {
    background: #fff8e6;
}

.block {
    display: block;
    margin-top: 4px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    background: #e8eef2;
    color: #46535c;
}

.status-new {
    background: #e9eef2;
    color: #41515c;
}

.status-assigned,
.status-in_progress {
    background: #f1e4cb;
    color: #754607;
}

.status-submitted {
    background: #dbeafe;
    color: #1d4f91;
}

.review-pending {
    background: #f1e4cb;
    color: #754607;
}

.review-returned_hunter {
    background: #dbeee5;
    color: var(--success);
}

.review-sent_writer {
    background: #dbeafe;
    color: #1d4f91;
}

.status-delivered,
.status-completed,
.paid {
    background: #dbeee5;
    color: var(--success);
}

.pending {
    background: #f8e6de;
    color: var(--accent);
}

.result-pass {
    background: #dbeee5;
    color: var(--success);
}

.result-fail {
    background: #f9dedb;
    color: var(--danger);
}

.danger-soft {
    background: #f9dedb;
    color: var(--danger);
}

.result-pending {
    background: #e8eef2;
    color: #46535c;
}

.protected {
    background: #e8eef2;
    color: #304259;
}

.protected-note {
    color: var(--muted);
    font-weight: 800;
}

.creator-user-row td {
    color: #ffffff;
}

.urgency-urgent {
    background: #f9dedb;
    color: var(--danger);
}

.urgency-normal,
.change-status {
    background: #e8eef2;
    color: #46535c;
}

.row-form {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(130px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.manager-assignment-form,
.change-submit-form,
.revision-form {
    display: grid;
    gap: 10px;
}

.assignment-controls,
.revision-controls,
.voice-controls,
.badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.assignment-controls select {
    max-width: 190px;
}

.voice-recorder {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfc;
}

.voice-recorder label {
    max-width: 260px;
}

.audio-player {
    display: block;
    width: min(280px, 100%);
    height: 34px;
    margin-top: 6px;
}

.revision-form {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfc;
}

.revision-form textarea {
    min-width: 260px;
}

.payment-form {
    display: grid;
    grid-template-columns: minmax(105px, 130px) minmax(110px, max-content);
    align-items: start;
    gap: 8px;
    max-width: 270px;
}

.payment-form .button {
    grid-column: 1 / -1;
    width: 100%;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.inline-edit-form,
.result-form,
.task-action-buttons,
.file-upload-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.file-upload-inline {
    margin-top: 8px;
}

.file-upload-inline input[type="file"] {
    max-width: 240px;
}

.word-count-stack {
    display: grid;
    gap: 8px;
    min-width: 170px;
}

.appendix-form {
    display: flex;
    align-items: end;
    gap: 8px;
    flex-wrap: wrap;
}

.appendix-form label {
    max-width: 115px;
}

.leave-review-form {
    display: grid;
    gap: 8px;
    min-width: 220px;
}

.stacked-actions {
    display: grid;
    gap: 8px;
    align-items: start;
}

.compact-check {
    display: inline-flex;
    width: auto;
    min-width: 0;
}

.file-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
}

.file-list li {
    line-height: 1.4;
}

.change-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.change-card {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.change-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

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

.manager-change-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.change-grid > div {
    min-width: 0;
}

.change-action-panel {
    grid-column: 1 / -1;
}

.change-delete-row {
    margin-top: 12px;
}

.manager-review-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.small-stack {
    gap: 10px;
}

.query-card {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.query-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.query-card h2 {
    font-size: 1.12rem;
}

.query-task-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.query-task-meta span {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fbfc;
}

.query-thread {
    display: grid;
    gap: 10px;
}

.query-message {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfc;
}

.query-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

.query-meta strong {
    color: var(--ink);
}

.query-files {
    padding: 10px 12px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #fbfdfe;
}

.query-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.query-form .form-actions {
    margin-top: 0;
    justify-content: flex-end;
}

.query-form .wide {
    grid-column: 1 / -1;
}

.query-action-grid .button {
    width: 100%;
}

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

.chat-app {
    display: grid;
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
    height: calc(100vh - 172px);
    min-height: 560px;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.chat-new-panel[hidden],
.chat-loading-state[hidden],
.chat-error-state[hidden],
.chat-no-results[hidden],
.chat-conversation[hidden],
.chat-thread-button[hidden] {
    display: none !important;
}

.chat-sidebar-panel {
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    border-right: 1px solid var(--line);
    background: #f8fbfc;
}

.chat-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.chat-sidebar-top h2 {
    font-size: 1.05rem;
}

.chat-search-box {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.chat-search-box label {
    gap: 6px;
}

.chat-search-box span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.chat-search-box input {
    min-height: 42px;
    border-radius: 999px;
    background: #f3f7fb;
}

.chat-new-panel {
    padding: 14px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    max-height: min(460px, calc(100svh - 320px));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.chat-new-form {
    display: grid;
    gap: 12px;
}

.chat-new-form textarea {
    max-height: 120px;
    resize: vertical;
}

.chat-new-form > .button[type="submit"] {
    position: sticky;
    bottom: 0;
    z-index: 1;
    box-shadow: 0 -10px 22px rgba(255, 255, 255, 0.9);
}

.chat-thread-list {
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 0;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.chat-thread-button {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    position: relative;
    width: 100%;
    min-height: 70px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    box-shadow: none;
}

.chat-thread-button:hover,
.chat-thread-button.active {
    border-color: var(--line);
    background: #ffffff;
}

.chat-thread-button.active {
    border-left: 4px solid var(--primary);
    box-shadow: 0 10px 26px rgba(16, 32, 51, 0.08);
}

.chat-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1155cc;
    font-size: 0.85rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.chat-online-dot {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #10b981;
}

.chat-thread-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.chat-thread-copy strong,
.chat-thread-copy span,
.chat-thread-copy small,
.chat-thread-title-row time {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-thread-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: baseline;
}

.chat-thread-copy strong {
    font-size: 0.94rem;
}

.chat-thread-title-row time {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.chat-thread-copy small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.chat-thread-copy span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.chat-unread-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
}

.chat-main-panel {
    min-width: 0;
    min-height: 0;
    background: #ffffff;
}

.chat-conversation {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    height: 100%;
    min-height: 0;
}

.chat-conversation.is-empty {
    align-items: center;
}

.chat-conversation-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.chat-conversation-header > div:nth-of-type(1) {
    min-width: 0;
    flex: 1 1 auto;
}

.chat-conversation-header h2 {
    font-size: 1.12rem;
}

.chat-presence-text {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.chat-back-button {
    display: none;
}

.chat-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--muted);
    font-weight: 900;
}

.chat-icon-button:hover,
.chat-icon-button:focus-visible {
    color: var(--ink);
    border-color: #a8b8c8;
}

.emoji-picker {
    position: absolute;
    left: 20px;
    bottom: calc(100% - 6px);
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(6, 34px);
    gap: 6px;
    max-width: min(260px, calc(100vw - 40px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.emoji-picker[hidden] {
    display: none !important;
}

.emoji-picker button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    font-size: 1.18rem;
    line-height: 1;
}

.emoji-picker button:hover,
.emoji-picker button:focus-visible {
    border-color: var(--line);
    background: #f3f7fb;
}

.chat-more-menu {
    position: relative;
}

.chat-more-menu summary {
    list-style: none;
    cursor: pointer;
}

.chat-more-menu summary::-webkit-details-marker {
    display: none;
}

.chat-more-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 6;
    min-width: 160px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.danger-menu-button {
    width: 100%;
    min-height: 38px;
    border: 1px solid #efbbb5;
    border-radius: 8px;
    background: #fff5f4;
    color: var(--danger);
    font-weight: 900;
}

.chat-message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 18px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f3f7fb;
}

.chat-date-separator {
    display: flex;
    justify-content: center;
    margin: 4px 0;
}

.chat-date-separator span {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.chat-bubble-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: min(720px, 88%);
}

.chat-bubble-row.is-self {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-bubble-row.is-self .chat-avatar {
    background: #dff3ea;
    color: #08745d;
}

.chat-bubble {
    position: relative;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(16, 32, 51, 0.06);
}

.chat-bubble.has-actions {
    padding-right: 42px;
}

.chat-bubble-row.is-self .chat-bubble {
    border-color: #b8d7ff;
    background: #e8f2ff;
}

.chat-bubble p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chat-message-actions {
    position: absolute;
    top: 7px;
    right: 8px;
    z-index: 3;
}

.chat-message-actions summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    list-style: none;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.chat-message-actions summary::-webkit-details-marker {
    display: none;
}

.chat-message-actions summary:hover,
.chat-message-actions summary:focus-visible,
.chat-message-actions[open] summary {
    border-color: var(--line);
    background: #ffffff;
    color: var(--ink);
}

.chat-message-actions-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 4;
    display: grid;
    min-width: 210px;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.chat-menu-button {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 900;
    text-align: left;
}

.chat-menu-button:hover,
.chat-menu-button:focus-visible {
    border-color: #a8b8c8;
    background: #f3f7fb;
}

.chat-menu-button.danger {
    border-color: #efbbb5;
    background: #fff5f4;
    color: var(--danger);
}

.chat-message-delete-form {
    margin-top: 6px;
    text-align: right;
}

.chat-message-delete {
    width: auto;
    min-height: 26px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.chat-message-delete:hover,
.chat-message-delete:focus-visible {
    background: #fff5f4;
    color: var(--danger);
}

.chat-message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.chat-message-meta strong {
    color: var(--ink);
}

.chat-shared-files {
    display: grid;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    background: #fbfdfe;
}

.chat-reply-form {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.chat-reply-form textarea {
    min-height: 48px;
    max-height: 140px;
    resize: vertical;
}

.chat-attach {
    min-width: 0;
}

.chat-empty-state {
    padding: 20px;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.chat-no-results,
.chat-error-state {
    margin: 10px;
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.chat-error-state {
    border-color: #efbbb5;
    background: #fff5f4;
    color: var(--danger);
}

.chat-loading-state {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.chat-loading-state span {
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(90deg, #edf3f7, #ffffff, #edf3f7);
    background-size: 200% 100%;
    animation: chatSkeleton 1.25s ease-in-out infinite;
}

@keyframes chatSkeleton {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

.team-card {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.team-form {
    display: grid;
    gap: 18px;
}

.team-card-header,
.team-member-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.team-member-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.team-member-columns h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.team-member-grid {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfc;
}

.team-member-option {
    display: flex;
}

.team-member-option span {
    display: grid;
    gap: 2px;
}

.team-member-option small,
.team-name-list span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.team-name-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.file-link {
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
}

.user-name-edit {
    position: relative;
}

.user-name-edit summary {
    width: 34px;
    min-height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    list-style: none;
}

.user-name-edit summary::-webkit-details-marker {
    display: none;
}

.user-name-edit[open] summary {
    background: #eaf3ff;
    border-color: rgba(15, 107, 232, 0.35);
}

.user-name-edit form {
    position: absolute;
    z-index: 3;
    top: calc(100% + 6px);
    left: 0;
    display: flex;
    gap: 6px;
    min-width: 280px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.user-status-form {
    grid-template-columns: minmax(120px, 150px) auto;
}

.check-line {
    display: inline-flex;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
}

.check-line input {
    width: 18px;
    min-height: 18px;
}

.lookup-result {
    align-self: center;
    min-height: 20px;
    color: var(--muted);
    font-weight: 700;
}

.task-match-note {
    align-self: end;
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 9px 11px;
    border: 1px dashed var(--line);
    border-radius: 7px;
    background: #f8fbfc;
    color: var(--muted);
    font-weight: 800;
}

.query-compose-panel,
.query-filter-panel {
    display: grid;
    gap: 16px;
}

.query-compose-panel .section-heading,
.query-filter-panel .section-heading {
    padding: 0 0 4px;
    border-bottom: 0;
}

.tracking-count {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fbfc;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

.success-text {
    color: var(--success);
}

.error-text {
    color: var(--danger);
}

.flash {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.flash.flash-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.flash.success {
    background: #dbeee5;
    color: var(--success);
    border: 1px solid #b7dbc8;
}

.flash.error {
    background: #f9dedb;
    color: var(--danger);
    border: 1px solid #efbbb5;
}

.empty {
    color: var(--muted);
    text-align: center;
    padding: 30px;
}

@media (max-width: 980px) {
    .login-brand-copy {
        transform: none;
    }

    .login-shell {
        align-content: start;
        padding: 18px;
    }

    .login-stage {
        width: min(680px, calc(100vw - 28px));
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .login-hero {
        min-height: auto;
        padding: 22px 6px 4px;
        text-align: center;
    }

    .login-brand-copy {
        justify-items: center;
        margin: 0 auto;
    }

    .login-rule {
        margin-top: 4px;
    }

    .workflow-visual {
        display: none;
    }

    .login-hero::after {
        display: none;
    }

    .login-card {
        min-height: auto;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .nav-links {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .content {
        padding: 20px;
    }

    .world-clock {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .chat-app {
        grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
        height: calc(100vh - 190px);
        min-height: 520px;
    }

    .chat-sidebar-panel {
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .chat-thread-list {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .chat-conversation {
        min-height: 0;
    }

    .form-grid,
    .query-compose-grid,
    .chat-compose-grid,
    .filter-grid,
    .search-form,
    .metric-grid,
    .dashboard-grid,
    .metric-grid.four,
    .manager-change-grid,
    .manager-review-actions,
    .query-action-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wide {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .login-shell {
        display: block;
        min-height: 100svh;
        padding: 18px;
        overflow-x: hidden;
    }

    .login-stage {
        width: 100%;
        max-width: none;
        display: block;
    }

    .login-hero {
        width: 100%;
        margin: 0 0 14px;
        padding: 8px 0 0;
        min-height: auto;
        text-align: center;
    }

    .login-brand-copy {
        display: block;
        max-width: 100%;
    }

    .login-kicker {
        font-size: 1.55rem;
        line-height: 1.15;
        white-space: normal;
    }

    .login-kicker span {
        display: inline;
    }

    .login-brand-copy h1 {
        margin-top: 6px;
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .login-rule {
        width: 58px;
        height: 3px;
        margin: 14px auto 0;
    }

    .login-card {
        width: 100% !important;
        max-width: none;
        margin: 0;
        padding: 22px 16px;
        min-height: auto;
    }

    .login-heading {
        margin: 0 0 22px;
        gap: 10px;
    }

    .login-heading h1 {
        font-size: 1.65rem;
    }

    .login-lock {
        width: 70px;
        height: 70px;
    }

    .login-lock svg {
        width: 42px;
        height: 42px;
        padding: 10px;
    }

    .login-form {
        gap: 16px;
    }

    .input-shell input {
        width: 100%;
        max-width: 100%;
        min-height: 52px;
        padding-left: 46px;
        padding-right: 44px;
        font-size: 0.92rem;
    }

    .input-shell::before {
        left: 15px;
        font-size: 1.05rem;
    }

    .password-toggle {
        right: 6px;
        width: 36px;
        height: 36px;
        min-height: 36px;
    }

    .content {
        padding: 16px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .world-clock {
        width: 100%;
        justify-content: flex-start;
        gap: 8px 11px;
    }

    .top-clock-bar {
        align-items: flex-start;
        justify-content: space-between;
    }

    .clock-line {
        width: 100%;
    }

    .clock-divider {
        display: none;
    }

    .chat-app {
        grid-template-columns: 1fr;
        height: calc(100svh - 120px);
        min-height: 560px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        margin-left: -16px;
        margin-right: -16px;
    }

    .chat-sidebar-panel {
        border-right: 0;
        border-bottom: 0;
    }

    .chat-main-panel {
        display: none;
        height: 100%;
    }

    .chat-app.is-chat-open .chat-sidebar-panel {
        display: none;
    }

    .chat-app.is-chat-open .chat-main-panel {
        display: block;
    }

    .chat-sidebar-top {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-thread-list {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .chat-conversation {
        min-height: 0;
    }

    .chat-conversation-header {
        align-items: center;
        flex-wrap: wrap;
        padding: 12px 14px;
    }

    .chat-conversation-header .query-task-meta {
        display: none;
    }

    .chat-header-actions {
        margin-left: 0;
    }

    .chat-back-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-height: 36px;
        padding: 0 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #ffffff;
        color: var(--ink);
        font-weight: 900;
    }

    .chat-message-list {
        padding: 14px;
    }

    .chat-bubble-row {
        max-width: 100%;
    }

    .chat-reply-form {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .chat-icon-button {
        width: auto;
    }

    .emoji-picker {
        left: 14px;
        grid-template-columns: repeat(6, 32px);
        padding: 8px;
    }

    .emoji-picker button {
        width: 32px;
        height: 32px;
    }

    .form-grid,
    .query-compose-grid,
    .chat-compose-grid,
    .filter-grid,
    .search-form,
    .metric-grid,
    .dashboard-grid,
    .metric-grid.four,
    .change-grid,
    .manager-review-actions,
    .query-action-grid,
    .query-form {
        grid-template-columns: 1fr;
    }

    .wide {
        grid-column: span 1;
    }

    .row-form,
    .payment-form,
    .assignment-controls,
    .revision-controls,
    .voice-controls,
    .change-card-header,
    .query-card-header,
    .query-task-meta,
    .team-card-header,
    .team-member-columns {
        grid-template-columns: 1fr;
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
