@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../assets/fonts/roboto/roboto-latin.woff2') format('woff2');
}

:root {
    --brand-red: #ff0000;
    --button-red: #e41e13;
    --brand-black: #111111;
    --text: #242424;
    --muted: #666666;
    --border: #dedede;
    --surface: #ffffff;
    --background: #f4f4f4;
    font-family: Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--background);
    color-scheme: light;
    line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
.wrap { max-width: 1240px; margin: auto; padding: 32px 24px; }
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    background: var(--brand-black);
    color: white;
    border-bottom: 5px solid var(--brand-red);
}
.brand-heading { display: flex; align-items: center; gap: 32px; min-width: 0; }
.brand-logo { display: block; width: 210px; height: auto; flex-shrink: 0; }
.header-title { border-left: 1px solid #484848; padding-left: 32px; }
h1 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
h2 { margin: 0 0 20px; font-size: 19px; font-weight: 750; line-height: 1.35; }
.sub { color: #cccccc; margin: 8px 0 0; font-size: 13px; }
.pill {
    padding: 8px 12px;
    border: 1px solid #555555;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: .3px;
}
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 2px 6px #00000003;
}
.context-panel { background: #fafafa; }
.add-panel h2::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 4px;
    height: 20px;
    margin-right: 10px;
    background: var(--brand-red);
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
label { font-size: 13px; font-weight: 650; }
input, select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    color: var(--text);
    background: white;
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #757575; }
input:focus, select:focus, textarea:focus {
    border-color: var(--button-red);
    outline: 0;
    box-shadow: 0 0 0 3px #e41e1314;
}
textarea { resize: vertical; min-height: 90px; }
.full { grid-column: 1 / -1; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid var(--button-red);
    border-radius: 3px;
    background: var(--button-red);
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.btn:hover:not(:disabled) { background: #bd180f; border-color: #bd180f; }
button:disabled { opacity: .5; cursor: not-allowed; }
.secondary { background: #f4f4f4; color: #333333; border: 1px solid #d5d5d5; }
.secondary:hover:not(:disabled) { background: #eaeaea; border-color: #aaaaaa; color: #111111; }
.filter-panel .btn.secondary { background: white; border-color: var(--button-red); color: #ba1710; }
.filter-panel .btn.secondary:hover:not(:disabled) { background: #fff0ef; }
button:focus-visible { outline: 3px solid var(--brand-black); outline-offset: 3px; }
.toolbar { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.toolbar .field { flex: 1; min-width: 180px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.destination-panel { border-top: 3px solid var(--brand-black); }
.destination-panel h2 { display: flex; align-items: center; gap: 8px; }
.count {
    margin-left: auto;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}
.item { border: 1px solid var(--border); border-radius: 3px; padding: 16px; margin: 12px 0; background: white; overflow-wrap: anywhere; }
.item:last-child { margin-bottom: 0; }
.itemtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.item strong { font-size: 16px; line-height: 1.4; }
.muted { color: var(--muted); font-size: 12px; margin-top: 7px; }
.tag { display: inline-block; flex-shrink: 0; border-radius: 3px; padding: 5px 8px; font-size: 11px; font-weight: 700; background: #f0f0f0; color: #444444; white-space: nowrap; }
.tag.ready { background: #fff2cc; color: #765200; }
.tag.done { background: #e3f3e8; color: #21603a; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #eeeeee; }
.actions button { min-height: 40px; border-radius: 3px; padding: 8px 12px; cursor: pointer; font-size: 12px; font-weight: 650; }
.empty { color: var(--muted); text-align: center; padding: 32px 12px; font-size: 13px; background: #fafafa; border: 1px dashed var(--border); border-radius: 3px; }
.foot { color: var(--muted); font-size: 12px; margin: 24px 0 0; line-height: 1.7; }
.notice { border-left: 4px solid #2b7549; }
.notice-error { border-left-color: var(--button-red); background: #fff6f5; }
.notice ul { margin: 0; padding-left: 20px; }
[wire\:offline] { display: none; }
::selection { background: #ffd7d4; color: var(--brand-black); }
@media (max-width: 1000px) {
    header { flex-wrap: wrap; }
    .brand-heading { flex: 1; }
}
@media (max-width: 720px) {
    .wrap { padding: 16px 12px; }
    header { padding: 24px 20px; gap: 20px; }
    .brand-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
    .brand-logo { width: 185px; }
    .header-title { border-left: 0; padding-left: 0; }
    h1 { font-size: 23px; }
    .grid, .cols { grid-template-columns: 1fr; }
    .panel { padding: 20px 16px; margin-top: 16px; }
    .toolbar .field { min-width: 100%; }
    .toolbar .btn, .add-panel .btn { width: 100%; }
    .itemtop { flex-wrap: wrap; }
    .sub { max-width: 30ch; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* List-first workspace */
.wrap { max-width: 1360px; padding-top: 24px; }
header { padding: 20px 28px; border-bottom-width: 4px; }
.brand-heading { gap: 24px; }
.brand-logo { width: 175px; }
.header-title { padding-left: 24px; }
h1 { font-size: 22px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 30px 0 20px; }
.workspace-heading h2 { font-size: 28px; letter-spacing: -.5px; margin: 3px 0 0; }
.workspace-heading .muted { font-size: 14px; margin: 5px 0 0; }
.eyebrow { color: #666; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; margin: 0; }
.heading-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.button-hint { font-weight: 400; margin-left: 5px; }
.identity-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px 24px; margin-top: 0; background: #fafafa; }
.identity-intro { display: flex; flex-direction: column; gap: 4px; }
.identity-intro strong { font-size: 14px; }
.identity-intro span { color: var(--muted); font-size: 12px; }
.identity-panel .field { width: 310px; flex-shrink: 0; }
.field-help { color: var(--muted); font-size: 11px; line-height: 1.4; }
.field-error { color: #a31c14; font-size: 12px; line-height: 1.4; }
[aria-invalid="true"] { border-color: #a31c14; background: #fff7f6; }
.optional { color: var(--muted); font-weight: 400; font-size: 11px; margin-left: 5px; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .muted { margin-bottom: 0; }
.add-panel { border-top: 3px solid var(--button-red); }
.form-footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-top: 18px; border-top: 1px solid #eee; }
.text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: transparent; color: #595959; border: 0; border-radius: 3px; padding: 10px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.text-button:hover:not(:disabled) { background: #f1f1f1; color: #111; }
.filter-panel { margin-top: 16px; padding: 18px 24px; }
.toolbar { align-items: flex-start; }
.toolbar .field { min-width: 150px; }
.list-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; color: #666; font-size: 12px; }
.refresh-label::before { content: ''; display: inline-block; vertical-align: middle; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #8a8a8a; }
.cols { align-items: start; }
.destination-panel { margin-top: 0; padding: 0 16px 16px; background: #fafafa; }
.destination-heading { display: flex; gap: 12px; align-items: center; padding: 20px 4px; }
.destination-heading h2 { font-size: 18px; margin: 0; }
.destination-heading .muted { margin: 4px 0 0; font-size: 11px; }
.country-label { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #dedede; background: white; font-size: 11px; font-weight: 750; border-radius: 4px; flex-shrink: 0; }
.count { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: #eaeaea; color: #444; border-radius: 4px; font-weight: 700; }
.item { margin: 0 0 12px; padding: 20px; box-shadow: 0 2px 4px #00000003; border-left: 3px solid #a3a3a3; }
.item.ready { border-left-color: #d6a32b; }
.item.done { border-left-color: #3a8353; }
.item h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.45; white-space: pre-line; }
.assignment-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 0; }
.assignment-meta dt { color: #747474; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.assignment-meta dd { margin: 4px 0 0; font-size: 13px; font-weight: 550; }
.assignment-note { margin: 14px 0 0; padding: 10px 12px; background: #f7f7f7; font-size: 12px; color: #555; border-radius: 3px; }
.assignment-note strong { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px; color: #747474; }
.actions { margin-top: 18px; align-items: center; gap: 8px; }
.actions .btn { font-size: 12px; padding: 9px 12px; min-height: 44px; }
.assignment-details { margin-top: 12px; }
.assignment-details summary { cursor: pointer; color: #747474; font-size: 11px; padding: 5px 0; }
.assignment-details summary:hover { color: #222; }
.assignment-details summary:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.empty { background: white; padding: 30px 16px; }
.empty strong { color: #444; font-size: 13px; font-weight: 600; }
.empty p { font-size: 12px; max-width: 30ch; margin: 8px auto 18px; }
.foot { text-align: center; }
@media (max-width: 1100px) {
    .workspace-heading { align-items: flex-start; }
    .heading-actions { justify-content: flex-end; }
    .button-hint { display: none; }
    .actions .btn { flex: 1 1 180px; }
}
@media (max-width: 720px) {
    .wrap { padding: 12px; }
    header { padding: 18px; gap: 16px; }
    .brand-heading { flex-direction: row; align-items: center; gap: 16px; }
    .brand-logo { width: 130px; }
    .header-title { padding-left: 16px; border-left: 1px solid #484848; }
    h1 { font-size: 17px; }
    .sub { font-size: 10px; }
    header .pill { display: none; }
    .workspace-heading { display: block; margin: 22px 0 18px; }
    .workspace-heading h2 { font-size: 25px; }
    .workspace-heading .muted { font-size: 12px; }
    .heading-actions { justify-content: flex-start; gap: 8px; margin-top: 16px; }
    .heading-actions .btn { flex: 1; font-size: 12px; padding: 10px 12px; }
    .identity-panel { display: block; padding: 16px; }
    .identity-intro { display: none; }
    .identity-panel .field { width: 100%; }
    .filter-panel { padding: 16px; }
    .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .toolbar .field { min-width: 0; }
    .toolbar .field:last-child { grid-column: 1 / -1; }
    .list-summary { font-size: 11px; }
    .destination-panel { padding: 0 12px 12px; margin-top: 0; }
    .destination-heading { padding: 16px 2px; }
    .destination-heading h2 { font-size: 17px; }
    .item { padding: 16px; }
    .itemtop { flex-wrap: nowrap; }
    .itemtop h3 { font-size: 15px; }
    .tag { font-size: 10px; }
    .form-footer { flex-direction: column; align-items: stretch; }
    .section-heading .text-button { padding-right: 0; }
    .heading-actions .btn:only-child { flex: initial; }
}
@media (max-width: 360px) {
    .brand-logo { width: 110px; }
    .header-title { padding-left: 12px; }
    h1 { font-size: 15px; }
    .itemtop { flex-wrap: wrap; }
}
.heading-actions .button-hint { display: inline; }
@media (max-width: 720px) { .heading-actions .button-hint { font-size: 10px; margin-left: 3px; } }
