* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f7;
    color: #1c1c1e;
    padding: 16px;
    padding-bottom: 40px;
    font-size: 16px;
    line-height: 1.4;
}
.container { max-width: 480px; margin: 0 auto; }
h1 { font-size: 1.3em; margin: 0 0 8px; }
.subtitle { color: #8e8e93; font-size: 0.9em; margin: 0 0 20px; }
label {
    display: block;
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 0.92em;
    color: #3a3a3c;
}
.optional { color: #8e8e93; font-weight: 400; }
input[type="text"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin: 0 0 16px;
    border: 1px solid #d1d1d6;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    color: #1c1c1e;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
textarea { min-height: 110px; resize: vertical; }
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
input[type="file"] {
    width: 100%;
    padding: 12px;
    margin: 0 0 8px;
    border: 1px dashed #0066cc;
    border-radius: 10px;
    background: #f0f7ff;
    font-size: 0.95em;
    color: #0066cc;
}
button {
    width: 100%;
    padding: 16px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
button:active { background: #0055aa; }
button:disabled { background: #999; cursor: not-allowed; }
.status {
    padding: 14px;
    border-radius: 10px;
    margin: 0 0 16px;
    font-size: 0.95em;
    display: none;
    word-wrap: break-word;
}
.status.success { background: #d1f4d8; color: #155724; }
.status.error   { background: #fdd; color: #721c24; }
.warning-box {
    padding: 12px;
    border-radius: 10px;
    background: #fff3cd;
    color: #856404;
    margin: -8px 0 16px;
    font-size: 0.88em;
    display: none;
}
.warning-box.show { display: block; }
.link-row { text-align: center; margin-top: 20px; font-size: 0.9em; color: #8e8e93; }
.link-row a { color: #0066cc; text-decoration: none; }
.hint { font-size: 0.82em; color: #8e8e93; margin: -10px 0 16px; }
.preview { max-width: 100%; max-height: 240px; margin: 0 0 16px; border-radius: 10px; display: none; }
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 20px;
    padding: 0 4px;
    font-size: 0.88em;
}
.header-bar .user-info { color: #8e8e93; }
.header-bar a { color: #0066cc; text-decoration: none; margin-left: 12px; }
.profile-badge {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.profile-badge .company-name {
    font-weight: 600;
    color: #1c1c1e;
}
.profile-badge .company-phone {
    color: #8e8e93;
    font-size: 0.88em;
    margin-top: 2px;
}

.header-with-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
}

.header-with-logo .logo-inline {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    display: block;
}

.header-with-logo h1 {
    margin: 0;
    font-size: 1.35em;
    line-height: 1.2;
}

.version-info {
            text-align: center;
            color: #8e8e93;
            font-size: 0.75em;
            margin: 16px 0 0;
        }
