@import url("./footer.css?v=1");
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: #f6f7f5;
    color: #202e2a;
    font:
        15px/1.5 system-ui,
        sans-serif;
}
header {
    padding: 22px 5vw;
    background: white;
    border-bottom: 1px solid #e1e7e2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    font-size: 23px;
    font-weight: 750;
    text-decoration: none;
    color: #194e40;
}
.account {
    display: flex;
    gap: 18px;
    align-items: center;
}
main {
    max-width: 1240px;
    margin: 56px auto;
    padding: 0 32px;
    min-height: 65vh;
}
h1 {
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -2px;
    margin: 10px 0 20px;
}
h2 {
    font-size: 20px;
}
h3 {
    margin: 0 0 8px;
    font-size: 17px;
}
p {
    color: #61716a;
}
.eyebrow {
    color: #377d61;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 2px;
}
.intro {
    margin-bottom: 40px;
}
.layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
aside,
article,
.empty,
.login {
    background: white;
    border: 1px solid #dfe6df;
    border-radius: 16px;
    padding: 24px;
}
aside {
    align-self: start;
}
article {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 16px;
}
article p {
    margin: 0 0 12px;
}
.status {
    background: #e9f2e8;
    border-radius: 20px;
    padding: 4px 12px;
    height: max-content;
    font-size: 12px;
}
.count {
    font-size: 13px;
    color: #657b6a;
    margin-left: 10px;
}
label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin: 18px 0;
}
input,
textarea,
select {
    font: inherit;
    width: 100%;
    padding: 11px;
    border: 1px solid #cdd8cf;
    border-radius: 7px;
    background: white;
    margin-top: 6px;
    color: inherit;
}
select {
    width: auto;
    margin: 0;
}
button {
    background: #205b47;
    color: white;
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
button:disabled {
    opacity: 0.5;
    cursor: wait;
}
.quiet {
    background: #eff4ed;
    color: #205b47;
}
small {
    color: #738076;
}
.note {
    display: block;
    margin-top: 22px;
}
.login {
    max-width: 460px;
    margin: 70px auto;
    padding: 38px;
}
.login button {
    width: 100%;
}
.error {
    background: #ffebe7;
    padding: 16px;
    color: #942d22;
    border-radius: 8px;
}
.empty {
    padding: 55px;
    text-align: center;
}
footer {
    text-align: center;
    padding: 24px 5vw;
    border-top: 1px solid #e1e7e2;
    color: #849088;
    font-size: 12px;
}
@media (max-width: 760px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .account {
        gap: 8px;
        flex-wrap: wrap;
    }
    .account span {
        display: none;
    }
    h1 {
        font-size: 36px;
    }
    header {
        gap: 20px;
    }
    main {
        padding: 0 18px;
        margin-top: 30px;
    }
}

.package-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}
.files-panel {
    position: fixed;
    z-index: 10;
    inset: 5vh max(3vw, calc((100vw - 960px) / 2));
    overflow: auto;
    background: white;
    border: 1px solid #dfe6df;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 0 0 100vmax #152b25aa;
}
.files-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.files-heading h2 {
    margin-top: 0;
    overflow-wrap: anywhere;
}
.drop-zone {
    border: 2px dashed #a8c6b4;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    background: #f6faf5;
}
.drop-zone.dragging {
    background: #e3f1e5;
    border-color: #205b47;
}
.file-picker {
    cursor: pointer;
}
.file-picker input {
    max-width: 380px;
    margin: 14px auto;
}
.upload-queue,
.file-list {
    list-style: none;
    padding: 0;
}
.upload-queue li {
    padding: 10px 0;
    border-bottom: 1px solid #edf0eb;
    overflow-wrap: anywhere;
}
.upload-queue span {
    font-size: 12px;
    color: #61716a;
    margin-left: 12px;
}
progress {
    width: 100%;
    accent-color: #205b47;
}
.upload-error {
    color: #942d22;
    margin: 5px 0;
}
.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0eb;
}
.file-list strong {
    overflow-wrap: anywhere;
}
.file-list small {
    display: block;
    margin-top: 4px;
}
.file-summary {
    margin-top: 24px;
}
@media (max-width: 760px) {
    .files-panel {
        inset: 12px;
        padding: 20px;
    }
}
.language-switch {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    margin-right: 1rem;
    font-size: 0.8rem;
}
.language-switch select {
    width: auto;
    margin: 0;
}
.package-editor {
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.2fr);
}
.files-inline {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    align-self: start;
}
.package-editor fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.package-editor dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
}
.package-editor dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.package-editor dt {
    color: #63756f;
}
.package-actions {
    flex-wrap: wrap;
}
@media (max-width: 780px) {
    .package-editor {
        grid-template-columns: 1fr;
    }
    header {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .language-switch {
        margin-left: 0;
    }
}
.recipient-picker {
    margin: 1.5rem 0;
}
.recipient-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.address-suggestions {
    list-style: none;
    padding: 0;
    border: 1px solid #dae3df;
    border-radius: 8px;
    max-height: 16rem;
    overflow: auto;
}
.address-suggestions button {
    width: 100%;
    text-align: left;
}
.address-suggestions small {
    display: block;
}
.group-manager {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #dae3df;
    border-radius: 8px;
}
.group-manager summary {
    cursor: pointer;
    margin-bottom: 1rem;
}
.group-members {
    max-height: 18rem;
    overflow: auto;
    margin: 1rem 0;
}
.group-members label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.group-members input[type="checkbox"] {
    width: auto;
    margin: 0;
}
@media (max-width: 600px) {
    .recipient-fields {
        grid-template-columns: 1fr;
    }
}

.workspace-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem max(1.5rem, calc((100vw - 1200px) / 2));
    border-bottom: 1px solid #dce3e5;
}
.workspace-menu a {
    color: inherit;
    text-decoration: none;
}
.workspace-menu a:hover {
    text-decoration: underline;
}

.address-table-container {
    overflow-x: auto;
}
.address-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.address-table th,
.address-table td {
    text-align: left;
    padding: 0.3rem 0.65rem;
    border-bottom: 1px solid #dce3e5;
    vertical-align: middle;
}
.address-table td input {
    width: 100%;
    min-width: 10rem;
    box-sizing: border-box;
}
.address-table .package-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
}
.address-table td input {
    margin: 0;
    padding: 0.35rem 0.5rem;
}
.address-table button {
    padding: 0.35rem 0.65rem;
}
.address-table .icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 6px;
}
.icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon-button:focus-visible {
    outline: 2px solid #205b47;
    outline-offset: 2px;
}
.recipient-groups-page .group-manager {
    width: 100%;
}
.recipient-groups-page .group-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-management {
    grid-template-columns: minmax(240px, 1fr) minmax(320px, 2fr);
}
.user-management aside > button {
    margin-top: 1rem;
    margin-right: 0.5rem;
}
.group-membership {
    width: auto;
    margin: 0 0.65rem 0 0;
    vertical-align: middle;
}
@media (max-width: 760px) {
    .user-management {
        grid-template-columns: 1fr;
    }
}

.address-table input.group-membership {
    width: auto;
    min-width: 0;
    margin: 0 0.65rem 0 0;
    padding: 0;
    vertical-align: middle;
}
.package-preview {
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: #61716a;
}

.tenant-banner {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 1rem 2rem;
    border-bottom: 1px solid #dce5df;
}
.tenant-header {
    font-size: 1.5rem;
    font-weight: 700;
}
.tenant-subheader {
    margin: 0.5rem 0;
}
.tenant-banner img {
    max-width: 160px;
    max-height: 100px;
}
.privacy-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.privacy-toggle input[type="checkbox"] {
    width: auto;
    min-width: 0;
    margin: 0;
}

article.own-upload {
    background: #eaf6ee;
    border-left: 4px solid #438866;
}
article.expired-upload {
    color: #64716a;
    background: #f1f2f1;
    border-color: #cbd2cc;
}
article.own-upload.expired-upload {
    background: #e6ede8;
    border-left-color: #91aa99;
}
article.expired-upload h3,
article.expired-upload small {
    color: #64716a;
}
article.expired-upload .status {
    background: #e1e5e2;
    color: #59655e;
}

.package-log {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: #61716a;
}
.package-log h2 {
    font-size: 0.9rem;
}
.package-log ol {
    list-style: none;
    padding: 0;
}
.package-log li {
    padding: 0.2rem 0;
    overflow-wrap: anywhere;
}
.package-log time {
    font-variant-numeric: tabular-nums;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.brand img {
    width: 36px;
    height: 36px;
}

.workspace-menu details > a {
    display: block;
    padding: 0.5rem 0.75rem;
}
.workspace-menu details {
    align-self: start;
    min-width: 8rem;
}
.workspace-menu summary {
    cursor: pointer;
}
.brand > span {
    display: flex;
    flex-direction: column;
}
.brand img {
    width: auto;
    max-width: 150px;
    height: 64px;
    object-fit: contain;
}
.brand .tenant-header {
    color: inherit;
    font-size: 1.4rem;
}
.brand .tenant-subheader {
    color: inherit;
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0;
}
.language-switch select,
.account select {
    background: inherit;
    color: inherit;
}
.account option,
.language-switch option {
    background: inherit;
    color: inherit;
}

header.dark-header select,
header.dark-header option {
    background: var(--header-control-background, #221f2b);
    color: #fff;
    color-scheme: dark;
}

.external-creator {
    color: #8b0000;
}

.compact-action {
    padding: 0.15rem 0.5rem;
    min-height: 0;
    line-height: 1.3;
    margin: 0 0.2rem;
}
dialog {
    border: 0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: min(30rem, 90vw);
}
dialog::backdrop {
    background: #0008;
}

/* Shared site shell; tenant CSS is applied after these defaults. */
html, body { min-height: 100%; }
body { min-height: 100vh; }
#app, .site-page { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { flex-wrap: wrap; gap: 1rem 2rem; }
.site-header .brand { min-width: 0; overflow-wrap: anywhere; }
.site-header .account { flex-wrap: wrap; }
.site-header .language-switch { margin-block: 0; }
.site-main { width: 100%; flex: 1; min-height: 0; }
.site-header button, .site-header select { white-space: nowrap; }
.site-header .account-name { overflow-wrap: anywhere; }
.public-content { background: white; border: 1px solid #dfe6df; border-radius: 16px; padding: 32px; }
.public-content h1 { overflow-wrap: anywhere; }
.public-content p { white-space: pre-line; }
.public-content .file-list a { overflow-wrap: anywhere; }
.public-content .file-list li { padding-inline: 0; }
.site-error { max-width: 1176px; width: calc(100% - 36px); margin: 1rem auto 0; }
.site-header form { margin: 0; }
@media (max-width: 760px) {
    .site-header { padding: 18px; gap: 1rem; }
    .site-header .brand { flex: 1 1 65%; }
    .site-header .account { width: 100%; justify-content: space-between; }
    .site-header .account select { min-width: 0; max-width: 60%; }
    .site-header .language-switch { margin-left: auto; margin-right: 0; }
    .site-header .brand img { max-width: 100px; height: 48px; }
    .workspace-menu { gap: .75rem 1.2rem; padding: 1rem 18px; }
    .public-content { padding: 20px; }
    .site-main h1 { font-size: 34px; letter-spacing: -1px; }
    .site-main .login { margin: 0 auto; padding: 24px; }
}
.site-header > a.quiet { border-radius: 8px; padding: 12px 18px; text-decoration: none; font-weight: 600; }
