.au-letters { --au-ink: #17181C; --au-muted: #5C5E66; --au-line: #DDDBD3; --au-paper: #F4F3EF; --au-surface: #FFFFFF; --au-accent: #D63B2A; --au-ok: #1F7A4D; max-width: 720px; margin: 0 auto; color: var(--au-ink); font-family: 'Instrument Sans', system-ui, sans-serif; }
.au-letters h1, .au-letters h2, .au-letters h3, .au-card h2 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: #17181C; }
.au-card { background: #FFFFFF; border: 1px solid #DDDBD3; border-radius: 12px; padding: 32px; max-width: 560px; margin: 24px auto; color: #17181C; font-family: 'Instrument Sans', system-ui, sans-serif; }
.au-card h2 { font-size: 30px; margin: 0 0 12px; }
.au-center { text-align: center; }
.au-btn { display: inline-block; background: #D63B2A; color: #FFFFFF; border: 1.5px solid #D63B2A; border-radius: 999px; padding: 13px 26px; font: 600 16px/1.2 'Instrument Sans', system-ui, sans-serif; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.au-btn:hover, .au-btn:focus { background: #17181C; border-color: #17181C; color: #FFFFFF; }
.au-btn[disabled] { opacity: .4; cursor: not-allowed; background: #D63B2A; border-color: #D63B2A; }
.au-btn-ghost { background: transparent; color: #17181C; border-color: #17181C; }
.au-btn-ghost:hover, .au-btn-ghost:focus { background: #17181C; color: #FFFFFF; }
.au-link { background: none; border: 0; padding: 0; color: #17181C; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.au-link:hover { color: #D63B2A; background: none; }
.au-muted, .au-help { color: #5C5E66; font-size: .92em; }
.au-req { color: #D63B2A; }
.au-alert { border: 1px solid #DDDBD3; border-left: 4px solid #17181C; background: #FFFFFF; padding: 12px 16px; margin: 0 0 24px; border-radius: 6px; }
.au-alert p { margin: 4px 0; }
.au-alert-error { border-left-color: #D63B2A; }
.au-alert-ok { border-left-color: var(--au-ok); }

.au-composer .au-form { background: #FFFFFF; border: 1px solid #DDDBD3; border-radius: 12px; padding: 8px 32px 32px; }
.au-form fieldset { border: 0; border-top: 1px solid #DDDBD3; padding: 0 0 6px; margin: 0; }
.au-form fieldset:first-of-type { border-top: 0; }
.au-form legend { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 20px; padding: 22px 8px 0 0; float: left; width: 100%; margin-bottom: 14px; }
.au-form fieldset:first-of-type legend { padding-top: 16px; }
.au-form label { display: block; margin: 0 0 16px; font-weight: 600; font-size: 15px; }
.au-form fieldset > *:not(legend) { clear: both; }
.au-form input[type=text], .au-form input[type=email], .au-form input[type=datetime-local], .au-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 12px 14px; border: 1px solid #DDDBD3; border-radius: 12px; font: 400 16px/1.4 'Instrument Sans', system-ui, sans-serif; color: #17181C; background: #FFFFFF; }
.au-form input:focus, .au-form textarea:focus { outline: none; border-color: #17181C; box-shadow: 0 0 0 3px rgba(23, 24, 28, .12); }
.au-form textarea { line-height: 1.65; min-height: 220px; }
.au-form input[type=file] { margin-top: 6px; font-size: 15px; }
.au-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.au-check { display: flex !important; gap: 10px; align-items: flex-start; margin: 20px 0 !important; font-weight: 400 !important; }
.au-check input { margin-top: 4px; accent-color: #D63B2A; }
.au-file-list { list-style: none; padding: 0; margin: 10px 0; }
.au-file-list li { padding: 8px 12px; margin-bottom: 6px; background: #F4F3EF; border-radius: 6px; font-size: 15px; }
.au-meter, .au-progress { height: 6px; background: #EAE8E1; border-radius: 999px; overflow: hidden; margin: 10px 0; }
.au-meter span, .au-progress span { display: block; height: 100%; width: 0; background: #17181C; transition: width .2s; }
.au-meter.is-over span { background: #D63B2A; }
.au-progress { margin-bottom: 16px; }
.au-progress span { background: #D63B2A; }

.au-usage { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.au-list { background: #FFFFFF; border: 1px solid #DDDBD3; border-radius: 12px; padding: 0 24px; }
.au-item { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid #DDDBD3; }
.au-item:last-child { border-bottom: 0; }
.au-item-main strong { font-size: 17px; }
.au-item-main span { margin-left: 6px; }
.au-item-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.au-badge { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #F4F3EF; border: 1px solid #DDDBD3; }
.au-status-sent .au-badge { background: #17181C; border-color: #17181C; color: #FFFFFF; }
.au-status-failed .au-badge { background: #FBE7E4; border-color: #F2C3BC; color: #A52A1C; }
.au-status-cancelled .au-badge { color: #5C5E66; }

.au-open { padding: 24px 0 8px; }
.au-envelope { display: block; position: relative; width: 100%; max-width: 440px; aspect-ratio: 3 / 2; margin: 24px auto 32px; border: 2px solid #17181C; padding: 0; background: #FFFFFF; border-radius: 12px; cursor: pointer; overflow: hidden; box-shadow: 10px 14px 0 rgba(23, 24, 28, .08); transform: rotate(-2deg); transition: transform .6s ease, opacity .6s ease; }
.au-envelope:hover { transform: rotate(0) translateY(-4px); background: #FFFFFF; }
.au-envelope::after { content: ''; position: absolute; top: 18px; right: 18px; width: 56px; height: 68px; background: #D63B2A; outline: 4px dotted #FFFFFF; outline-offset: -6px; }
.au-envelope-flap { position: absolute; inset: 0 0 auto 0; height: 58%; background: transparent; border-bottom: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .6s ease; }
.au-envelope-flap::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent calc(50% - 1px), #17181C calc(50% - 1px), #17181C calc(50% + 1px), transparent calc(50% + 1px)) left / 50% 100% no-repeat, linear-gradient(to bottom left, transparent calc(50% - 1px), #17181C calc(50% - 1px), #17181C calc(50% + 1px), transparent calc(50% + 1px)) right / 50% 100% no-repeat; }
.au-envelope-body { position: absolute; inset: auto 0 14% 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.au-envelope-from { font: 700 24px/1.1 'Bricolage Grotesque', system-ui, sans-serif; color: #17181C; letter-spacing: -0.02em; }
.au-envelope-hint { font: 600 14px/1 'Instrument Sans', system-ui, sans-serif; color: #D63B2A; }
.au-paper { display: none; background: #FFFFFF; border: 1px solid #DDDBD3; border-radius: 12px; padding: 44px 40px; font: 400 18px/1.75 'Instrument Sans', system-ui, sans-serif; color: #17181C; box-shadow: 0 18px 40px rgba(23, 24, 28, .08); }
.au-paper h2 { font-size: 32px; margin: 8px 0 20px; }
.au-open.is-open .au-envelope { transform: translateY(-20px) scale(.9); opacity: 0; height: 0; margin: 0; border: 0; }
.au-open.is-open .au-envelope-flap { transform: rotateX(180deg); }
.au-open.is-open .au-paper { display: block; animation: au-rise .8s ease both; }
@keyframes au-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.au-sign { text-align: right; font: 700 22px/1.2 'Bricolage Grotesque', system-ui, sans-serif; margin-top: 28px; }
.au-attachments { margin-top: 32px; display: grid; gap: 20px; }
.au-attachment { margin: 0; }
.au-attachment video, .au-attachment img { width: 100%; height: auto; border-radius: 6px; background: #17181C; }
.au-attachment audio { width: 100%; }
.au-attachment figcaption { font-size: 14px; color: #5C5E66; margin-top: 8px; }
.au-attachment figcaption a { color: #17181C; }
.au-open > .au-help { margin-top: 28px; }

@media (max-width: 600px) {
	.au-row { grid-template-columns: 1fr; }
	.au-composer .au-form { padding: 4px 20px 24px; }
	.au-list { padding: 0 16px; }
	.au-item { flex-direction: column; }
	.au-item-side { align-items: flex-start; text-align: left; }
	.au-paper { padding: 28px 22px; font-size: 17px; }
	.au-envelope::after { width: 42px; height: 52px; top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .au-envelope, .au-envelope-flap, .au-open.is-open .au-paper { transition: none; animation: none; } }

.au-done { max-width: 620px; padding: 44px 40px; text-align: left; }
.au-done h2 { font-size: 38px; margin: 18px 0 12px; }
.au-done-stamp { width: 64px; height: 64px; display: grid; place-items: center; background: #D63B2A; color: #FFFFFF; font-size: 30px; font-weight: 700; border-radius: 6px; outline: 3px dotted #FFFFFF; outline-offset: -7px; transform: rotate(-4deg); }
.au-done-lead { font-size: 19px; line-height: 1.55; margin: 0 0 22px; }
.au-done-details { margin: 0 0 22px; padding: 14px 18px; background: #F4F3EF; border-radius: 12px; }
.au-done-details div { display: flex; gap: 16px; padding: 6px 0; }
.au-done-details dt { width: 72px; flex: none; color: #5C5E66; }
.au-done-details dd { margin: 0; overflow-wrap: anywhere; }
.au-done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
@media (max-width: 600px) { .au-done { padding: 30px 22px; } .au-done h2 { font-size: 30px; } }
