/* Google Material Icons, self-hosted under the Apache 2.0 license. */
@font-face {
    font-family:'Material Icons';
    font-style:normal;
    font-weight:400;
    font-display:block;
    src:url('fonts/MaterialIcons-Regular.ttf') format('truetype');
}
.material-icons {
    font-family:'Material Icons';
    font-weight:normal;
    font-style:normal;
    font-size:20px;
    line-height:1;
    letter-spacing:normal;
    text-transform:none;
    display:inline-block;
    white-space:nowrap;
    word-wrap:normal;
    direction:ltr;
    font-feature-settings:'liga';
    -webkit-font-smoothing:antialiased;
    user-select:none;
}
:root {
    font-family:system-ui,-apple-system,"Noto Sans JP",sans-serif;
    color:#20353c;
    background:#f3f6f7;
    font-size:15px;
    line-height:1.6;
    --accent:#087f70;
    --border:#d6e0e3;
}
* {
    box-sizing:border-box;
}
body {
    margin:0;
}
button,input,textarea {
    font:inherit;
}
button {
    cursor:pointer;
    border:1px solid var(--border);
    border-radius:6px;
    padding:9px 15px;
    background:#fff;
    color:inherit;
}
button:hover {
    background:#edf5f3;
}
button:disabled {
    cursor:default;
    opacity:.5;
}
button:focus-visible,input:focus-visible,textarea:focus-visible,[contenteditable]:focus-visible {
    outline:3px solid #76c8b9;
    outline-offset:2px;
}
input,textarea {
    width:100%;
    border:1px solid var(--border);
    border-radius:6px;
    padding:11px 12px;
    background:#fff;
    color:#20353c;
}
textarea {
    resize:vertical;
    line-height:1.7;
}
label {
    display:block;
    font-weight:600;
    margin:17px 0 6px;
}
h1,h2,h3,p {
    margin-top:0;
}
h1 {
    font-size:27px;
    letter-spacing:.03em;
    margin:0;
}
h2 {
    font-size:18px;
    margin-bottom:20px;
}
h3 {
    font-size:17px;
    margin-bottom:8px;
}
.page-header,main {
    max-width:1540px;
    margin:auto;
    padding:26px 40px;
}
.page-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:40px;
    padding:0 40px;
    background:var(--accent);
    color:#fff;
	border-radius: 0 0 4px 4px;
}
.page-header > div {
    display:flex;
    align-items:center;
    gap:16px;
    min-width:0;
}
.header-icon {
    width:20px;
    height:20px;
    flex-shrink:0;
}
.page-header h1 {
    white-space:nowrap;
    font-size:18px;
    line-height:1.2;
}
.eyebrow {
    letter-spacing:.2em;
    color:#fff;
    font-weight:750;
    margin:0;
    line-height:1;
    font-size:10px;
}
.version,.hint {
    color:#62757d;
    font-size:13px;
}
.version {
    color:#fff;
    font-size:11px;
    line-height:1.5;
    border:1px solid #ffffff66;
    padding:1px 8px;
    border-radius:20px;
}
.compose-grid {
    display:grid;
    grid-template-columns:minmax(300px,.8fr) minmax(420px,1.35fr);
    gap:24px;
    border:0;
    padding:0;
    margin:0;
    min-width:0;
}
.panel {
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    padding:26px;
    min-width:0;
    box-shadow:0 3px 12px #20353c04;
}
.step {
    font-size:12px;
    color:var(--accent);
    background:#e7f4f0;
    border-radius:6px;
    padding:5px 7px;
    margin-right:12px;
    vertical-align:middle;
}
.format-row,.attachment-row,.label-row,.send-bar {
    display:flex;
    align-items:center;
    gap:10px;
}
.label-row {
    justify-content:space-between;
    flex-wrap:wrap;
}
.label-row label {
    margin-top:0;
}
.label-row .hint {
    margin:0;
}
.fixed-format {
    background:#edf3f3;
    padding:11px;
    border:1px solid var(--border);
    border-radius:6px 0 0 6px;
    font-family:monospace;
}
.format-row {
    gap:0;
}
.format-row input {
    border-radius:0 6px 6px 0;
    text-transform:uppercase;
}
.hint {
    margin:7px 0 15px;
    line-height:1.6;
}
#mail_list {
    min-height:330px;
    font-family:ui-monospace,monospace;
}
.editor-heading {
    margin:20px 0 9px;
    gap:10px;
}
.editor-heading label {
    margin:0;
}
.tabs {
    display:flex;
    gap:3px;
    background:#edf3f3;
    padding:3px;
    border-radius:7px;
}
.tabs button {
    font-size:12px;
    border-color:transparent;
    background:transparent;
    padding:7px 10px;
}
.tabs button[aria-selected="true"] {
    background:#fff;
    color:var(--accent);
    box-shadow:0 1px 4px #20353c1a;
    font-weight:650;
}
.toolbar {
    display:flex;
    gap:4px;
    flex-wrap:wrap;
    padding:8px;
    background:#f7f9fa;
    border:1px solid var(--border);
    border-bottom:0;
    border-radius:6px 6px 0 0;
}
.toolbar button {
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    padding:5px 9px;
    min-width:31px;
}
.rich-editor {
    border:1px solid var(--border);
    border-radius:0 0 6px 6px;
    padding:16px;
    min-height:310px;
    max-height:650px;
    overflow:auto;
    overflow-wrap:anywhere;
}
.rich-editor p {
    margin:0 0 .7em;
}
.rich-editor a {
    color:#087f70;
}
#message {
    min-height:363px;
    font-family:ui-monospace,monospace;
}
.attachment-row input {
    min-width:0;
    background:#f7f9fa;
    font-size:13px;
    padding:8px;
}
.attachment-tags {
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:10px;
}
.attachment-tag {
    display:inline-flex;
    align-items:center;
    gap:7px;
    max-width:100%;
    padding:5px 10px;
    border-radius:20px;
    background:#e7f4f0;
    border-color:#c5e3da;
    color:var(--accent);
    font-size:12px;
    text-align:left;
}
.attachment-tag:hover {
    background:#d4ebe4;
}
.attachment-tag-name {
    min-width:0;
    overflow-wrap:anywhere;
}
.attachment-tag .material-icons {
    font-size:16px;
    flex-shrink:0;
}
.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
    border:0;
}
.close-icon {
    font-size:16px;
    width:16px;
    height:16px;
}
.clear-button {
    display:flex;
    align-items:center;
    justify-content:center;
    flex:none;
    align-self:stretch;
    font-family:monospace;
}
.send-bar {
    justify-content:space-between;
    padding:20px 0 4px;
}
.send-bar p {
    margin:0;
}
.primary {
    background:var(--accent);
    color:#fff;
    border-color:var(--accent);
    font-weight:650;
    padding:11px 28px;
}
.primary:hover {
    background:#066b5e;
}
.delivery-panel {
    margin-top:24px;
}
.delivery-panel h2 {
    margin:0 0 12px;
}
.delivery-panel progress {
    width:100%;
    height:12px;
    margin:12px 0;
    accent-color:var(--accent);
}
.notice {
    padding:14px 18px;
    background:#fff1ef;
    border:1px solid #e7b2a8;
    color:#923b2b;
    border-radius:8px;
    margin:18px 0 0;
}
.results-scroll {
    max-height:440px;
    overflow:auto;
    margin-top:16px;
    border:1px solid var(--border);
    border-radius:7px;
}
table {
    border-collapse:collapse;
    width:100%;
    font-size:13px;
    text-align:left;
}
th {
    position:sticky;
    top:0;
    background:#f1f6f6;
    color:#62757d;
    font-size:12px;
}
th,td {
    padding:12px 16px;
    border-bottom:1px solid #edf1f2;
    vertical-align:top;
}
td:first-child {
    overflow-wrap:anywhere;
}
td:last-child {
    max-width:450px;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}
.badge {
    display:inline-block;
    white-space:nowrap;
    border-radius:20px;
    padding:3px 10px;
    font-size:12px;
    background:#edf1f2;
    color:#546b75;
}
.badge.sent {
    background:#e1f4ea;
    color:#186444;
}
.badge.failed {
    background:#fce8e5;
    color:#a63e30;
}
.badge.sending {
    background:#e3efff;
    color:#2c5c9e;
}
.retry-panel {
    margin-top:26px;
    border-top:1px solid var(--border);
    padding-top:24px;
}
.retry-row {
    display:grid;
    grid-template-columns:80px 1fr;
    column-gap:12px;
    align-items:center;
    margin-bottom:12px;
}
.retry-label {
    margin:0;
    font-size:13px;
}
.retry-error {
    grid-column:2;
    margin:3px 0 0;
    color:#a63e30;
}
.retry-panel .primary {
    margin-top:8px;
}
[hidden] {
    display:none!important;
}
@media(min-width:1600px) {
    main,.page-header {
        max-width:1700px;
    }
    .compose-grid {
        grid-template-columns:minmax(380px,.8fr) minmax(600px,1.35fr);
    }
    #mail_list {
        min-height:390px;
    }
    .rich-editor {
        min-height:370px;
    }
    #message {
        min-height:423px;
    }
}
@media(max-width:850px) {
    main {
        padding:20px;
    }
    .page-header {
        padding:0 20px;
    }
    .compose-grid {
        grid-template-columns:1fr;
        gap:18px;
    }
    .panel {
        padding:21px;
    }
    #mail_list {
        min-height:200px;
    }
    .rich-editor {
        min-height:260px;
    }
    .send-bar {
        align-items:stretch;
        flex-direction:column;
        gap:10px;
    }
    h1 {
        font-size:23px;
    }
}
@media(max-width:480px) {
    main {
        padding:16px;
    }
    .page-header {
        padding:0 16px;
    }
    .page-header > div {
        gap:10px;
    }
    .page-header h1 {
        font-size:16px;
    }
    .panel {
        padding:17px;
    }
    .tabs {
        width:100%;
    }
    .tabs button {
        flex:1;
    }
    .retry-row {
        grid-template-columns:1fr;
    }
    .retry-error {
        grid-column:1;
    }
    th,td {
        padding:9px;
    }
    .version {
        display:none;
    }
}
.retry-label {
    display:flex;
    align-items:center;
    gap:8px;
}
.retry-select {
    width:auto;
    accent-color:var(--accent);
}
